diff options
Diffstat (limited to 'OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs')
-rw-r--r-- | OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs new file mode 100644 index 0000000..89efa6a --- /dev/null +++ b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs | |||
@@ -0,0 +1,60 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using System.IO; | ||
5 | using OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler; | ||
6 | using OpenSim.Region.ScriptEngine.Common; | ||
7 | |||
8 | namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO | ||
9 | { | ||
10 | public partial class LSL_BaseClass | ||
11 | { | ||
12 | //public MemoryStream LSLStack = new MemoryStream(); | ||
13 | public Stack<object> LSLStack = new Stack<object>(); | ||
14 | public Dictionary<UInt32, object> StaticVariables = new Dictionary<UInt32, object>(); | ||
15 | public Dictionary<UInt32, object> GlobalVariables = new Dictionary<UInt32, object>(); | ||
16 | public Dictionary<UInt32, object> LocalVariables = new Dictionary<UInt32, object>(); | ||
17 | //public System.Collections.Generic.List<string> FunctionList = new System.Collections.Generic.List<string>(); | ||
18 | //public void AddFunction(String x) { | ||
19 | // FunctionList.Add(x); | ||
20 | //} | ||
21 | //public Stack<StackItemStruct> LSLStack = new Stack<StackItemStruct>; | ||
22 | //public struct StackItemStruct | ||
23 | //{ | ||
24 | // public LSO_Enums.Variable_Type_Codes ItemType; | ||
25 | // public object Data; | ||
26 | //} | ||
27 | public UInt32 State = 0; | ||
28 | public LSL_BuiltIn_Commands_Interface LSL_Builtins; | ||
29 | public LSL_BuiltIn_Commands_Interface GetLSL_BuiltIn() | ||
30 | { | ||
31 | return LSL_Builtins; | ||
32 | } | ||
33 | |||
34 | |||
35 | public LSL_BaseClass() { } | ||
36 | |||
37 | |||
38 | public virtual int OverrideMe() | ||
39 | { | ||
40 | return 0; | ||
41 | } | ||
42 | public void Start(LSL_BuiltIn_Commands_Interface LSLBuiltins) | ||
43 | { | ||
44 | LSL_Builtins = LSLBuiltins; | ||
45 | |||
46 | Common.SendToLog("OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSO.LSL_BaseClass.Start() called"); | ||
47 | //LSL_Builtins.llSay(0, "Test"); | ||
48 | return; | ||
49 | } | ||
50 | |||
51 | public void AddToStatic(UInt32 index, object obj) | ||
52 | { | ||
53 | Common.SendToDebug("AddToStatic: " + index + " type: " + obj.GetType()); | ||
54 | StaticVariables.Add(index, obj); | ||
55 | } | ||
56 | |||
57 | |||
58 | |||
59 | } | ||
60 | } | ||