diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Interface')
3 files changed, 55 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs new file mode 100644 index 0000000..ab215f3 --- /dev/null +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSimulator Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
28 | using System.Collections; | ||
29 | using OpenSim.Region.ScriptEngine.Interfaces; | ||
30 | |||
31 | using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | ||
32 | using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; | ||
33 | using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; | ||
34 | using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list; | ||
35 | using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | ||
36 | using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; | ||
37 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; | ||
38 | |||
39 | namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | ||
40 | { | ||
41 | public interface ICM_Api | ||
42 | { | ||
43 | string cmDetectedCountry(int num); | ||
44 | string cmGetAgentCountry(key key); | ||
45 | } | ||
46 | } | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index 69df392..eab6851 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | |||
@@ -124,6 +124,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
124 | LSL_Float llGetEnergy(); | 124 | LSL_Float llGetEnergy(); |
125 | LSL_Vector llGetForce(); | 125 | LSL_Vector llGetForce(); |
126 | LSL_Integer llGetFreeMemory(); | 126 | LSL_Integer llGetFreeMemory(); |
127 | LSL_Integer llGetUsedMemory(); | ||
127 | LSL_Integer llGetFreeURLs(); | 128 | LSL_Integer llGetFreeURLs(); |
128 | LSL_Vector llGetGeometricCenter(); | 129 | LSL_Vector llGetGeometricCenter(); |
129 | LSL_Float llGetGMTclock(); | 130 | LSL_Float llGetGMTclock(); |
@@ -147,6 +148,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
147 | LSL_Vector llGetLocalPos(); | 148 | LSL_Vector llGetLocalPos(); |
148 | LSL_Rotation llGetLocalRot(); | 149 | LSL_Rotation llGetLocalRot(); |
149 | LSL_Float llGetMass(); | 150 | LSL_Float llGetMass(); |
151 | LSL_Float llGetMassMKS(); | ||
150 | LSL_Integer llGetMemoryLimit(); | 152 | LSL_Integer llGetMemoryLimit(); |
151 | void llGetNextEmail(string address, string subject); | 153 | void llGetNextEmail(string address, string subject); |
152 | LSL_String llGetNotecardLine(string name, int line); | 154 | LSL_String llGetNotecardLine(string name, int line); |
@@ -200,12 +202,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
200 | LSL_String llGetTimestamp(); | 202 | LSL_String llGetTimestamp(); |
201 | LSL_Vector llGetTorque(); | 203 | LSL_Vector llGetTorque(); |
202 | LSL_Integer llGetUnixTime(); | 204 | LSL_Integer llGetUnixTime(); |
203 | LSL_Integer llGetUsedMemory(); | ||
204 | LSL_Vector llGetVel(); | 205 | LSL_Vector llGetVel(); |
205 | LSL_Float llGetWallclock(); | 206 | LSL_Float llGetWallclock(); |
206 | void llGiveInventory(string destination, string inventory); | 207 | void llGiveInventory(string destination, string inventory); |
207 | void llGiveInventoryList(string destination, string category, LSL_List inventory); | 208 | void llGiveInventoryList(string destination, string category, LSL_List inventory); |
208 | LSL_Integer llGiveMoney(string destination, int amount); | 209 | LSL_Integer llGiveMoney(string destination, int amount); |
210 | LSL_String llTransferLindenDollars(string destination, int amount); | ||
209 | void llGodLikeRezObject(string inventory, LSL_Vector pos); | 211 | void llGodLikeRezObject(string inventory, LSL_Vector pos); |
210 | LSL_Float llGround(LSL_Vector offset); | 212 | LSL_Float llGround(LSL_Vector offset); |
211 | LSL_Vector llGroundContour(LSL_Vector offset); | 213 | LSL_Vector llGroundContour(LSL_Vector offset); |
@@ -353,6 +355,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
353 | void llSetParcelMusicURL(string url); | 355 | void llSetParcelMusicURL(string url); |
354 | void llSetPayPrice(int price, LSL_List quick_pay_buttons); | 356 | void llSetPayPrice(int price, LSL_List quick_pay_buttons); |
355 | void llSetPos(LSL_Vector pos); | 357 | void llSetPos(LSL_Vector pos); |
358 | LSL_Integer llSetRegionPos(LSL_Vector pos); | ||
356 | LSL_Integer llSetPrimMediaParams(LSL_Integer face, LSL_List rules); | 359 | LSL_Integer llSetPrimMediaParams(LSL_Integer face, LSL_List rules); |
357 | void llSetPrimitiveParams(LSL_List rules); | 360 | void llSetPrimitiveParams(LSL_List rules); |
358 | void llSetLinkPrimitiveParamsFast(int linknum, LSL_List rules); | 361 | void llSetLinkPrimitiveParamsFast(int linknum, LSL_List rules); |
@@ -401,6 +404,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
401 | void llTargetOmega(LSL_Vector axis, double spinrate, double gain); | 404 | void llTargetOmega(LSL_Vector axis, double spinrate, double gain); |
402 | void llTargetRemove(int number); | 405 | void llTargetRemove(int number); |
403 | void llTeleportAgentHome(string agent); | 406 | void llTeleportAgentHome(string agent); |
407 | void llTeleportAgent(string agent, string simname, LSL_Vector pos, LSL_Vector lookAt); | ||
404 | void llTextBox(string avatar, string message, int chat_channel); | 408 | void llTextBox(string avatar, string message, int chat_channel); |
405 | LSL_String llToLower(string source); | 409 | LSL_String llToLower(string source); |
406 | LSL_String llToUpper(string source); | 410 | LSL_String llToUpper(string source); |
@@ -417,9 +421,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
417 | LSL_Vector llWind(LSL_Vector offset); | 421 | LSL_Vector llWind(LSL_Vector offset); |
418 | LSL_String llXorBase64Strings(string str1, string str2); | 422 | LSL_String llXorBase64Strings(string str1, string str2); |
419 | LSL_String llXorBase64StringsCorrect(string str1, string str2); | 423 | LSL_String llXorBase64StringsCorrect(string str1, string str2); |
420 | void print(string str); | 424 | LSL_Integer llGetLinkNumberOfSides(LSL_Integer link); |
425 | void llSetPhysicsMaterial(int material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density); | ||
421 | 426 | ||
422 | void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules); | 427 | void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules); |
423 | LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules); | 428 | LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules); |
429 | void llSetKeyframedMotion(LSL_List frames, LSL_List options); | ||
424 | } | 430 | } |
425 | } | 431 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs index 545bbee..2fcc443 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs | |||
@@ -85,7 +85,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
85 | // Avatar Info Commands | 85 | // Avatar Info Commands |
86 | string osGetAgentIP(string agent); | 86 | string osGetAgentIP(string agent); |
87 | LSL_List osGetAgents(); | 87 | LSL_List osGetAgents(); |
88 | 88 | ||
89 | // Teleport commands | 89 | // Teleport commands |
90 | void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); | 90 | void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); |
91 | void osTeleportAgent(string agent, int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); | 91 | void osTeleportAgent(string agent, int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); |