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