aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs50
1 files changed, 44 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index 82fdc53..ffb7ded 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -38,6 +38,7 @@ using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
38using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; 38using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
39using LSL_Key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; 39using LSL_Key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
40 40
41
41namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces 42namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
42{ 43{
43 /// <summary> 44 /// <summary>
@@ -50,11 +51,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
50 /// </summary> 51 /// </summary>
51 public enum ThreatLevel 52 public enum ThreatLevel
52 { 53 {
53 // Not documented, presumably means permanently disabled ?
54 NoAccess = -1, 54 NoAccess = -1,
55 55
56 /// <summary> 56 /// <summary>
57 /// Function is no threat at all. It doesn't constitute a threat to 57 /// Function is no threat at all. It doesn't constitute a threat to
58 /// either users or the system and has no known side effects. 58 /// either users or the system and has no known side effects.
59 /// </summary> 59 /// </summary>
60 None = 0, 60 None = 0,
@@ -66,7 +66,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
66 Nuisance = 1, 66 Nuisance = 1,
67 67
68 /// <summary> 68 /// <summary>
69 /// Extreme levels of abuse of this function can cause impaired 69 /// Extreme levels of abuse of this function can cause impaired
70 /// functioning of the region, or very gullible users can be tricked 70 /// functioning of the region, or very gullible users can be tricked
71 /// into experiencing harmless effects. 71 /// into experiencing harmless effects.
72 /// </summary> 72 /// </summary>
@@ -81,7 +81,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
81 81
82 /// <summary> 82 /// <summary>
83 /// Intentional abuse can cause denial of service and crashes with 83 /// Intentional abuse can cause denial of service and crashes with
84 /// potential of data or state loss; or trusting users can be tricked 84 /// potential of data or state loss; or trusting users can be tricked
85 /// into embarrassing or uncomfortable situations. 85 /// into embarrassing or uncomfortable situations.
86 /// </summary> 86 /// </summary>
87 Moderate = 4, 87 Moderate = 4,
@@ -114,7 +114,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
114 114
115 public interface IOSSL_Api 115 public interface IOSSL_Api
116 { 116 {
117 bool CheckThreatLevel(ThreatLevel level, string function); 117 void CheckThreatLevel(ThreatLevel level, string function);
118 118
119 //OpenSim functions 119 //OpenSim functions
120 string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer); 120 string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer);
@@ -123,6 +123,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
123 string osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams, 123 string osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams,
124 bool blend, int disp, int timer, int alpha, int face); 124 bool blend, int disp, int timer, int alpha, int face);
125 string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer); 125 string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer);
126 string osSetDynamicTextureDataFace(string dynamicID, string contentType, string data, string extraParams, int timer, int face);
126 string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams, 127 string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams,
127 int timer, int alpha); 128 int timer, int alpha);
128 string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, 129 string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams,
@@ -135,6 +136,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
135 void osTerrainFlush(); 136 void osTerrainFlush();
136 137
137 int osRegionRestart(double seconds); 138 int osRegionRestart(double seconds);
139 int osRegionRestart(double seconds, string msg);
138 void osRegionNotice(string msg); 140 void osRegionNotice(string msg);
139 bool osConsoleCommand(string Command); 141 bool osConsoleCommand(string Command);
140 void osSetParcelMediaURL(string url); 142 void osSetParcelMediaURL(string url);
@@ -142,8 +144,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
142 void osSetParcelSIPAddress(string SIPAddress); 144 void osSetParcelSIPAddress(string SIPAddress);
143 145
144 // Avatar Info Commands 146 // Avatar Info Commands
145 string osGetAgentIP(string agent);
146 LSL_List osGetAgents(); 147 LSL_List osGetAgents();
148 string osGetAgentIP(string agent);
147 149
148 // Teleport commands 150 // Teleport commands
149 void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); 151 void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat);
@@ -221,10 +223,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
221 string osDrawLine(string drawList, int endX, int endY); 223 string osDrawLine(string drawList, int endX, int endY);
222 string osDrawText(string drawList, string text); 224 string osDrawText(string drawList, string text);
223 string osDrawEllipse(string drawList, int width, int height); 225 string osDrawEllipse(string drawList, int width, int height);
226 string osDrawFilledEllipse(string drawList, int width, int height);
224 string osDrawRectangle(string drawList, int width, int height); 227 string osDrawRectangle(string drawList, int width, int height);
225 string osDrawFilledRectangle(string drawList, int width, int height); 228 string osDrawFilledRectangle(string drawList, int width, int height);
226 string osDrawPolygon(string drawList, LSL_List x, LSL_List y); 229 string osDrawPolygon(string drawList, LSL_List x, LSL_List y);
227 string osDrawFilledPolygon(string drawList, LSL_List x, LSL_List y); 230 string osDrawFilledPolygon(string drawList, LSL_List x, LSL_List y);
231 string osDrawResetTransform(string drawList);
232 string osDrawRotationTransform(string drawList, LSL_Float x);
233 string osDrawScaleTransform(string drawList, LSL_Float x, LSL_Float y);
234 string osDrawTranslationTransform(string drawList, LSL_Float x, LSL_Float y);
228 string osSetFontName(string drawList, string fontName); 235 string osSetFontName(string drawList, string fontName);
229 string osSetFontSize(string drawList, int fontSize); 236 string osSetFontSize(string drawList, int fontSize);
230 string osSetPenSize(string drawList, int penSize); 237 string osSetPenSize(string drawList, int penSize);
@@ -261,6 +268,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
261 string osGetSimulatorVersion(); 268 string osGetSimulatorVersion();
262 LSL_Integer osCheckODE(); 269 LSL_Integer osCheckODE();
263 string osGetPhysicsEngineType(); 270 string osGetPhysicsEngineType();
271 string osGetPhysicsEngineName();
264 Object osParseJSONNew(string JSON); 272 Object osParseJSONNew(string JSON);
265 Hashtable osParseJSON(string JSON); 273 Hashtable osParseJSON(string JSON);
266 274
@@ -315,6 +323,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
315 void osForceBreakAllLinks(); 323 void osForceBreakAllLinks();
316 324
317 /// <summary> 325 /// <summary>
326 /// Similar to llDie but given an object UUID
327 /// </summary>
328 /// <param name="objectUUID"></param>
329
330 void osDie(LSL_Key objectUUID);
331
332 /// <summary>
318 /// Check if the given key is an npc 333 /// Check if the given key is an npc
319 /// </summary> 334 /// </summary>
320 /// <param name="npc"></param> 335 /// <param name="npc"></param>
@@ -341,6 +356,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
341 rotation osNpcGetRot(key npc); 356 rotation osNpcGetRot(key npc);
342 void osNpcSetRot(LSL_Key npc, rotation rot); 357 void osNpcSetRot(LSL_Key npc, rotation rot);
343 void osNpcStopMoveToTarget(LSL_Key npc); 358 void osNpcStopMoveToTarget(LSL_Key npc);
359 void osNpcSetProfileAbout(LSL_Key npc, string about);
360 void osNpcSetProfileImage(LSL_Key npc, string image);
344 void osNpcSay(key npc, string message); 361 void osNpcSay(key npc, string message);
345 void osNpcSay(key npc, int channel, string message); 362 void osNpcSay(key npc, int channel, string message);
346 void osNpcShout(key npc, int channel, string message); 363 void osNpcShout(key npc, int channel, string message);
@@ -362,10 +379,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
362 vector osGetRegionSize(); 379 vector osGetRegionSize();
363 380
364 int osGetSimulatorMemory(); 381 int osGetSimulatorMemory();
382 int osGetSimulatorMemoryKB();
365 void osKickAvatar(string FirstName,string SurName,string alert); 383 void osKickAvatar(string FirstName,string SurName,string alert);
366 void osSetSpeed(string UUID, LSL_Float SpeedModifier); 384 void osSetSpeed(string UUID, LSL_Float SpeedModifier);
367 LSL_Float osGetHealth(string avatar); 385 LSL_Float osGetHealth(string avatar);
368 void osCauseHealing(string avatar, double healing); 386 void osCauseHealing(string avatar, double healing);
387 void osSetHealth(string avatar, double health);
388 void osSetHealRate(string avatar, double health);
389 LSL_Float osGetHealRate(string avatar);
369 void osCauseDamage(string avatar, double damage); 390 void osCauseDamage(string avatar, double damage);
370 void osForceOtherSit(string avatar); 391 void osForceOtherSit(string avatar);
371 void osForceOtherSit(string avatar, string target); 392 void osForceOtherSit(string avatar, string target);
@@ -375,6 +396,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
375 void osSetProjectionParams(LSL_Key prim, bool projection, LSL_Key texture, double fov, double focus, double amb); 396 void osSetProjectionParams(LSL_Key prim, bool projection, LSL_Key texture, double fov, double focus, double amb);
376 397
377 LSL_List osGetAvatarList(); 398 LSL_List osGetAvatarList();
399 LSL_List osGetNPCList();
378 400
379 LSL_String osUnixTimeToTimestamp(long time); 401 LSL_String osUnixTimeToTimestamp(long time);
380 402
@@ -468,5 +490,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
468 /// <param name="regex">string to use as pattern</param> 490 /// <param name="regex">string to use as pattern</param>
469 /// <returns>boolean</returns> 491 /// <returns>boolean</returns>
470 LSL_Integer osRegexIsMatch(string input, string pattern); 492 LSL_Integer osRegexIsMatch(string input, string pattern);
493
494 LSL_String osRequestURL(LSL_List options);
495 LSL_String osRequestSecureURL(LSL_List options);
496 void osCollisionSound(string impact_sound, double impact_volume);
497
498 void osVolumeDetect(int detect);
499
500 LSL_List osGetInertiaData();
501 void osClearInertia();
502 void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot);
503 void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot);
504 void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass);
505 void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot);
506
507 LSL_Integer osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags);
508 LSL_Integer osGetLinkNumber(LSL_String name);
471 } 509 }
472} 510}