diff options
author | Mic Bowman | 2012-03-24 22:43:42 -0700 |
---|---|---|
committer | Mic Bowman | 2012-03-24 22:43:42 -0700 |
commit | a14437ad5abf4d4dc95897216224548515a599e7 (patch) | |
tree | 56f793d9461c722efddc2f70b8b6efb6cd11c86a /OpenSim/Region/ScriptEngine/Shared/Api/Runtime | |
parent | Have the PhysicsParameters module output console command responses (diff) | |
download | opensim-SC-a14437ad5abf4d4dc95897216224548515a599e7.zip opensim-SC-a14437ad5abf4d4dc95897216224548515a599e7.tar.gz opensim-SC-a14437ad5abf4d4dc95897216224548515a599e7.tar.bz2 opensim-SC-a14437ad5abf4d4dc95897216224548515a599e7.tar.xz |
Add support for key, vector, rotation and list types for both
arguments and return values to the modInvoke family of functions.
See http://opensimulator.org/wiki/OSSL_Script_Library/ModInvoke
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/MOD_Stub.cs | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/MOD_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/MOD_Stub.cs index 04b7f14..e7a4b2b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/MOD_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/MOD_Stub.cs | |||
@@ -39,10 +39,14 @@ using integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; | |||
39 | using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; | 39 | using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; |
40 | using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; | 40 | using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; |
41 | using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | 41 | using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; |
42 | using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list; | 42 | |
43 | using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | ||
44 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; | 43 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; |
45 | using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; | 44 | using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; |
45 | using LSL_Key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | ||
46 | using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list; | ||
47 | using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion; | ||
48 | using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | ||
49 | using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; | ||
46 | 50 | ||
47 | namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | 51 | namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase |
48 | { | 52 | { |
@@ -58,21 +62,41 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
58 | m_MOD_Functions = (IMOD_Api)api; | 62 | m_MOD_Functions = (IMOD_Api)api; |
59 | } | 63 | } |
60 | 64 | ||
61 | public string modInvokeS(string fname, params object[] parms) | 65 | public LSL_String modInvokeS(string fname, params object[] parms) |
62 | { | 66 | { |
63 | return m_MOD_Functions.modInvokeS(fname, parms); | 67 | return m_MOD_Functions.modInvokeS(fname, parms); |
64 | } | 68 | } |
65 | 69 | ||
66 | public int modInvokeI(string fname, params object[] parms) | 70 | public LSL_Integer modInvokeI(string fname, params object[] parms) |
67 | { | 71 | { |
68 | return m_MOD_Functions.modInvokeI(fname, parms); | 72 | return m_MOD_Functions.modInvokeI(fname, parms); |
69 | } | 73 | } |
70 | 74 | ||
71 | public float modInvokeF(string fname, params object[] parms) | 75 | public LSL_Float modInvokeF(string fname, params object[] parms) |
72 | { | 76 | { |
73 | return m_MOD_Functions.modInvokeF(fname, parms); | 77 | return m_MOD_Functions.modInvokeF(fname, parms); |
74 | } | 78 | } |
75 | 79 | ||
80 | public LSL_Key modInvokeK(string fname, params object[] parms) | ||
81 | { | ||
82 | return m_MOD_Functions.modInvokeK(fname, parms); | ||
83 | } | ||
84 | |||
85 | public LSL_Vector modInvokeV(string fname, params object[] parms) | ||
86 | { | ||
87 | return m_MOD_Functions.modInvokeV(fname, parms); | ||
88 | } | ||
89 | |||
90 | public LSL_Rotation modInvokeR(string fname, params object[] parms) | ||
91 | { | ||
92 | return m_MOD_Functions.modInvokeR(fname, parms); | ||
93 | } | ||
94 | |||
95 | public LSL_List modInvokeL(string fname, params object[] parms) | ||
96 | { | ||
97 | return m_MOD_Functions.modInvokeL(fname, parms); | ||
98 | } | ||
99 | |||
76 | public string modSendCommand(string module, string command, string k) | 100 | public string modSendCommand(string module, string command, string k) |
77 | { | 101 | { |
78 | return m_MOD_Functions.modSendCommand(module, command, k); | 102 | return m_MOD_Functions.modSendCommand(module, command, k); |