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