diff options
author | Sean Dague | 2007-09-13 11:41:42 +0000 |
---|---|---|
committer | Sean Dague | 2007-09-13 11:41:42 +0000 |
commit | afea5f22055fd645e95c4e1dcad01e68716fa049 (patch) | |
tree | 73dbc6fff4cba36c559234b66d24c84e00f3f162 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL | |
parent | adding eol-style attributes on new files (diff) | |
download | opensim-SC-afea5f22055fd645e95c4e1dcad01e68716fa049.zip opensim-SC-afea5f22055fd645e95c4e1dcad01e68716fa049.tar.gz opensim-SC-afea5f22055fd645e95c4e1dcad01e68716fa049.tar.bz2 opensim-SC-afea5f22055fd645e95c4e1dcad01e68716fa049.tar.xz |
remove ^M, as native storage should be UNIX format, and ^M in/out mashing
will happen on the windows side now that eol-style is correct
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL')
3 files changed, 1161 insertions, 1161 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index a488b91..b63a6ce 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | |||
@@ -1,113 +1,113 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using System.IO; | 4 | using System.IO; |
5 | using Microsoft.CSharp; | 5 | using Microsoft.CSharp; |
6 | using System.CodeDom.Compiler; | 6 | using System.CodeDom.Compiler; |
7 | using System.Reflection; | 7 | using System.Reflection; |
8 | 8 | ||
9 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | 9 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL |
10 | { | 10 | { |
11 | 11 | ||
12 | public class Compiler | 12 | public class Compiler |
13 | { | 13 | { |
14 | private LSL2CSConverter LSL_Converter = new LSL2CSConverter(); | 14 | private LSL2CSConverter LSL_Converter = new LSL2CSConverter(); |
15 | private CSharpCodeProvider codeProvider = new CSharpCodeProvider(); | 15 | private CSharpCodeProvider codeProvider = new CSharpCodeProvider(); |
16 | private static UInt64 scriptCompileCounter = 0; | 16 | private static UInt64 scriptCompileCounter = 0; |
17 | //private ICodeCompiler icc = codeProvider.CreateCompiler(); | 17 | //private ICodeCompiler icc = codeProvider.CreateCompiler(); |
18 | public string CompileFromFile(string LSOFileName) | 18 | public string CompileFromFile(string LSOFileName) |
19 | { | 19 | { |
20 | switch (System.IO.Path.GetExtension(LSOFileName).ToLower()) | 20 | switch (System.IO.Path.GetExtension(LSOFileName).ToLower()) |
21 | { | 21 | { |
22 | case ".txt": | 22 | case ".txt": |
23 | case ".lsl": | 23 | case ".lsl": |
24 | Common.SendToDebug("Source code is LSL, converting to CS"); | 24 | Common.SendToDebug("Source code is LSL, converting to CS"); |
25 | return CompileFromLSLText(File.ReadAllText(LSOFileName)); | 25 | return CompileFromLSLText(File.ReadAllText(LSOFileName)); |
26 | case ".cs": | 26 | case ".cs": |
27 | Common.SendToDebug("Source code is CS"); | 27 | Common.SendToDebug("Source code is CS"); |
28 | return CompileFromCSText(File.ReadAllText(LSOFileName)); | 28 | return CompileFromCSText(File.ReadAllText(LSOFileName)); |
29 | default: | 29 | default: |
30 | throw new Exception("Unknown script type."); | 30 | throw new Exception("Unknown script type."); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | /// <summary> | 33 | /// <summary> |
34 | /// Converts script from LSL to CS and calls CompileFromCSText | 34 | /// Converts script from LSL to CS and calls CompileFromCSText |
35 | /// </summary> | 35 | /// </summary> |
36 | /// <param name="Script">LSL script</param> | 36 | /// <param name="Script">LSL script</param> |
37 | /// <returns>Filename to .dll assembly</returns> | 37 | /// <returns>Filename to .dll assembly</returns> |
38 | public string CompileFromLSLText(string Script) | 38 | public string CompileFromLSLText(string Script) |
39 | { | 39 | { |
40 | return CompileFromCSText(LSL_Converter.Convert(Script)); | 40 | return CompileFromCSText(LSL_Converter.Convert(Script)); |
41 | } | 41 | } |
42 | /// <summary> | 42 | /// <summary> |
43 | /// Compile CS script to .Net assembly (.dll) | 43 | /// Compile CS script to .Net assembly (.dll) |
44 | /// </summary> | 44 | /// </summary> |
45 | /// <param name="Script">CS script</param> | 45 | /// <param name="Script">CS script</param> |
46 | /// <returns>Filename to .dll assembly</returns> | 46 | /// <returns>Filename to .dll assembly</returns> |
47 | public string CompileFromCSText(string Script) | 47 | public string CompileFromCSText(string Script) |
48 | { | 48 | { |
49 | 49 | ||
50 | 50 | ||
51 | // Output assembly name | 51 | // Output assembly name |
52 | scriptCompileCounter++; | 52 | scriptCompileCounter++; |
53 | string OutFile = Path.Combine("ScriptEngines", "Script_" + scriptCompileCounter + ".dll"); | 53 | string OutFile = Path.Combine("ScriptEngines", "Script_" + scriptCompileCounter + ".dll"); |
54 | try | 54 | try |
55 | { | 55 | { |
56 | System.IO.File.Delete(OutFile); | 56 | System.IO.File.Delete(OutFile); |
57 | } | 57 | } |
58 | catch (Exception e) | 58 | catch (Exception e) |
59 | { | 59 | { |
60 | Console.WriteLine("Exception attempting to delete old compiled script: " + e.ToString()); | 60 | Console.WriteLine("Exception attempting to delete old compiled script: " + e.ToString()); |
61 | } | 61 | } |
62 | //string OutFile = Path.Combine("ScriptEngines", "SecondLife.Script.dll"); | 62 | //string OutFile = Path.Combine("ScriptEngines", "SecondLife.Script.dll"); |
63 | 63 | ||
64 | // DEBUG - write source to disk | 64 | // DEBUG - write source to disk |
65 | try | 65 | try |
66 | { | 66 | { |
67 | File.WriteAllText(Path.Combine("ScriptEngines", "debug_" + Path.GetFileNameWithoutExtension(OutFile) + ".cs"), Script); | 67 | File.WriteAllText(Path.Combine("ScriptEngines", "debug_" + Path.GetFileNameWithoutExtension(OutFile) + ".cs"), Script); |
68 | } | 68 | } |
69 | catch { } | 69 | catch { } |
70 | 70 | ||
71 | // Do actual compile | 71 | // Do actual compile |
72 | System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); | 72 | System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); |
73 | parameters.IncludeDebugInformation = true; | 73 | parameters.IncludeDebugInformation = true; |
74 | // Add all available assemblies | 74 | // Add all available assemblies |
75 | foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) | 75 | foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) |
76 | { | 76 | { |
77 | //Console.WriteLine("Adding assembly: " + asm.Location); | 77 | //Console.WriteLine("Adding assembly: " + asm.Location); |
78 | //parameters.ReferencedAssemblies.Add(asm.Location); | 78 | //parameters.ReferencedAssemblies.Add(asm.Location); |
79 | } | 79 | } |
80 | 80 | ||
81 | string rootPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory); | 81 | string rootPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory); |
82 | string rootPathSE = Path.GetDirectoryName(this.GetType().Assembly.Location); | 82 | string rootPathSE = Path.GetDirectoryName(this.GetType().Assembly.Location); |
83 | //Console.WriteLine("Assembly location: " + rootPath); | 83 | //Console.WriteLine("Assembly location: " + rootPath); |
84 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Common.dll")); | 84 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, "OpenSim.Region.ScriptEngine.Common.dll")); |
85 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPathSE, "OpenSim.Region.ScriptEngine.DotNetEngine.dll")); | 85 | parameters.ReferencedAssemblies.Add(Path.Combine(rootPathSE, "OpenSim.Region.ScriptEngine.DotNetEngine.dll")); |
86 | 86 | ||
87 | //parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment"); | 87 | //parameters.ReferencedAssemblies.Add("OpenSim.Region.Environment"); |
88 | parameters.GenerateExecutable = false; | 88 | parameters.GenerateExecutable = false; |
89 | parameters.OutputAssembly = OutFile; | 89 | parameters.OutputAssembly = OutFile; |
90 | parameters.IncludeDebugInformation = false; | 90 | parameters.IncludeDebugInformation = false; |
91 | CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, Script); | 91 | CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, Script); |
92 | 92 | ||
93 | // Go through errors | 93 | // Go through errors |
94 | // TODO: Return errors to user somehow | 94 | // TODO: Return errors to user somehow |
95 | if (results.Errors.Count > 0) | 95 | if (results.Errors.Count > 0) |
96 | { | 96 | { |
97 | 97 | ||
98 | string errtext = ""; | 98 | string errtext = ""; |
99 | foreach (CompilerError CompErr in results.Errors) | 99 | foreach (CompilerError CompErr in results.Errors) |
100 | { | 100 | { |
101 | errtext += "Line number " + (CompErr.Line - 1) + | 101 | errtext += "Line number " + (CompErr.Line - 1) + |
102 | ", Error Number: " + CompErr.ErrorNumber + | 102 | ", Error Number: " + CompErr.ErrorNumber + |
103 | ", '" + CompErr.ErrorText + "'\r\n"; | 103 | ", '" + CompErr.ErrorText + "'\r\n"; |
104 | } | 104 | } |
105 | throw new Exception(errtext); | 105 | throw new Exception(errtext); |
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||
109 | return OutFile; | 109 | return OutFile; |
110 | } | 110 | } |
111 | 111 | ||
112 | } | 112 | } |
113 | } | 113 | } |
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index 3adb7e2..c70448b 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | |||
@@ -1,265 +1,265 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using System.Text.RegularExpressions; | 4 | using System.Text.RegularExpressions; |
5 | 5 | ||
6 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | 6 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL |
7 | { | 7 | { |
8 | public class LSL2CSConverter | 8 | public class LSL2CSConverter |
9 | { | 9 | { |
10 | //private Regex rnw = new Regex(@"[a-zA-Z0-9_\-]", RegexOptions.Compiled); | 10 | //private Regex rnw = new Regex(@"[a-zA-Z0-9_\-]", RegexOptions.Compiled); |
11 | private Dictionary<string, string> dataTypes = new Dictionary<string, string>(); | 11 | private Dictionary<string, string> dataTypes = new Dictionary<string, string>(); |
12 | private Dictionary<string, string> quotes = new Dictionary<string, string>(); | 12 | private Dictionary<string, string> quotes = new Dictionary<string, string>(); |
13 | 13 | ||
14 | public LSL2CSConverter() | 14 | public LSL2CSConverter() |
15 | { | 15 | { |
16 | // Only the types we need to convert | 16 | // Only the types we need to convert |
17 | dataTypes.Add("void", "void"); | 17 | dataTypes.Add("void", "void"); |
18 | dataTypes.Add("integer", "int"); | 18 | dataTypes.Add("integer", "int"); |
19 | dataTypes.Add("float", "double"); | 19 | dataTypes.Add("float", "double"); |
20 | dataTypes.Add("string", "string"); | 20 | dataTypes.Add("string", "string"); |
21 | dataTypes.Add("key", "string"); | 21 | dataTypes.Add("key", "string"); |
22 | dataTypes.Add("vector", "LSL_Types.Vector3"); | 22 | dataTypes.Add("vector", "LSL_Types.Vector3"); |
23 | dataTypes.Add("rotation", "LSL_Types.Quaternion"); | 23 | dataTypes.Add("rotation", "LSL_Types.Quaternion"); |
24 | dataTypes.Add("list", "list"); | 24 | dataTypes.Add("list", "list"); |
25 | dataTypes.Add("null", "null"); | 25 | dataTypes.Add("null", "null"); |
26 | 26 | ||
27 | } | 27 | } |
28 | 28 | ||
29 | public string Convert(string Script) | 29 | public string Convert(string Script) |
30 | { | 30 | { |
31 | string Return = ""; | 31 | string Return = ""; |
32 | Script = " \r\n" + Script; | 32 | Script = " \r\n" + Script; |
33 | 33 | ||
34 | // | 34 | // |
35 | // Prepare script for processing | 35 | // Prepare script for processing |
36 | // | 36 | // |
37 | 37 | ||
38 | // Clean up linebreaks | 38 | // Clean up linebreaks |
39 | Script = Regex.Replace(Script, @"\r\n", "\n"); | 39 | Script = Regex.Replace(Script, @"\r\n", "\n"); |
40 | Script = Regex.Replace(Script, @"\n", "\r\n"); | 40 | Script = Regex.Replace(Script, @"\n", "\r\n"); |
41 | 41 | ||
42 | 42 | ||
43 | // QUOTE REPLACEMENT | 43 | // QUOTE REPLACEMENT |
44 | // temporarily replace quotes so we can work our magic on the script without | 44 | // temporarily replace quotes so we can work our magic on the script without |
45 | // always considering if we are inside our outside ""'s | 45 | // always considering if we are inside our outside ""'s |
46 | string _Script = ""; | 46 | string _Script = ""; |
47 | string C; | 47 | string C; |
48 | bool in_quote = false; | 48 | bool in_quote = false; |
49 | bool quote_replaced = false; | 49 | bool quote_replaced = false; |
50 | string quote_replacement_string = "Q_U_O_T_E_REPLACEMENT_"; | 50 | string quote_replacement_string = "Q_U_O_T_E_REPLACEMENT_"; |
51 | string quote = ""; | 51 | string quote = ""; |
52 | bool last_was_escape = false; | 52 | bool last_was_escape = false; |
53 | int quote_replaced_count = 0; | 53 | int quote_replaced_count = 0; |
54 | for (int p = 0; p < Script.Length; p++) | 54 | for (int p = 0; p < Script.Length; p++) |
55 | { | 55 | { |
56 | 56 | ||
57 | C = Script.Substring(p, 1); | 57 | C = Script.Substring(p, 1); |
58 | while (true) | 58 | while (true) |
59 | { | 59 | { |
60 | // found " and last was not \ so this is not an escaped \" | 60 | // found " and last was not \ so this is not an escaped \" |
61 | if (C == "\"" && last_was_escape == false) | 61 | if (C == "\"" && last_was_escape == false) |
62 | { | 62 | { |
63 | // Toggle inside/outside quote | 63 | // Toggle inside/outside quote |
64 | in_quote = !in_quote; | 64 | in_quote = !in_quote; |
65 | if (in_quote) | 65 | if (in_quote) |
66 | { | 66 | { |
67 | quote_replaced_count++; | 67 | quote_replaced_count++; |
68 | } | 68 | } |
69 | else | 69 | else |
70 | { | 70 | { |
71 | if (quote == "") | 71 | if (quote == "") |
72 | { | 72 | { |
73 | // We didn't replace quote, probably because of empty string? | 73 | // We didn't replace quote, probably because of empty string? |
74 | _Script += quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]); | 74 | _Script += quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]); |
75 | } | 75 | } |
76 | // We just left a quote | 76 | // We just left a quote |
77 | quotes.Add(quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]), quote); | 77 | quotes.Add(quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]), quote); |
78 | quote = ""; | 78 | quote = ""; |
79 | } | 79 | } |
80 | break; | 80 | break; |
81 | } | 81 | } |
82 | 82 | ||
83 | if (!in_quote) | 83 | if (!in_quote) |
84 | { | 84 | { |
85 | // We are not inside a quote | 85 | // We are not inside a quote |
86 | quote_replaced = false; | 86 | quote_replaced = false; |
87 | 87 | ||
88 | } | 88 | } |
89 | else | 89 | else |
90 | { | 90 | { |
91 | // We are inside a quote | 91 | // We are inside a quote |
92 | if (!quote_replaced) | 92 | if (!quote_replaced) |
93 | { | 93 | { |
94 | // Replace quote | 94 | // Replace quote |
95 | _Script += quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]); | 95 | _Script += quote_replacement_string + quote_replaced_count.ToString().PadLeft(5, "0".ToCharArray()[0]); |
96 | quote_replaced = true; | 96 | quote_replaced = true; |
97 | } | 97 | } |
98 | quote += C; | 98 | quote += C; |
99 | break; | 99 | break; |
100 | } | 100 | } |
101 | _Script += C; | 101 | _Script += C; |
102 | break; | 102 | break; |
103 | } | 103 | } |
104 | last_was_escape = false; | 104 | last_was_escape = false; |
105 | if (C == @"\") | 105 | if (C == @"\") |
106 | { | 106 | { |
107 | last_was_escape = true; | 107 | last_was_escape = true; |
108 | } | 108 | } |
109 | } | 109 | } |
110 | Script = _Script; | 110 | Script = _Script; |
111 | // | 111 | // |
112 | // END OF QUOTE REPLACEMENT | 112 | // END OF QUOTE REPLACEMENT |
113 | // | 113 | // |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | // | 117 | // |
118 | // PROCESS STATES | 118 | // PROCESS STATES |
119 | // Remove state definitions and add state names to start of each event within state | 119 | // Remove state definitions and add state names to start of each event within state |
120 | // | 120 | // |
121 | int ilevel = 0; | 121 | int ilevel = 0; |
122 | int lastlevel = 0; | 122 | int lastlevel = 0; |
123 | string ret = ""; | 123 | string ret = ""; |
124 | string cache = ""; | 124 | string cache = ""; |
125 | bool in_state = false; | 125 | bool in_state = false; |
126 | string current_statename = ""; | 126 | string current_statename = ""; |
127 | for (int p = 0; p < Script.Length; p++) | 127 | for (int p = 0; p < Script.Length; p++) |
128 | { | 128 | { |
129 | C = Script.Substring(p, 1); | 129 | C = Script.Substring(p, 1); |
130 | while (true) | 130 | while (true) |
131 | { | 131 | { |
132 | // inc / dec level | 132 | // inc / dec level |
133 | if (C == @"{") | 133 | if (C == @"{") |
134 | ilevel++; | 134 | ilevel++; |
135 | if (C == @"}") | 135 | if (C == @"}") |
136 | ilevel--; | 136 | ilevel--; |
137 | if (ilevel < 0) | 137 | if (ilevel < 0) |
138 | ilevel = 0; | 138 | ilevel = 0; |
139 | cache += C; | 139 | cache += C; |
140 | 140 | ||
141 | // if level == 0, add to return | 141 | // if level == 0, add to return |
142 | if (ilevel == 1 && lastlevel == 0) | 142 | if (ilevel == 1 && lastlevel == 0) |
143 | { | 143 | { |
144 | // 0 => 1: Get last | 144 | // 0 => 1: Get last |
145 | Match m = Regex.Match(cache, @"(?![a-zA-Z_]+)\s*([a-zA-Z_]+)[^a-zA-Z_\(\)]*{", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 145 | Match m = Regex.Match(cache, @"(?![a-zA-Z_]+)\s*([a-zA-Z_]+)[^a-zA-Z_\(\)]*{", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
146 | 146 | ||
147 | in_state = false; | 147 | in_state = false; |
148 | if (m.Success) | 148 | if (m.Success) |
149 | { | 149 | { |
150 | // Go back to level 0, this is not a state | 150 | // Go back to level 0, this is not a state |
151 | in_state = true; | 151 | in_state = true; |
152 | current_statename = m.Groups[1].Captures[0].Value; | 152 | current_statename = m.Groups[1].Captures[0].Value; |
153 | //Console.WriteLine("Current statename: " + current_statename); | 153 | //Console.WriteLine("Current statename: " + current_statename); |
154 | cache = Regex.Replace(cache, @"(?<s1>(?![a-zA-Z_]+)\s*)" + @"([a-zA-Z_]+)(?<s2>[^a-zA-Z_\(\)]*){", "${s1}${s2}", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 154 | cache = Regex.Replace(cache, @"(?<s1>(?![a-zA-Z_]+)\s*)" + @"([a-zA-Z_]+)(?<s2>[^a-zA-Z_\(\)]*){", "${s1}${s2}", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
155 | } | 155 | } |
156 | ret += cache; | 156 | ret += cache; |
157 | cache = ""; | 157 | cache = ""; |
158 | } | 158 | } |
159 | if (ilevel == 0 && lastlevel == 1) | 159 | if (ilevel == 0 && lastlevel == 1) |
160 | { | 160 | { |
161 | // 1 => 0: Remove last } | 161 | // 1 => 0: Remove last } |
162 | if (in_state == true) | 162 | if (in_state == true) |
163 | { | 163 | { |
164 | cache = cache.Remove(cache.Length - 1, 1); | 164 | cache = cache.Remove(cache.Length - 1, 1); |
165 | //cache = Regex.Replace(cache, "}$", "", RegexOptions.Multiline | RegexOptions.Singleline); | 165 | //cache = Regex.Replace(cache, "}$", "", RegexOptions.Multiline | RegexOptions.Singleline); |
166 | 166 | ||
167 | //Replace function names | 167 | //Replace function names |
168 | // void dataserver(key query_id, string data) { | 168 | // void dataserver(key query_id, string data) { |
169 | //cache = Regex.Replace(cache, @"([^a-zA-Z_]\s*)((?!if|switch|for)[a-zA-Z_]+\s*\([^\)]*\)[^{]*{)", "$1" + "<STATE>" + "$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 169 | //cache = Regex.Replace(cache, @"([^a-zA-Z_]\s*)((?!if|switch|for)[a-zA-Z_]+\s*\([^\)]*\)[^{]*{)", "$1" + "<STATE>" + "$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
170 | //Console.WriteLine("Replacing using statename: " + current_statename); | 170 | //Console.WriteLine("Replacing using statename: " + current_statename); |
171 | cache = Regex.Replace(cache, @"^(\s*)((?!(if|switch|for)[^a-zA-Z0-9_])[a-zA-Z0-9_]*\s*\([^\)]*\)[^;]*\{)", @"$1public " + current_statename + "_event_$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 171 | cache = Regex.Replace(cache, @"^(\s*)((?!(if|switch|for)[^a-zA-Z0-9_])[a-zA-Z0-9_]*\s*\([^\)]*\)[^;]*\{)", @"$1public " + current_statename + "_event_$2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
172 | } | 172 | } |
173 | 173 | ||
174 | ret += cache; | 174 | ret += cache; |
175 | cache = ""; | 175 | cache = ""; |
176 | in_state = true; | 176 | in_state = true; |
177 | current_statename = ""; | 177 | current_statename = ""; |
178 | } | 178 | } |
179 | 179 | ||
180 | break; | 180 | break; |
181 | } | 181 | } |
182 | lastlevel = ilevel; | 182 | lastlevel = ilevel; |
183 | } | 183 | } |
184 | ret += cache; | 184 | ret += cache; |
185 | cache = ""; | 185 | cache = ""; |
186 | 186 | ||
187 | Script = ret; | 187 | Script = ret; |
188 | ret = ""; | 188 | ret = ""; |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | foreach (string key in dataTypes.Keys) | 192 | foreach (string key in dataTypes.Keys) |
193 | { | 193 | { |
194 | string val; | 194 | string val; |
195 | dataTypes.TryGetValue(key, out val); | 195 | dataTypes.TryGetValue(key, out val); |
196 | 196 | ||
197 | // Replace CAST - (integer) with (int) | 197 | // Replace CAST - (integer) with (int) |
198 | Script = Regex.Replace(Script, @"\(" + key + @"\)", @"(" + val + ")", RegexOptions.Compiled | RegexOptions.Multiline); | 198 | Script = Regex.Replace(Script, @"\(" + key + @"\)", @"(" + val + ")", RegexOptions.Compiled | RegexOptions.Multiline); |
199 | // Replace return types and function variables - integer a() and f(integer a, integer a) | 199 | // Replace return types and function variables - integer a() and f(integer a, integer a) |
200 | Script = Regex.Replace(Script, @"(^|;|}|[\(,])(\s*)" + key + @"(\s*)", @"$1$2" + val + "$3", RegexOptions.Compiled | RegexOptions.Multiline); | 200 | Script = Regex.Replace(Script, @"(^|;|}|[\(,])(\s*)" + key + @"(\s*)", @"$1$2" + val + "$3", RegexOptions.Compiled | RegexOptions.Multiline); |
201 | } | 201 | } |
202 | 202 | ||
203 | // Add "void" in front of functions that needs it | 203 | // Add "void" in front of functions that needs it |
204 | Script = Regex.Replace(Script, @"^(\s*public\s+)((?!(if|switch|for)[^a-zA-Z0-9_])[a-zA-Z0-9_]*\s*\([^\)]*\)[^;]*\{)", @"$1void $2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 204 | Script = Regex.Replace(Script, @"^(\s*public\s+)((?!(if|switch|for)[^a-zA-Z0-9_])[a-zA-Z0-9_]*\s*\([^\)]*\)[^;]*\{)", @"$1void $2", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
205 | 205 | ||
206 | // Replace <x,y,z> and <x,y,z,r> | 206 | // Replace <x,y,z> and <x,y,z,r> |
207 | Script = Regex.Replace(Script, @"<([^,>]*,[^,>]*,[^,>]*,[^,>]*)>", @"new LSL_Types.Quaternion($1)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 207 | Script = Regex.Replace(Script, @"<([^,>]*,[^,>]*,[^,>]*,[^,>]*)>", @"new LSL_Types.Quaternion($1)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
208 | Script = Regex.Replace(Script, @"<([^,>]*,[^,>]*,[^,>]*)>", @"new LSL_Types.Vector3($1)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 208 | Script = Regex.Replace(Script, @"<([^,>]*,[^,>]*,[^,>]*)>", @"new LSL_Types.Vector3($1)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
209 | 209 | ||
210 | // Replace List []'s | 210 | // Replace List []'s |
211 | Script = Regex.Replace(Script, @"\[([^\]]*)\]", @"List.Parse($1)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 211 | Script = Regex.Replace(Script, @"\[([^\]]*)\]", @"List.Parse($1)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
212 | 212 | ||
213 | 213 | ||
214 | // Replace (string) to .ToString() // | 214 | // Replace (string) to .ToString() // |
215 | Script = Regex.Replace(Script, @"\(string\)\s*([a-zA-Z0-9_]+(\s*\([^\)]*\))?)", @"$1.ToString()", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 215 | Script = Regex.Replace(Script, @"\(string\)\s*([a-zA-Z0-9_]+(\s*\([^\)]*\))?)", @"$1.ToString()", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
216 | Script = Regex.Replace(Script, @"\((float|int)\)\s*([a-zA-Z0-9_]+(\s*\([^\)]*\))?)", @"$1.Parse($2)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 216 | Script = Regex.Replace(Script, @"\((float|int)\)\s*([a-zA-Z0-9_]+(\s*\([^\)]*\))?)", @"$1.Parse($2)", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
217 | 217 | ||
218 | 218 | ||
219 | // REPLACE BACK QUOTES | 219 | // REPLACE BACK QUOTES |
220 | foreach (string key in quotes.Keys) | 220 | foreach (string key in quotes.Keys) |
221 | { | 221 | { |
222 | string val; | 222 | string val; |
223 | quotes.TryGetValue(key, out val); | 223 | quotes.TryGetValue(key, out val); |
224 | Script = Script.Replace(key, "\"" + val + "\""); | 224 | Script = Script.Replace(key, "\"" + val + "\""); |
225 | } | 225 | } |
226 | 226 | ||
227 | 227 | ||
228 | // Add namespace, class name and inheritance | 228 | // Add namespace, class name and inheritance |
229 | 229 | ||
230 | Return = "";// + | 230 | Return = "";// + |
231 | //"using System; " + | 231 | //"using System; " + |
232 | //"using System.Collections.Generic; " + | 232 | //"using System.Collections.Generic; " + |
233 | //"using System.Text; " + | 233 | //"using System.Text; " + |
234 | //"using OpenSim.Region.ScriptEngine.Common; " + | 234 | //"using OpenSim.Region.ScriptEngine.Common; " + |
235 | //"using integer = System.Int32; " + | 235 | //"using integer = System.Int32; " + |
236 | //"using key = System.String; "; | 236 | //"using key = System.String; "; |
237 | 237 | ||
238 | //// Make a Using out of DataTypes | 238 | //// Make a Using out of DataTypes |
239 | //// Using integer = System.Int32; | 239 | //// Using integer = System.Int32; |
240 | //string _val; | 240 | //string _val; |
241 | //foreach (string key in DataTypes.Keys) | 241 | //foreach (string key in DataTypes.Keys) |
242 | //{ | 242 | //{ |
243 | // DataTypes.TryGetValue(key, out _val); | 243 | // DataTypes.TryGetValue(key, out _val); |
244 | // if (key != _val) | 244 | // if (key != _val) |
245 | // { | 245 | // { |
246 | // Return += "using " + key + " = " + _val + "; "; | 246 | // Return += "using " + key + " = " + _val + "; "; |
247 | // } | 247 | // } |
248 | //} | 248 | //} |
249 | 249 | ||
250 | 250 | ||
251 | Return += "" + | 251 | Return += "" + |
252 | "namespace SecondLife { "; | 252 | "namespace SecondLife { "; |
253 | Return += "" + | 253 | Return += "" + |
254 | //"[Serializable] " + | 254 | //"[Serializable] " + |
255 | "public class Script : OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass { "; | 255 | "public class Script : OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass { "; |
256 | Return += @"public Script() { } "; | 256 | Return += @"public Script() { } "; |
257 | Return += Script; | 257 | Return += Script; |
258 | Return += "} }\r\n"; | 258 | Return += "} }\r\n"; |
259 | 259 | ||
260 | return Return; | 260 | return Return; |
261 | } | 261 | } |
262 | 262 | ||
263 | 263 | ||
264 | } | 264 | } |
265 | } | 265 | } |
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs index 63f7260..5f92e96 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | |||
@@ -1,783 +1,783 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler; | 4 | using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler; |
5 | using OpenSim.Region.ScriptEngine.Common; | 5 | using OpenSim.Region.ScriptEngine.Common; |
6 | using System.Threading; | 6 | using System.Threading; |
7 | using System.Reflection; | 7 | using System.Reflection; |
8 | using System.Runtime.Remoting.Lifetime; | 8 | using System.Runtime.Remoting.Lifetime; |
9 | using integer = System.Int32; | 9 | using integer = System.Int32; |
10 | using key = System.String; | 10 | using key = System.String; |
11 | using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3; | 11 | using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3; |
12 | using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion; | 12 | using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion; |
13 | 13 | ||
14 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | 14 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL |
15 | { | 15 | { |
16 | //[Serializable] | 16 | //[Serializable] |
17 | public class LSL_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface, IScript | 17 | public class LSL_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface, IScript |
18 | { | 18 | { |
19 | 19 | ||
20 | // Object never expires | 20 | // Object never expires |
21 | public override Object InitializeLifetimeService() | 21 | public override Object InitializeLifetimeService() |
22 | { | 22 | { |
23 | //Console.WriteLine("LSL_BaseClass: InitializeLifetimeService()"); | 23 | //Console.WriteLine("LSL_BaseClass: InitializeLifetimeService()"); |
24 | // return null; | 24 | // return null; |
25 | ILease lease = (ILease)base.InitializeLifetimeService(); | 25 | ILease lease = (ILease)base.InitializeLifetimeService(); |
26 | 26 | ||
27 | if (lease.CurrentState == LeaseState.Initial) | 27 | if (lease.CurrentState == LeaseState.Initial) |
28 | { | 28 | { |
29 | lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1); | 29 | lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1); |
30 | //lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); | 30 | //lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); |
31 | //lease.RenewOnCallTime = TimeSpan.FromSeconds(2); | 31 | //lease.RenewOnCallTime = TimeSpan.FromSeconds(2); |
32 | } | 32 | } |
33 | return lease; | 33 | return lease; |
34 | } | 34 | } |
35 | 35 | ||
36 | 36 | ||
37 | private Executor m_Exec; | 37 | private Executor m_Exec; |
38 | public Executor Exec | 38 | public Executor Exec |
39 | { | 39 | { |
40 | get | 40 | get |
41 | { | 41 | { |
42 | if (m_Exec == null) | 42 | if (m_Exec == null) |
43 | m_Exec = new Executor(this); | 43 | m_Exec = new Executor(this); |
44 | return m_Exec; | 44 | return m_Exec; |
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | public LSL_BuiltIn_Commands_Interface m_LSL_Functions; | 48 | public LSL_BuiltIn_Commands_Interface m_LSL_Functions; |
49 | 49 | ||
50 | public LSL_BaseClass() | 50 | public LSL_BaseClass() |
51 | { | 51 | { |
52 | } | 52 | } |
53 | public string State() | 53 | public string State() |
54 | { | 54 | { |
55 | return m_LSL_Functions.State(); | 55 | return m_LSL_Functions.State(); |
56 | } | 56 | } |
57 | 57 | ||
58 | 58 | ||
59 | public void Start(LSL_BuiltIn_Commands_Interface LSL_Functions) | 59 | public void Start(LSL_BuiltIn_Commands_Interface LSL_Functions) |
60 | { | 60 | { |
61 | m_LSL_Functions = LSL_Functions; | 61 | m_LSL_Functions = LSL_Functions; |
62 | 62 | ||
63 | //MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called."); | 63 | //MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called."); |
64 | 64 | ||
65 | // Get this AppDomain's settings and display some of them. | 65 | // Get this AppDomain's settings and display some of them. |
66 | AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation; | 66 | AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation; |
67 | Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}", | 67 | Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}", |
68 | ads.ApplicationName, | 68 | ads.ApplicationName, |
69 | ads.ApplicationBase, | 69 | ads.ApplicationBase, |
70 | ads.ConfigurationFile | 70 | ads.ConfigurationFile |
71 | ); | 71 | ); |
72 | 72 | ||
73 | // Display the name of the calling AppDomain and the name | 73 | // Display the name of the calling AppDomain and the name |
74 | // of the second domain. | 74 | // of the second domain. |
75 | // NOTE: The application's thread has transitioned between | 75 | // NOTE: The application's thread has transitioned between |
76 | // AppDomains. | 76 | // AppDomains. |
77 | Console.WriteLine("Calling to '{0}'.", | 77 | Console.WriteLine("Calling to '{0}'.", |
78 | Thread.GetDomain().FriendlyName | 78 | Thread.GetDomain().FriendlyName |
79 | ); | 79 | ); |
80 | 80 | ||
81 | return; | 81 | return; |
82 | } | 82 | } |
83 | 83 | ||
84 | 84 | ||
85 | 85 | ||
86 | // | 86 | // |
87 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 87 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
88 | // | 88 | // |
89 | // They are only forwarders to LSL_BuiltIn_Commands.cs | 89 | // They are only forwarders to LSL_BuiltIn_Commands.cs |
90 | // | 90 | // |
91 | public double llSin(double f) { return m_LSL_Functions.llSin(f); } | 91 | public double llSin(double f) { return m_LSL_Functions.llSin(f); } |
92 | public double llCos(double f) { return m_LSL_Functions.llCos(f); } | 92 | public double llCos(double f) { return m_LSL_Functions.llCos(f); } |
93 | public double llTan(double f) { return m_LSL_Functions.llTan(f); } | 93 | public double llTan(double f) { return m_LSL_Functions.llTan(f); } |
94 | public double llAtan2(double x, double y) { return m_LSL_Functions.llAtan2(x, y); } | 94 | public double llAtan2(double x, double y) { return m_LSL_Functions.llAtan2(x, y); } |
95 | public double llSqrt(double f) { return m_LSL_Functions.llSqrt(f); } | 95 | public double llSqrt(double f) { return m_LSL_Functions.llSqrt(f); } |
96 | public double llPow(double fbase, double fexponent) { return m_LSL_Functions.llPow(fbase, fexponent); } | 96 | public double llPow(double fbase, double fexponent) { return m_LSL_Functions.llPow(fbase, fexponent); } |
97 | public int llAbs(int i) { return m_LSL_Functions.llAbs(i); } | 97 | public int llAbs(int i) { return m_LSL_Functions.llAbs(i); } |
98 | public double llFabs(double f) { return m_LSL_Functions.llFabs(f); } | 98 | public double llFabs(double f) { return m_LSL_Functions.llFabs(f); } |
99 | public double llFrand(double mag) { return m_LSL_Functions.llFrand(mag); } | 99 | public double llFrand(double mag) { return m_LSL_Functions.llFrand(mag); } |
100 | public int llFloor(double f) { return m_LSL_Functions.llFloor(f); } | 100 | public int llFloor(double f) { return m_LSL_Functions.llFloor(f); } |
101 | public int llCeil(double f) { return m_LSL_Functions.llCeil(f); } | 101 | public int llCeil(double f) { return m_LSL_Functions.llCeil(f); } |
102 | public int llRound(double f) { return m_LSL_Functions.llRound(f); } | 102 | public int llRound(double f) { return m_LSL_Functions.llRound(f); } |
103 | public double llVecMag(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecMag(v); } | 103 | public double llVecMag(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecMag(v); } |
104 | public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecNorm(v); } | 104 | public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) { return m_LSL_Functions.llVecNorm(v); } |
105 | public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) { return m_LSL_Functions.llVecDist(a, b); } | 105 | public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) { return m_LSL_Functions.llVecDist(a, b); } |
106 | public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Euler(r); } | 106 | public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Euler(r); } |
107 | public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) { return m_LSL_Functions.llEuler2Rot(v); } | 107 | public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) { return m_LSL_Functions.llEuler2Rot(v); } |
108 | public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) { return m_LSL_Functions.llAxes2Rot(fwd, left, up); } | 108 | public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) { return m_LSL_Functions.llAxes2Rot(fwd, left, up); } |
109 | public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Fwd(r); } | 109 | public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Fwd(r); } |
110 | public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Left(r); } | 110 | public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Left(r); } |
111 | public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Up(r); } | 111 | public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) { return m_LSL_Functions.llRot2Up(r); } |
112 | public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) { return m_LSL_Functions.llRotBetween(start, end); } | 112 | public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) { return m_LSL_Functions.llRotBetween(start, end); } |
113 | public void llWhisper(int channelID, string text) { m_LSL_Functions.llWhisper(channelID, text); } | 113 | public void llWhisper(int channelID, string text) { m_LSL_Functions.llWhisper(channelID, text); } |
114 | public void llSay(int channelID, string text) { m_LSL_Functions.llSay(channelID, text); } | 114 | public void llSay(int channelID, string text) { m_LSL_Functions.llSay(channelID, text); } |
115 | // | 115 | // |
116 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 116 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
117 | // | 117 | // |
118 | public void llShout(int channelID, string text) { m_LSL_Functions.llShout(channelID, text); } | 118 | public void llShout(int channelID, string text) { m_LSL_Functions.llShout(channelID, text); } |
119 | public int llListen(int channelID, string name, string ID, string msg) { return m_LSL_Functions.llListen(channelID, name, ID, msg); } | 119 | public int llListen(int channelID, string name, string ID, string msg) { return m_LSL_Functions.llListen(channelID, name, ID, msg); } |
120 | public void llListenControl(int number, int active) { m_LSL_Functions.llListenControl(number, active); } | 120 | public void llListenControl(int number, int active) { m_LSL_Functions.llListenControl(number, active); } |
121 | public void llListenRemove(int number) { m_LSL_Functions.llListenRemove(number); } | 121 | public void llListenRemove(int number) { m_LSL_Functions.llListenRemove(number); } |
122 | public void llSensor(string name, string id, int type, double range, double arc) { m_LSL_Functions.llSensor(name, id, type, range, arc); } | 122 | public void llSensor(string name, string id, int type, double range, double arc) { m_LSL_Functions.llSensor(name, id, type, range, arc); } |
123 | public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) { m_LSL_Functions.llSensorRepeat(name, id, type, range, arc, rate); } | 123 | public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) { m_LSL_Functions.llSensorRepeat(name, id, type, range, arc, rate); } |
124 | public void llSensorRemove() { m_LSL_Functions.llSensorRemove(); } | 124 | public void llSensorRemove() { m_LSL_Functions.llSensorRemove(); } |
125 | public string llDetectedName(int number) { return m_LSL_Functions.llDetectedName(number); } | 125 | public string llDetectedName(int number) { return m_LSL_Functions.llDetectedName(number); } |
126 | public string llDetectedKey(int number) { return m_LSL_Functions.llDetectedKey(number); } | 126 | public string llDetectedKey(int number) { return m_LSL_Functions.llDetectedKey(number); } |
127 | public string llDetectedOwner(int number) { return m_LSL_Functions.llDetectedOwner(number); } | 127 | public string llDetectedOwner(int number) { return m_LSL_Functions.llDetectedOwner(number); } |
128 | public int llDetectedType(int number) { return m_LSL_Functions.llDetectedType(number); } | 128 | public int llDetectedType(int number) { return m_LSL_Functions.llDetectedType(number); } |
129 | public LSL_Types.Vector3 llDetectedPos(int number) { return m_LSL_Functions.llDetectedPos(number); } | 129 | public LSL_Types.Vector3 llDetectedPos(int number) { return m_LSL_Functions.llDetectedPos(number); } |
130 | public LSL_Types.Vector3 llDetectedVel(int number) { return m_LSL_Functions.llDetectedVel(number); } | 130 | public LSL_Types.Vector3 llDetectedVel(int number) { return m_LSL_Functions.llDetectedVel(number); } |
131 | public LSL_Types.Vector3 llDetectedGrab(int number) { return m_LSL_Functions.llDetectedGrab(number); } | 131 | public LSL_Types.Vector3 llDetectedGrab(int number) { return m_LSL_Functions.llDetectedGrab(number); } |
132 | public LSL_Types.Quaternion llDetectedRot(int number) { return m_LSL_Functions.llDetectedRot(number); } | 132 | public LSL_Types.Quaternion llDetectedRot(int number) { return m_LSL_Functions.llDetectedRot(number); } |
133 | public int llDetectedGroup(int number) { return m_LSL_Functions.llDetectedGroup(number); } | 133 | public int llDetectedGroup(int number) { return m_LSL_Functions.llDetectedGroup(number); } |
134 | public int llDetectedLinkNumber(int number) { return m_LSL_Functions.llDetectedLinkNumber(number); } | 134 | public int llDetectedLinkNumber(int number) { return m_LSL_Functions.llDetectedLinkNumber(number); } |
135 | // | 135 | // |
136 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 136 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
137 | // | 137 | // |
138 | public void llDie() { m_LSL_Functions.llDie(); } | 138 | public void llDie() { m_LSL_Functions.llDie(); } |
139 | public double llGround(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGround(offset); } | 139 | public double llGround(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGround(offset); } |
140 | public double llCloud(LSL_Types.Vector3 offset) { return m_LSL_Functions.llCloud(offset); } | 140 | public double llCloud(LSL_Types.Vector3 offset) { return m_LSL_Functions.llCloud(offset); } |
141 | public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWind(offset); } | 141 | public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWind(offset); } |
142 | public void llSetStatus(int status, int value) { m_LSL_Functions.llSetStatus(status, value); } | 142 | public void llSetStatus(int status, int value) { m_LSL_Functions.llSetStatus(status, value); } |
143 | public int llGetStatus(int status) { return m_LSL_Functions.llGetStatus(status); } | 143 | public int llGetStatus(int status) { return m_LSL_Functions.llGetStatus(status); } |
144 | public void llSetScale(LSL_Types.Vector3 scale) { m_LSL_Functions.llSetScale(scale); } | 144 | public void llSetScale(LSL_Types.Vector3 scale) { m_LSL_Functions.llSetScale(scale); } |
145 | public LSL_Types.Vector3 llGetScale() { return m_LSL_Functions.llGetScale(); } | 145 | public LSL_Types.Vector3 llGetScale() { return m_LSL_Functions.llGetScale(); } |
146 | public void llSetColor(LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetColor(color, face); } | 146 | public void llSetColor(LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetColor(color, face); } |
147 | public double llGetAlpha(int face) { return m_LSL_Functions.llGetAlpha(face); } | 147 | public double llGetAlpha(int face) { return m_LSL_Functions.llGetAlpha(face); } |
148 | public void llSetAlpha(double alpha, int face) { m_LSL_Functions.llSetAlpha(alpha, face); } | 148 | public void llSetAlpha(double alpha, int face) { m_LSL_Functions.llSetAlpha(alpha, face); } |
149 | public LSL_Types.Vector3 llGetColor(int face) { return m_LSL_Functions.llGetColor(face); } | 149 | public LSL_Types.Vector3 llGetColor(int face) { return m_LSL_Functions.llGetColor(face); } |
150 | public void llSetTexture(string texture, int face) { m_LSL_Functions.llSetTexture(texture, face); } | 150 | public void llSetTexture(string texture, int face) { m_LSL_Functions.llSetTexture(texture, face); } |
151 | public void llScaleTexture(double u, double v, int face) { m_LSL_Functions.llScaleTexture(u, v, face); } | 151 | public void llScaleTexture(double u, double v, int face) { m_LSL_Functions.llScaleTexture(u, v, face); } |
152 | public void llOffsetTexture(double u, double v, int face) { m_LSL_Functions.llOffsetTexture(u, v, face); } | 152 | public void llOffsetTexture(double u, double v, int face) { m_LSL_Functions.llOffsetTexture(u, v, face); } |
153 | public void llRotateTexture(double rotation, int face) { m_LSL_Functions.llRotateTexture(rotation, face); } | 153 | public void llRotateTexture(double rotation, int face) { m_LSL_Functions.llRotateTexture(rotation, face); } |
154 | public string llGetTexture(int face) { return m_LSL_Functions.llGetTexture(face); } | 154 | public string llGetTexture(int face) { return m_LSL_Functions.llGetTexture(face); } |
155 | // | 155 | // |
156 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 156 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
157 | // | 157 | // |
158 | public void llSetPos(LSL_Types.Vector3 pos) { m_LSL_Functions.llSetPos(pos); } | 158 | public void llSetPos(LSL_Types.Vector3 pos) { m_LSL_Functions.llSetPos(pos); } |
159 | public LSL_Types.Vector3 llGetPos() { return m_LSL_Functions.llGetPos(); } | 159 | public LSL_Types.Vector3 llGetPos() { return m_LSL_Functions.llGetPos(); } |
160 | public LSL_Types.Vector3 llGetLocalPos() { return m_LSL_Functions.llGetLocalPos(); } | 160 | public LSL_Types.Vector3 llGetLocalPos() { return m_LSL_Functions.llGetLocalPos(); } |
161 | public void llSetRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetRot(rot); } | 161 | public void llSetRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetRot(rot); } |
162 | public LSL_Types.Quaternion llGetRot() { return m_LSL_Functions.llGetRot(); } | 162 | public LSL_Types.Quaternion llGetRot() { return m_LSL_Functions.llGetRot(); } |
163 | public LSL_Types.Quaternion llGetLocalRot() { return m_LSL_Functions.llGetLocalRot(); } | 163 | public LSL_Types.Quaternion llGetLocalRot() { return m_LSL_Functions.llGetLocalRot(); } |
164 | public void llSetForce(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llSetForce(force, local); } | 164 | public void llSetForce(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llSetForce(force, local); } |
165 | public LSL_Types.Vector3 llGetForce() { return m_LSL_Functions.llGetForce(); } | 165 | public LSL_Types.Vector3 llGetForce() { return m_LSL_Functions.llGetForce(); } |
166 | public int llTarget(LSL_Types.Vector3 position, double range) { return m_LSL_Functions.llTarget(position, range); } | 166 | public int llTarget(LSL_Types.Vector3 position, double range) { return m_LSL_Functions.llTarget(position, range); } |
167 | public void llTargetRemove(int number) { m_LSL_Functions.llTargetRemove(number); } | 167 | public void llTargetRemove(int number) { m_LSL_Functions.llTargetRemove(number); } |
168 | public int llRotTarget(LSL_Types.Quaternion rot, double error) { return m_LSL_Functions.llRotTarget(rot, error); } | 168 | public int llRotTarget(LSL_Types.Quaternion rot, double error) { return m_LSL_Functions.llRotTarget(rot, error); } |
169 | public void llRotTargetRemove(int number) { m_LSL_Functions.llRotTargetRemove(number); } | 169 | public void llRotTargetRemove(int number) { m_LSL_Functions.llRotTargetRemove(number); } |
170 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { m_LSL_Functions.llMoveToTarget(target, tau); } | 170 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) { m_LSL_Functions.llMoveToTarget(target, tau); } |
171 | public void llStopMoveToTarget() { m_LSL_Functions.llStopMoveToTarget(); } | 171 | public void llStopMoveToTarget() { m_LSL_Functions.llStopMoveToTarget(); } |
172 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyImpulse(force, local); } | 172 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyImpulse(force, local); } |
173 | // | 173 | // |
174 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 174 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
175 | // | 175 | // |
176 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyRotationalImpulse(force, local); } | 176 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) { m_LSL_Functions.llApplyRotationalImpulse(force, local); } |
177 | public void llSetTorque(LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetTorque(torque, local); } | 177 | public void llSetTorque(LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetTorque(torque, local); } |
178 | public LSL_Types.Vector3 llGetTorque() { return m_LSL_Functions.llGetTorque(); } | 178 | public LSL_Types.Vector3 llGetTorque() { return m_LSL_Functions.llGetTorque(); } |
179 | public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetForceAndTorque(force, torque, local); } | 179 | public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) { m_LSL_Functions.llSetForceAndTorque(force, torque, local); } |
180 | public LSL_Types.Vector3 llGetVel() { return m_LSL_Functions.llGetVel(); } | 180 | public LSL_Types.Vector3 llGetVel() { return m_LSL_Functions.llGetVel(); } |
181 | public LSL_Types.Vector3 llGetAccel() { return m_LSL_Functions.llGetAccel(); } | 181 | public LSL_Types.Vector3 llGetAccel() { return m_LSL_Functions.llGetAccel(); } |
182 | public LSL_Types.Vector3 llGetOmega() { return m_LSL_Functions.llGetOmega(); } | 182 | public LSL_Types.Vector3 llGetOmega() { return m_LSL_Functions.llGetOmega(); } |
183 | public double llGetTimeOfDay() { return m_LSL_Functions.llGetTimeOfDay(); } | 183 | public double llGetTimeOfDay() { return m_LSL_Functions.llGetTimeOfDay(); } |
184 | public double llGetWallclock() { return m_LSL_Functions.llGetWallclock(); } | 184 | public double llGetWallclock() { return m_LSL_Functions.llGetWallclock(); } |
185 | public double llGetTime() { return m_LSL_Functions.llGetTime(); } | 185 | public double llGetTime() { return m_LSL_Functions.llGetTime(); } |
186 | public void llResetTime() { m_LSL_Functions.llResetTime(); } | 186 | public void llResetTime() { m_LSL_Functions.llResetTime(); } |
187 | public double llGetAndResetTime() { return m_LSL_Functions.llGetAndResetTime(); } | 187 | public double llGetAndResetTime() { return m_LSL_Functions.llGetAndResetTime(); } |
188 | public void llSound() { m_LSL_Functions.llSound(); } | 188 | public void llSound() { m_LSL_Functions.llSound(); } |
189 | public void llPlaySound(string sound, double volume) { m_LSL_Functions.llPlaySound(sound, volume); } | 189 | public void llPlaySound(string sound, double volume) { m_LSL_Functions.llPlaySound(sound, volume); } |
190 | public void llLoopSound(string sound, double volume) { m_LSL_Functions.llLoopSound(sound, volume); } | 190 | public void llLoopSound(string sound, double volume) { m_LSL_Functions.llLoopSound(sound, volume); } |
191 | public void llLoopSoundMaster(string sound, double volume) { m_LSL_Functions.llLoopSoundMaster(sound, volume); } | 191 | public void llLoopSoundMaster(string sound, double volume) { m_LSL_Functions.llLoopSoundMaster(sound, volume); } |
192 | public void llLoopSoundSlave(string sound, double volume) { m_LSL_Functions.llLoopSoundSlave(sound, volume); } | 192 | public void llLoopSoundSlave(string sound, double volume) { m_LSL_Functions.llLoopSoundSlave(sound, volume); } |
193 | public void llPlaySoundSlave(string sound, double volume) { m_LSL_Functions.llPlaySoundSlave(sound, volume); } | 193 | public void llPlaySoundSlave(string sound, double volume) { m_LSL_Functions.llPlaySoundSlave(sound, volume); } |
194 | // | 194 | // |
195 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 195 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
196 | // | 196 | // |
197 | public void llTriggerSound(string sound, double volume) { m_LSL_Functions.llTriggerSound(sound, volume); } | 197 | public void llTriggerSound(string sound, double volume) { m_LSL_Functions.llTriggerSound(sound, volume); } |
198 | public void llStopSound() { m_LSL_Functions.llStopSound(); } | 198 | public void llStopSound() { m_LSL_Functions.llStopSound(); } |
199 | public void llPreloadSound(string sound) { m_LSL_Functions.llPreloadSound(sound); } | 199 | public void llPreloadSound(string sound) { m_LSL_Functions.llPreloadSound(sound); } |
200 | public string llGetSubString(string src, int start, int end) { return m_LSL_Functions.llGetSubString(src, start, end); } | 200 | public string llGetSubString(string src, int start, int end) { return m_LSL_Functions.llGetSubString(src, start, end); } |
201 | public string llDeleteSubString(string src, int start, int end) { return m_LSL_Functions.llDeleteSubString(src, start, end); } | 201 | public string llDeleteSubString(string src, int start, int end) { return m_LSL_Functions.llDeleteSubString(src, start, end); } |
202 | public string llInsertString(string dst, int position, string src) { return m_LSL_Functions.llInsertString(dst, position, src); } | 202 | public string llInsertString(string dst, int position, string src) { return m_LSL_Functions.llInsertString(dst, position, src); } |
203 | public string llToUpper(string source) { return m_LSL_Functions.llToUpper(source); } | 203 | public string llToUpper(string source) { return m_LSL_Functions.llToUpper(source); } |
204 | public string llToLower(string source) { return m_LSL_Functions.llToLower(source); } | 204 | public string llToLower(string source) { return m_LSL_Functions.llToLower(source); } |
205 | public int llGiveMoney(string destination, int amount) { return m_LSL_Functions.llGiveMoney(destination, amount); } | 205 | public int llGiveMoney(string destination, int amount) { return m_LSL_Functions.llGiveMoney(destination, amount); } |
206 | public void llMakeExplosion() { m_LSL_Functions.llMakeExplosion(); } | 206 | public void llMakeExplosion() { m_LSL_Functions.llMakeExplosion(); } |
207 | public void llMakeFountain() { m_LSL_Functions.llMakeFountain(); } | 207 | public void llMakeFountain() { m_LSL_Functions.llMakeFountain(); } |
208 | public void llMakeSmoke() { m_LSL_Functions.llMakeSmoke(); } | 208 | public void llMakeSmoke() { m_LSL_Functions.llMakeSmoke(); } |
209 | public void llMakeFire() { m_LSL_Functions.llMakeFire(); } | 209 | public void llMakeFire() { m_LSL_Functions.llMakeFire(); } |
210 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezObject(inventory, pos, rot, param); } | 210 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezObject(inventory, pos, rot, param); } |
211 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) { m_LSL_Functions.llLookAt(target, strength, damping); } | 211 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) { m_LSL_Functions.llLookAt(target, strength, damping); } |
212 | public void llStopLookAt() { m_LSL_Functions.llStopLookAt(); } | 212 | public void llStopLookAt() { m_LSL_Functions.llStopLookAt(); } |
213 | public void llSetTimerEvent(double sec) { m_LSL_Functions.llSetTimerEvent(sec); } | 213 | public void llSetTimerEvent(double sec) { m_LSL_Functions.llSetTimerEvent(sec); } |
214 | public void llSleep(double sec) { m_LSL_Functions.llSleep(sec); } | 214 | public void llSleep(double sec) { m_LSL_Functions.llSleep(sec); } |
215 | // | 215 | // |
216 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 216 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
217 | // | 217 | // |
218 | public double llGetMass() { return m_LSL_Functions.llGetMass(); } | 218 | public double llGetMass() { return m_LSL_Functions.llGetMass(); } |
219 | public void llCollisionFilter(string name, string id, int accept) { m_LSL_Functions.llCollisionFilter(name, id, accept); } | 219 | public void llCollisionFilter(string name, string id, int accept) { m_LSL_Functions.llCollisionFilter(name, id, accept); } |
220 | public void llTakeControls(int controls, int accept, int pass_on) { m_LSL_Functions.llTakeControls(controls, accept, pass_on); } | 220 | public void llTakeControls(int controls, int accept, int pass_on) { m_LSL_Functions.llTakeControls(controls, accept, pass_on); } |
221 | public void llReleaseControls() { m_LSL_Functions.llReleaseControls(); } | 221 | public void llReleaseControls() { m_LSL_Functions.llReleaseControls(); } |
222 | public void llAttachToAvatar(int attachment) { m_LSL_Functions.llAttachToAvatar(attachment); } | 222 | public void llAttachToAvatar(int attachment) { m_LSL_Functions.llAttachToAvatar(attachment); } |
223 | public void llDetachFromAvatar() { m_LSL_Functions.llDetachFromAvatar(); } | 223 | public void llDetachFromAvatar() { m_LSL_Functions.llDetachFromAvatar(); } |
224 | public void llTakeCamera() { m_LSL_Functions.llTakeCamera(); } | 224 | public void llTakeCamera() { m_LSL_Functions.llTakeCamera(); } |
225 | public void llReleaseCamera() { m_LSL_Functions.llReleaseCamera(); } | 225 | public void llReleaseCamera() { m_LSL_Functions.llReleaseCamera(); } |
226 | public string llGetOwner() { return m_LSL_Functions.llGetOwner(); } | 226 | public string llGetOwner() { return m_LSL_Functions.llGetOwner(); } |
227 | public void llInstantMessage(string user, string message) { m_LSL_Functions.llInstantMessage(user, message); } | 227 | public void llInstantMessage(string user, string message) { m_LSL_Functions.llInstantMessage(user, message); } |
228 | public void llEmail(string address, string subject, string message) { m_LSL_Functions.llEmail(address, subject, message); } | 228 | public void llEmail(string address, string subject, string message) { m_LSL_Functions.llEmail(address, subject, message); } |
229 | public void llGetNextEmail(string address, string subject) { m_LSL_Functions.llGetNextEmail(address, subject); } | 229 | public void llGetNextEmail(string address, string subject) { m_LSL_Functions.llGetNextEmail(address, subject); } |
230 | public string llGetKey() { return m_LSL_Functions.llGetKey(); } | 230 | public string llGetKey() { return m_LSL_Functions.llGetKey(); } |
231 | public void llSetBuoyancy(double buoyancy) { m_LSL_Functions.llSetBuoyancy(buoyancy); } | 231 | public void llSetBuoyancy(double buoyancy) { m_LSL_Functions.llSetBuoyancy(buoyancy); } |
232 | public void llSetHoverHeight(double height, int water, double tau) { m_LSL_Functions.llSetHoverHeight(height, water, tau); } | 232 | public void llSetHoverHeight(double height, int water, double tau) { m_LSL_Functions.llSetHoverHeight(height, water, tau); } |
233 | public void llStopHover() { m_LSL_Functions.llStopHover(); } | 233 | public void llStopHover() { m_LSL_Functions.llStopHover(); } |
234 | public void llMinEventDelay(double delay) { m_LSL_Functions.llMinEventDelay(delay); } | 234 | public void llMinEventDelay(double delay) { m_LSL_Functions.llMinEventDelay(delay); } |
235 | public void llSoundPreload() { m_LSL_Functions.llSoundPreload(); } | 235 | public void llSoundPreload() { m_LSL_Functions.llSoundPreload(); } |
236 | public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) { m_LSL_Functions.llRotLookAt(target, strength, damping); } | 236 | public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) { m_LSL_Functions.llRotLookAt(target, strength, damping); } |
237 | // | 237 | // |
238 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 238 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
239 | // | 239 | // |
240 | public int llStringLength(string str) { return m_LSL_Functions.llStringLength(str); } | 240 | public int llStringLength(string str) { return m_LSL_Functions.llStringLength(str); } |
241 | public void llStartAnimation(string anim) { m_LSL_Functions.llStartAnimation(anim); } | 241 | public void llStartAnimation(string anim) { m_LSL_Functions.llStartAnimation(anim); } |
242 | public void llStopAnimation(string anim) { m_LSL_Functions.llStopAnimation(anim); } | 242 | public void llStopAnimation(string anim) { m_LSL_Functions.llStopAnimation(anim); } |
243 | public void llPointAt() { m_LSL_Functions.llPointAt(); } | 243 | public void llPointAt() { m_LSL_Functions.llPointAt(); } |
244 | public void llStopPointAt() { m_LSL_Functions.llStopPointAt(); } | 244 | public void llStopPointAt() { m_LSL_Functions.llStopPointAt(); } |
245 | public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) { m_LSL_Functions.llTargetOmega(axis, spinrate, gain); } | 245 | public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) { m_LSL_Functions.llTargetOmega(axis, spinrate, gain); } |
246 | public int llGetStartParameter() { return m_LSL_Functions.llGetStartParameter(); } | 246 | public int llGetStartParameter() { return m_LSL_Functions.llGetStartParameter(); } |
247 | public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) { m_LSL_Functions.llGodLikeRezObject(inventory, pos); } | 247 | public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) { m_LSL_Functions.llGodLikeRezObject(inventory, pos); } |
248 | public void llRequestPermissions(string agent, int perm) { m_LSL_Functions.llRequestPermissions(agent, perm); } | 248 | public void llRequestPermissions(string agent, int perm) { m_LSL_Functions.llRequestPermissions(agent, perm); } |
249 | public string llGetPermissionsKey() { return m_LSL_Functions.llGetPermissionsKey(); } | 249 | public string llGetPermissionsKey() { return m_LSL_Functions.llGetPermissionsKey(); } |
250 | public int llGetPermissions() { return m_LSL_Functions.llGetPermissions(); } | 250 | public int llGetPermissions() { return m_LSL_Functions.llGetPermissions(); } |
251 | public int llGetLinkNumber() { return m_LSL_Functions.llGetLinkNumber(); } | 251 | public int llGetLinkNumber() { return m_LSL_Functions.llGetLinkNumber(); } |
252 | public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetLinkColor(linknumber, color, face); } | 252 | public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) { m_LSL_Functions.llSetLinkColor(linknumber, color, face); } |
253 | public void llCreateLink(string target, int parent) { m_LSL_Functions.llCreateLink(target, parent); } | 253 | public void llCreateLink(string target, int parent) { m_LSL_Functions.llCreateLink(target, parent); } |
254 | public void llBreakLink(int linknum) { m_LSL_Functions.llBreakLink(linknum); } | 254 | public void llBreakLink(int linknum) { m_LSL_Functions.llBreakLink(linknum); } |
255 | public void llBreakAllLinks() { m_LSL_Functions.llBreakAllLinks(); } | 255 | public void llBreakAllLinks() { m_LSL_Functions.llBreakAllLinks(); } |
256 | public string llGetLinkKey(int linknum) { return m_LSL_Functions.llGetLinkKey(linknum); } | 256 | public string llGetLinkKey(int linknum) { return m_LSL_Functions.llGetLinkKey(linknum); } |
257 | public void llGetLinkName(int linknum) { m_LSL_Functions.llGetLinkName(linknum); } | 257 | public void llGetLinkName(int linknum) { m_LSL_Functions.llGetLinkName(linknum); } |
258 | public int llGetInventoryNumber(int type) { return m_LSL_Functions.llGetInventoryNumber(type); } | 258 | public int llGetInventoryNumber(int type) { return m_LSL_Functions.llGetInventoryNumber(type); } |
259 | public string llGetInventoryName(int type, int number) { return m_LSL_Functions.llGetInventoryName(type, number); } | 259 | public string llGetInventoryName(int type, int number) { return m_LSL_Functions.llGetInventoryName(type, number); } |
260 | // | 260 | // |
261 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 261 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
262 | // | 262 | // |
263 | public void llSetScriptState(string name, int run) { m_LSL_Functions.llSetScriptState(name, run); } | 263 | public void llSetScriptState(string name, int run) { m_LSL_Functions.llSetScriptState(name, run); } |
264 | public double llGetEnergy() { return m_LSL_Functions.llGetEnergy(); } | 264 | public double llGetEnergy() { return m_LSL_Functions.llGetEnergy(); } |
265 | public void llGiveInventory(string destination, string inventory) { m_LSL_Functions.llGiveInventory(destination, inventory); } | 265 | public void llGiveInventory(string destination, string inventory) { m_LSL_Functions.llGiveInventory(destination, inventory); } |
266 | public void llRemoveInventory(string item) { m_LSL_Functions.llRemoveInventory(item); } | 266 | public void llRemoveInventory(string item) { m_LSL_Functions.llRemoveInventory(item); } |
267 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) { m_LSL_Functions.llSetText(text, color, alpha); } | 267 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) { m_LSL_Functions.llSetText(text, color, alpha); } |
268 | public double llWater(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWater(offset); } | 268 | public double llWater(LSL_Types.Vector3 offset) { return m_LSL_Functions.llWater(offset); } |
269 | public void llPassTouches(int pass) { m_LSL_Functions.llPassTouches(pass); } | 269 | public void llPassTouches(int pass) { m_LSL_Functions.llPassTouches(pass); } |
270 | public string llRequestAgentData(string id, int data) { return m_LSL_Functions.llRequestAgentData(id, data); } | 270 | public string llRequestAgentData(string id, int data) { return m_LSL_Functions.llRequestAgentData(id, data); } |
271 | public string llRequestInventoryData(string name) { return m_LSL_Functions.llRequestInventoryData(name); } | 271 | public string llRequestInventoryData(string name) { return m_LSL_Functions.llRequestInventoryData(name); } |
272 | public void llSetDamage(double damage) { m_LSL_Functions.llSetDamage(damage); } | 272 | public void llSetDamage(double damage) { m_LSL_Functions.llSetDamage(damage); } |
273 | public void llTeleportAgentHome(string agent) { m_LSL_Functions.llTeleportAgentHome(agent); } | 273 | public void llTeleportAgentHome(string agent) { m_LSL_Functions.llTeleportAgentHome(agent); } |
274 | public void llModifyLand(int action, int brush) { m_LSL_Functions.llModifyLand(action, brush); } | 274 | public void llModifyLand(int action, int brush) { m_LSL_Functions.llModifyLand(action, brush); } |
275 | public void llCollisionSound(string impact_sound, double impact_volume) { m_LSL_Functions.llCollisionSound(impact_sound, impact_volume); } | 275 | public void llCollisionSound(string impact_sound, double impact_volume) { m_LSL_Functions.llCollisionSound(impact_sound, impact_volume); } |
276 | public void llCollisionSprite(string impact_sprite) { m_LSL_Functions.llCollisionSprite(impact_sprite); } | 276 | public void llCollisionSprite(string impact_sprite) { m_LSL_Functions.llCollisionSprite(impact_sprite); } |
277 | public string llGetAnimation(string id) { return m_LSL_Functions.llGetAnimation(id); } | 277 | public string llGetAnimation(string id) { return m_LSL_Functions.llGetAnimation(id); } |
278 | public void llResetScript() { m_LSL_Functions.llResetScript(); } | 278 | public void llResetScript() { m_LSL_Functions.llResetScript(); } |
279 | public void llMessageLinked(int linknum, int num, string str, string id) { m_LSL_Functions.llMessageLinked(linknum, num, str, id); } | 279 | public void llMessageLinked(int linknum, int num, string str, string id) { m_LSL_Functions.llMessageLinked(linknum, num, str, id); } |
280 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) { m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); } | 280 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) { m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); } |
281 | public void llPassCollisions(int pass) { m_LSL_Functions.llPassCollisions(pass); } | 281 | public void llPassCollisions(int pass) { m_LSL_Functions.llPassCollisions(pass); } |
282 | public string llGetScriptName() { return m_LSL_Functions.llGetScriptName(); } | 282 | public string llGetScriptName() { return m_LSL_Functions.llGetScriptName(); } |
283 | public int llGetNumberOfSides() { return m_LSL_Functions.llGetNumberOfSides(); } | 283 | public int llGetNumberOfSides() { return m_LSL_Functions.llGetNumberOfSides(); } |
284 | // | 284 | // |
285 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 285 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
286 | // | 286 | // |
287 | public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) { return m_LSL_Functions.llAxisAngle2Rot(axis, angle); } | 287 | public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) { return m_LSL_Functions.llAxisAngle2Rot(axis, angle); } |
288 | public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) { return m_LSL_Functions.llRot2Axis(rot); } | 288 | public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) { return m_LSL_Functions.llRot2Axis(rot); } |
289 | public void llRot2Angle() { m_LSL_Functions.llRot2Angle(); } | 289 | public void llRot2Angle() { m_LSL_Functions.llRot2Angle(); } |
290 | public double llAcos(double val) { return m_LSL_Functions.llAcos(val); } | 290 | public double llAcos(double val) { return m_LSL_Functions.llAcos(val); } |
291 | public double llAsin(double val) { return m_LSL_Functions.llAsin(val); } | 291 | public double llAsin(double val) { return m_LSL_Functions.llAsin(val); } |
292 | public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) { return m_LSL_Functions.llAngleBetween(a, b); } | 292 | public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) { return m_LSL_Functions.llAngleBetween(a, b); } |
293 | public string llGetInventoryKey(string name) { return m_LSL_Functions.llGetInventoryKey(name); } | 293 | public string llGetInventoryKey(string name) { return m_LSL_Functions.llGetInventoryKey(name); } |
294 | public void llAllowInventoryDrop(int add) { m_LSL_Functions.llAllowInventoryDrop(add); } | 294 | public void llAllowInventoryDrop(int add) { m_LSL_Functions.llAllowInventoryDrop(add); } |
295 | public LSL_Types.Vector3 llGetSunDirection() { return m_LSL_Functions.llGetSunDirection(); } | 295 | public LSL_Types.Vector3 llGetSunDirection() { return m_LSL_Functions.llGetSunDirection(); } |
296 | public LSL_Types.Vector3 llGetTextureOffset(int face) { return m_LSL_Functions.llGetTextureOffset(face); } | 296 | public LSL_Types.Vector3 llGetTextureOffset(int face) { return m_LSL_Functions.llGetTextureOffset(face); } |
297 | public LSL_Types.Vector3 llGetTextureScale(int side) { return m_LSL_Functions.llGetTextureScale(side); } | 297 | public LSL_Types.Vector3 llGetTextureScale(int side) { return m_LSL_Functions.llGetTextureScale(side); } |
298 | public double llGetTextureRot(int side) { return m_LSL_Functions.llGetTextureRot(side); } | 298 | public double llGetTextureRot(int side) { return m_LSL_Functions.llGetTextureRot(side); } |
299 | public int llSubStringIndex(string source, string pattern) { return m_LSL_Functions.llSubStringIndex(source, pattern); } | 299 | public int llSubStringIndex(string source, string pattern) { return m_LSL_Functions.llSubStringIndex(source, pattern); } |
300 | public string llGetOwnerKey(string id) { return m_LSL_Functions.llGetOwnerKey(id); } | 300 | public string llGetOwnerKey(string id) { return m_LSL_Functions.llGetOwnerKey(id); } |
301 | public LSL_Types.Vector3 llGetCenterOfMass() { return m_LSL_Functions.llGetCenterOfMass(); } | 301 | public LSL_Types.Vector3 llGetCenterOfMass() { return m_LSL_Functions.llGetCenterOfMass(); } |
302 | public List<string> llListSort(List<string> src, int stride, int ascending) { return m_LSL_Functions.llListSort(src, stride, ascending); } | 302 | public List<string> llListSort(List<string> src, int stride, int ascending) { return m_LSL_Functions.llListSort(src, stride, ascending); } |
303 | public int llGetListLength(List<string> src) { return m_LSL_Functions.llGetListLength(src); } | 303 | public int llGetListLength(List<string> src) { return m_LSL_Functions.llGetListLength(src); } |
304 | // | 304 | // |
305 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 305 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
306 | // | 306 | // |
307 | public int llList2Integer(List<string> src, int index) { return m_LSL_Functions.llList2Integer(src, index); } | 307 | public int llList2Integer(List<string> src, int index) { return m_LSL_Functions.llList2Integer(src, index); } |
308 | public double llList2double(List<string> src, int index) { return m_LSL_Functions.llList2double(src, index); } | 308 | public double llList2double(List<string> src, int index) { return m_LSL_Functions.llList2double(src, index); } |
309 | public string llList2String(List<string> src, int index) { return m_LSL_Functions.llList2String(src, index); } | 309 | public string llList2String(List<string> src, int index) { return m_LSL_Functions.llList2String(src, index); } |
310 | public string llList2Key(List<string> src, int index) { return m_LSL_Functions.llList2Key(src, index); } | 310 | public string llList2Key(List<string> src, int index) { return m_LSL_Functions.llList2Key(src, index); } |
311 | public LSL_Types.Vector3 llList2Vector(List<string> src, int index) { return m_LSL_Functions.llList2Vector(src, index); } | 311 | public LSL_Types.Vector3 llList2Vector(List<string> src, int index) { return m_LSL_Functions.llList2Vector(src, index); } |
312 | public LSL_Types.Quaternion llList2Rot(List<string> src, int index) { return m_LSL_Functions.llList2Rot(src, index); } | 312 | public LSL_Types.Quaternion llList2Rot(List<string> src, int index) { return m_LSL_Functions.llList2Rot(src, index); } |
313 | public List<string> llList2List(List<string> src, int start, int end) { return m_LSL_Functions.llList2List(src, start, end); } | 313 | public List<string> llList2List(List<string> src, int start, int end) { return m_LSL_Functions.llList2List(src, start, end); } |
314 | public List<string> llDeleteSubList(List<string> src, int start, int end) { return m_LSL_Functions.llDeleteSubList(src, start, end); } | 314 | public List<string> llDeleteSubList(List<string> src, int start, int end) { return m_LSL_Functions.llDeleteSubList(src, start, end); } |
315 | public int llGetListEntryType(List<string> src, int index) { return m_LSL_Functions.llGetListEntryType(src, index); } | 315 | public int llGetListEntryType(List<string> src, int index) { return m_LSL_Functions.llGetListEntryType(src, index); } |
316 | public string llList2CSV(List<string> src) { return m_LSL_Functions.llList2CSV(src); } | 316 | public string llList2CSV(List<string> src) { return m_LSL_Functions.llList2CSV(src); } |
317 | public List<string> llCSV2List(string src) { return m_LSL_Functions.llCSV2List(src); } | 317 | public List<string> llCSV2List(string src) { return m_LSL_Functions.llCSV2List(src); } |
318 | public List<string> llListRandomize(List<string> src, int stride) { return m_LSL_Functions.llListRandomize(src, stride); } | 318 | public List<string> llListRandomize(List<string> src, int stride) { return m_LSL_Functions.llListRandomize(src, stride); } |
319 | public List<string> llList2ListStrided(List<string> src, int start, int end, int stride) { return m_LSL_Functions.llList2ListStrided(src, start, end, stride); } | 319 | public List<string> llList2ListStrided(List<string> src, int start, int end, int stride) { return m_LSL_Functions.llList2ListStrided(src, start, end, stride); } |
320 | public LSL_Types.Vector3 llGetRegionCorner() { return m_LSL_Functions.llGetRegionCorner(); } | 320 | public LSL_Types.Vector3 llGetRegionCorner() { return m_LSL_Functions.llGetRegionCorner(); } |
321 | public List<string> llListInsertList(List<string> dest, List<string> src, int start) { return m_LSL_Functions.llListInsertList(dest, src, start); } | 321 | public List<string> llListInsertList(List<string> dest, List<string> src, int start) { return m_LSL_Functions.llListInsertList(dest, src, start); } |
322 | public int llListFindList(List<string> src, List<string> test) { return m_LSL_Functions.llListFindList(src, test); } | 322 | public int llListFindList(List<string> src, List<string> test) { return m_LSL_Functions.llListFindList(src, test); } |
323 | public string llGetObjectName() { return m_LSL_Functions.llGetObjectName(); } | 323 | public string llGetObjectName() { return m_LSL_Functions.llGetObjectName(); } |
324 | public void llSetObjectName(string name) { m_LSL_Functions.llSetObjectName(name); } | 324 | public void llSetObjectName(string name) { m_LSL_Functions.llSetObjectName(name); } |
325 | public string llGetDate() { return m_LSL_Functions.llGetDate(); } | 325 | public string llGetDate() { return m_LSL_Functions.llGetDate(); } |
326 | public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) { return m_LSL_Functions.llEdgeOfWorld(pos, dir); } | 326 | public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) { return m_LSL_Functions.llEdgeOfWorld(pos, dir); } |
327 | public int llGetAgentInfo(string id) { return m_LSL_Functions.llGetAgentInfo(id); } | 327 | public int llGetAgentInfo(string id) { return m_LSL_Functions.llGetAgentInfo(id); } |
328 | // | 328 | // |
329 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 329 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
330 | // | 330 | // |
331 | public void llAdjustSoundVolume(double volume) { m_LSL_Functions.llAdjustSoundVolume(volume); } | 331 | public void llAdjustSoundVolume(double volume) { m_LSL_Functions.llAdjustSoundVolume(volume); } |
332 | public void llSetSoundQueueing(int queue) { m_LSL_Functions.llSetSoundQueueing(queue); } | 332 | public void llSetSoundQueueing(int queue) { m_LSL_Functions.llSetSoundQueueing(queue); } |
333 | public void llSetSoundRadius(double radius) { m_LSL_Functions.llSetSoundRadius(radius); } | 333 | public void llSetSoundRadius(double radius) { m_LSL_Functions.llSetSoundRadius(radius); } |
334 | public string llKey2Name(string id) { return m_LSL_Functions.llKey2Name(id); } | 334 | public string llKey2Name(string id) { return m_LSL_Functions.llKey2Name(id); } |
335 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); } | 335 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); } |
336 | public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) { m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); } | 336 | public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) { m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); } |
337 | public void llEjectFromLand(string pest) { m_LSL_Functions.llEjectFromLand(pest); } | 337 | public void llEjectFromLand(string pest) { m_LSL_Functions.llEjectFromLand(pest); } |
338 | public void llParseString2List() { m_LSL_Functions.llParseString2List(); } | 338 | public void llParseString2List() { m_LSL_Functions.llParseString2List(); } |
339 | public int llOverMyLand(string id) { return m_LSL_Functions.llOverMyLand(id); } | 339 | public int llOverMyLand(string id) { return m_LSL_Functions.llOverMyLand(id); } |
340 | public string llGetLandOwnerAt(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetLandOwnerAt(pos); } | 340 | public string llGetLandOwnerAt(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetLandOwnerAt(pos); } |
341 | public string llGetNotecardLine(string name, int line) { return m_LSL_Functions.llGetNotecardLine(name, line); } | 341 | public string llGetNotecardLine(string name, int line) { return m_LSL_Functions.llGetNotecardLine(name, line); } |
342 | public LSL_Types.Vector3 llGetAgentSize(string id) { return m_LSL_Functions.llGetAgentSize(id); } | 342 | public LSL_Types.Vector3 llGetAgentSize(string id) { return m_LSL_Functions.llGetAgentSize(id); } |
343 | public int llSameGroup(string agent) { return m_LSL_Functions.llSameGroup(agent); } | 343 | public int llSameGroup(string agent) { return m_LSL_Functions.llSameGroup(agent); } |
344 | public void llUnSit(string id) { m_LSL_Functions.llUnSit(id); } | 344 | public void llUnSit(string id) { m_LSL_Functions.llUnSit(id); } |
345 | public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundSlope(offset); } | 345 | public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundSlope(offset); } |
346 | public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundNormal(offset); } | 346 | public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundNormal(offset); } |
347 | public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundContour(offset); } | 347 | public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) { return m_LSL_Functions.llGroundContour(offset); } |
348 | public int llGetAttached() { return m_LSL_Functions.llGetAttached(); } | 348 | public int llGetAttached() { return m_LSL_Functions.llGetAttached(); } |
349 | public int llGetFreeMemory() { return m_LSL_Functions.llGetFreeMemory(); } | 349 | public int llGetFreeMemory() { return m_LSL_Functions.llGetFreeMemory(); } |
350 | public string llGetRegionName() { return m_LSL_Functions.llGetRegionName(); } | 350 | public string llGetRegionName() { return m_LSL_Functions.llGetRegionName(); } |
351 | public double llGetRegionTimeDilation() { return m_LSL_Functions.llGetRegionTimeDilation(); } | 351 | public double llGetRegionTimeDilation() { return m_LSL_Functions.llGetRegionTimeDilation(); } |
352 | public double llGetRegionFPS() { return m_LSL_Functions.llGetRegionFPS(); } | 352 | public double llGetRegionFPS() { return m_LSL_Functions.llGetRegionFPS(); } |
353 | // | 353 | // |
354 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 354 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
355 | // | 355 | // |
356 | public void llParticleSystem(List<Object> rules) { m_LSL_Functions.llParticleSystem(rules); } | 356 | public void llParticleSystem(List<Object> rules) { m_LSL_Functions.llParticleSystem(rules); } |
357 | public void llGroundRepel(double height, int water, double tau) { m_LSL_Functions.llGroundRepel(height, water, tau); } | 357 | public void llGroundRepel(double height, int water, double tau) { m_LSL_Functions.llGroundRepel(height, water, tau); } |
358 | public void llGiveInventoryList() { m_LSL_Functions.llGiveInventoryList(); } | 358 | public void llGiveInventoryList() { m_LSL_Functions.llGiveInventoryList(); } |
359 | public void llSetVehicleType(int type) { m_LSL_Functions.llSetVehicleType(type); } | 359 | public void llSetVehicleType(int type) { m_LSL_Functions.llSetVehicleType(type); } |
360 | public void llSetVehicledoubleParam(int param, double value) { m_LSL_Functions.llSetVehicledoubleParam(param, value); } | 360 | public void llSetVehicledoubleParam(int param, double value) { m_LSL_Functions.llSetVehicledoubleParam(param, value); } |
361 | public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) { m_LSL_Functions.llSetVehicleVectorParam(param, vec); } | 361 | public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) { m_LSL_Functions.llSetVehicleVectorParam(param, vec); } |
362 | public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) { m_LSL_Functions.llSetVehicleRotationParam(param, rot); } | 362 | public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) { m_LSL_Functions.llSetVehicleRotationParam(param, rot); } |
363 | public void llSetVehicleFlags(int flags) { m_LSL_Functions.llSetVehicleFlags(flags); } | 363 | public void llSetVehicleFlags(int flags) { m_LSL_Functions.llSetVehicleFlags(flags); } |
364 | public void llRemoveVehicleFlags(int flags) { m_LSL_Functions.llRemoveVehicleFlags(flags); } | 364 | public void llRemoveVehicleFlags(int flags) { m_LSL_Functions.llRemoveVehicleFlags(flags); } |
365 | public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) { m_LSL_Functions.llSitTarget(offset, rot); } | 365 | public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) { m_LSL_Functions.llSitTarget(offset, rot); } |
366 | public string llAvatarOnSitTarget() { return m_LSL_Functions.llAvatarOnSitTarget(); } | 366 | public string llAvatarOnSitTarget() { return m_LSL_Functions.llAvatarOnSitTarget(); } |
367 | public void llAddToLandPassList(string avatar, double hours) { m_LSL_Functions.llAddToLandPassList(avatar, hours); } | 367 | public void llAddToLandPassList(string avatar, double hours) { m_LSL_Functions.llAddToLandPassList(avatar, hours); } |
368 | public void llSetTouchText(string text) { m_LSL_Functions.llSetTouchText(text); } | 368 | public void llSetTouchText(string text) { m_LSL_Functions.llSetTouchText(text); } |
369 | public void llSetSitText(string text) { m_LSL_Functions.llSetSitText(text); } | 369 | public void llSetSitText(string text) { m_LSL_Functions.llSetSitText(text); } |
370 | public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraEyeOffset(offset); } | 370 | public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraEyeOffset(offset); } |
371 | public void llSetCameraAtOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraAtOffset(offset); } | 371 | public void llSetCameraAtOffset(LSL_Types.Vector3 offset) { m_LSL_Functions.llSetCameraAtOffset(offset); } |
372 | public void llDumpList2String() { m_LSL_Functions.llDumpList2String(); } | 372 | public void llDumpList2String() { m_LSL_Functions.llDumpList2String(); } |
373 | public void llScriptDanger(LSL_Types.Vector3 pos) { m_LSL_Functions.llScriptDanger(pos); } | 373 | public void llScriptDanger(LSL_Types.Vector3 pos) { m_LSL_Functions.llScriptDanger(pos); } |
374 | public void llDialog(string avatar, string message, List<string> buttons, int chat_channel) { m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); } | 374 | public void llDialog(string avatar, string message, List<string> buttons, int chat_channel) { m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); } |
375 | public void llVolumeDetect(int detect) { m_LSL_Functions.llVolumeDetect(detect); } | 375 | public void llVolumeDetect(int detect) { m_LSL_Functions.llVolumeDetect(detect); } |
376 | public void llResetOtherScript(string name) { m_LSL_Functions.llResetOtherScript(name); } | 376 | public void llResetOtherScript(string name) { m_LSL_Functions.llResetOtherScript(name); } |
377 | public int llGetScriptState(string name) { return m_LSL_Functions.llGetScriptState(name); } | 377 | public int llGetScriptState(string name) { return m_LSL_Functions.llGetScriptState(name); } |
378 | public void llRemoteLoadScript() { m_LSL_Functions.llRemoteLoadScript(); } | 378 | public void llRemoteLoadScript() { m_LSL_Functions.llRemoteLoadScript(); } |
379 | public void llSetRemoteScriptAccessPin(int pin) { m_LSL_Functions.llSetRemoteScriptAccessPin(pin); } | 379 | public void llSetRemoteScriptAccessPin(int pin) { m_LSL_Functions.llSetRemoteScriptAccessPin(pin); } |
380 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param); } | 380 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param); } |
381 | // | 381 | // |
382 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 382 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
383 | // | 383 | // |
384 | public void llOpenRemoteDataChannel() { m_LSL_Functions.llOpenRemoteDataChannel(); } | 384 | public void llOpenRemoteDataChannel() { m_LSL_Functions.llOpenRemoteDataChannel(); } |
385 | public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata); } | 385 | public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata); } |
386 | public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata); } | 386 | public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata); } |
387 | public void llCloseRemoteDataChannel(string channel) { m_LSL_Functions.llCloseRemoteDataChannel(channel); } | 387 | public void llCloseRemoteDataChannel(string channel) { m_LSL_Functions.llCloseRemoteDataChannel(channel); } |
388 | public string llMD5String(string src, int nonce) { return m_LSL_Functions.llMD5String(src, nonce); } | 388 | public string llMD5String(string src, int nonce) { return m_LSL_Functions.llMD5String(src, nonce); } |
389 | public void llSetPrimitiveParams(List<string> rules) { m_LSL_Functions.llSetPrimitiveParams(rules); } | 389 | public void llSetPrimitiveParams(List<string> rules) { m_LSL_Functions.llSetPrimitiveParams(rules); } |
390 | public string llStringToBase64(string str) { return m_LSL_Functions.llStringToBase64(str); } | 390 | public string llStringToBase64(string str) { return m_LSL_Functions.llStringToBase64(str); } |
391 | public string llBase64ToString(string str) { return m_LSL_Functions.llBase64ToString(str); } | 391 | public string llBase64ToString(string str) { return m_LSL_Functions.llBase64ToString(str); } |
392 | public void llXorBase64Strings() { m_LSL_Functions.llXorBase64Strings(); } | 392 | public void llXorBase64Strings() { m_LSL_Functions.llXorBase64Strings(); } |
393 | public void llRemoteDataSetRegion() { m_LSL_Functions.llRemoteDataSetRegion(); } | 393 | public void llRemoteDataSetRegion() { m_LSL_Functions.llRemoteDataSetRegion(); } |
394 | public double llLog10(double val) { return m_LSL_Functions.llLog10(val); } | 394 | public double llLog10(double val) { return m_LSL_Functions.llLog10(val); } |
395 | public double llLog(double val) { return m_LSL_Functions.llLog(val); } | 395 | public double llLog(double val) { return m_LSL_Functions.llLog(val); } |
396 | public List<string> llGetAnimationList(string id) { return m_LSL_Functions.llGetAnimationList(id); } | 396 | public List<string> llGetAnimationList(string id) { return m_LSL_Functions.llGetAnimationList(id); } |
397 | public void llSetParcelMusicURL(string url) { m_LSL_Functions.llSetParcelMusicURL(url); } | 397 | public void llSetParcelMusicURL(string url) { m_LSL_Functions.llSetParcelMusicURL(url); } |
398 | public LSL_Types.Vector3 llGetRootPosition() { return m_LSL_Functions.llGetRootPosition(); } | 398 | public LSL_Types.Vector3 llGetRootPosition() { return m_LSL_Functions.llGetRootPosition(); } |
399 | public LSL_Types.Quaternion llGetRootRotation() { return m_LSL_Functions.llGetRootRotation(); } | 399 | public LSL_Types.Quaternion llGetRootRotation() { return m_LSL_Functions.llGetRootRotation(); } |
400 | public string llGetObjectDesc() { return m_LSL_Functions.llGetObjectDesc(); } | 400 | public string llGetObjectDesc() { return m_LSL_Functions.llGetObjectDesc(); } |
401 | public void llSetObjectDesc(string desc) { m_LSL_Functions.llSetObjectDesc(desc); } | 401 | public void llSetObjectDesc(string desc) { m_LSL_Functions.llSetObjectDesc(desc); } |
402 | public string llGetCreator() { return m_LSL_Functions.llGetCreator(); } | 402 | public string llGetCreator() { return m_LSL_Functions.llGetCreator(); } |
403 | public string llGetTimestamp() { return m_LSL_Functions.llGetTimestamp(); } | 403 | public string llGetTimestamp() { return m_LSL_Functions.llGetTimestamp(); } |
404 | public void llSetLinkAlpha(int linknumber, double alpha, int face) { m_LSL_Functions.llSetLinkAlpha(linknumber, alpha, face); } | 404 | public void llSetLinkAlpha(int linknumber, double alpha, int face) { m_LSL_Functions.llSetLinkAlpha(linknumber, alpha, face); } |
405 | public int llGetNumberOfPrims() { return m_LSL_Functions.llGetNumberOfPrims(); } | 405 | public int llGetNumberOfPrims() { return m_LSL_Functions.llGetNumberOfPrims(); } |
406 | public string llGetNumberOfNotecardLines(string name) { return m_LSL_Functions.llGetNumberOfNotecardLines(name); } | 406 | public string llGetNumberOfNotecardLines(string name) { return m_LSL_Functions.llGetNumberOfNotecardLines(name); } |
407 | public List<string> llGetBoundingBox(string obj) { return m_LSL_Functions.llGetBoundingBox(obj); } | 407 | public List<string> llGetBoundingBox(string obj) { return m_LSL_Functions.llGetBoundingBox(obj); } |
408 | public LSL_Types.Vector3 llGetGeometricCenter() { return m_LSL_Functions.llGetGeometricCenter(); } | 408 | public LSL_Types.Vector3 llGetGeometricCenter() { return m_LSL_Functions.llGetGeometricCenter(); } |
409 | public void llGetPrimitiveParams() { m_LSL_Functions.llGetPrimitiveParams(); } | 409 | public void llGetPrimitiveParams() { m_LSL_Functions.llGetPrimitiveParams(); } |
410 | // | 410 | // |
411 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 411 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
412 | // | 412 | // |
413 | public string llIntegerToBase64(int number) { return m_LSL_Functions.llIntegerToBase64(number); } | 413 | public string llIntegerToBase64(int number) { return m_LSL_Functions.llIntegerToBase64(number); } |
414 | public int llBase64ToInteger(string str) { return m_LSL_Functions.llBase64ToInteger(str); } | 414 | public int llBase64ToInteger(string str) { return m_LSL_Functions.llBase64ToInteger(str); } |
415 | public double llGetGMTclock() { return m_LSL_Functions.llGetGMTclock(); } | 415 | public double llGetGMTclock() { return m_LSL_Functions.llGetGMTclock(); } |
416 | public string llGetSimulatorHostname() { return m_LSL_Functions.llGetSimulatorHostname(); } | 416 | public string llGetSimulatorHostname() { return m_LSL_Functions.llGetSimulatorHostname(); } |
417 | public void llSetLocalRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetLocalRot(rot); } | 417 | public void llSetLocalRot(LSL_Types.Quaternion rot) { m_LSL_Functions.llSetLocalRot(rot); } |
418 | public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers) { return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); } | 418 | public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers) { return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); } |
419 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); } | 419 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) { m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); } |
420 | public int llGetObjectPermMask(int mask) { return m_LSL_Functions.llGetObjectPermMask(mask); } | 420 | public int llGetObjectPermMask(int mask) { return m_LSL_Functions.llGetObjectPermMask(mask); } |
421 | public void llSetObjectPermMask(int mask, int value) { m_LSL_Functions.llSetObjectPermMask(mask, value); } | 421 | public void llSetObjectPermMask(int mask, int value) { m_LSL_Functions.llSetObjectPermMask(mask, value); } |
422 | public void llGetInventoryPermMask(string item, int mask) { m_LSL_Functions.llGetInventoryPermMask(item, mask); } | 422 | public void llGetInventoryPermMask(string item, int mask) { m_LSL_Functions.llGetInventoryPermMask(item, mask); } |
423 | public void llSetInventoryPermMask(string item, int mask, int value) { m_LSL_Functions.llSetInventoryPermMask(item, mask, value); } | 423 | public void llSetInventoryPermMask(string item, int mask, int value) { m_LSL_Functions.llSetInventoryPermMask(item, mask, value); } |
424 | public string llGetInventoryCreator(string item) { return m_LSL_Functions.llGetInventoryCreator(item); } | 424 | public string llGetInventoryCreator(string item) { return m_LSL_Functions.llGetInventoryCreator(item); } |
425 | public void llOwnerSay(string msg) { m_LSL_Functions.llOwnerSay(msg); } | 425 | public void llOwnerSay(string msg) { m_LSL_Functions.llOwnerSay(msg); } |
426 | public void llRequestSimulatorData(string simulator, int data) { m_LSL_Functions.llRequestSimulatorData(simulator, data); } | 426 | public void llRequestSimulatorData(string simulator, int data) { m_LSL_Functions.llRequestSimulatorData(simulator, data); } |
427 | public void llForceMouselook(int mouselook) { m_LSL_Functions.llForceMouselook(mouselook); } | 427 | public void llForceMouselook(int mouselook) { m_LSL_Functions.llForceMouselook(mouselook); } |
428 | public double llGetObjectMass(string id) { return m_LSL_Functions.llGetObjectMass(id); } | 428 | public double llGetObjectMass(string id) { return m_LSL_Functions.llGetObjectMass(id); } |
429 | public void llListReplaceList() { m_LSL_Functions.llListReplaceList(); } | 429 | public void llListReplaceList() { m_LSL_Functions.llListReplaceList(); } |
430 | public void llLoadURL(string avatar_id, string message, string url) { m_LSL_Functions.llLoadURL(avatar_id, message, url); } | 430 | public void llLoadURL(string avatar_id, string message, string url) { m_LSL_Functions.llLoadURL(avatar_id, message, url); } |
431 | public void llParcelMediaCommandList(List<string> commandList) { m_LSL_Functions.llParcelMediaCommandList(commandList); } | 431 | public void llParcelMediaCommandList(List<string> commandList) { m_LSL_Functions.llParcelMediaCommandList(commandList); } |
432 | public void llParcelMediaQuery() { m_LSL_Functions.llParcelMediaQuery(); } | 432 | public void llParcelMediaQuery() { m_LSL_Functions.llParcelMediaQuery(); } |
433 | public int llModPow(int a, int b, int c) { return m_LSL_Functions.llModPow(a, b, c); } | 433 | public int llModPow(int a, int b, int c) { return m_LSL_Functions.llModPow(a, b, c); } |
434 | // | 434 | // |
435 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 435 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
436 | // | 436 | // |
437 | public int llGetInventoryType(string name) { return m_LSL_Functions.llGetInventoryType(name); } | 437 | public int llGetInventoryType(string name) { return m_LSL_Functions.llGetInventoryType(name); } |
438 | public void llSetPayPrice(int price, List<string> quick_pay_buttons) { m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); } | 438 | public void llSetPayPrice(int price, List<string> quick_pay_buttons) { m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); } |
439 | public LSL_Types.Vector3 llGetCameraPos() { return m_LSL_Functions.llGetCameraPos(); } | 439 | public LSL_Types.Vector3 llGetCameraPos() { return m_LSL_Functions.llGetCameraPos(); } |
440 | public LSL_Types.Quaternion llGetCameraRot() { return m_LSL_Functions.llGetCameraRot(); } | 440 | public LSL_Types.Quaternion llGetCameraRot() { return m_LSL_Functions.llGetCameraRot(); } |
441 | public void llSetPrimURL() { m_LSL_Functions.llSetPrimURL(); } | 441 | public void llSetPrimURL() { m_LSL_Functions.llSetPrimURL(); } |
442 | public void llRefreshPrimURL() { m_LSL_Functions.llRefreshPrimURL(); } | 442 | public void llRefreshPrimURL() { m_LSL_Functions.llRefreshPrimURL(); } |
443 | public string llEscapeURL(string url) { return m_LSL_Functions.llEscapeURL(url); } | 443 | public string llEscapeURL(string url) { return m_LSL_Functions.llEscapeURL(url); } |
444 | public string llUnescapeURL(string url) { return m_LSL_Functions.llUnescapeURL(url); } | 444 | public string llUnescapeURL(string url) { return m_LSL_Functions.llUnescapeURL(url); } |
445 | public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) { m_LSL_Functions.llMapDestination(simname, pos, look_at); } | 445 | public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) { m_LSL_Functions.llMapDestination(simname, pos, look_at); } |
446 | public void llAddToLandBanList(string avatar, double hours) { m_LSL_Functions.llAddToLandBanList(avatar, hours); } | 446 | public void llAddToLandBanList(string avatar, double hours) { m_LSL_Functions.llAddToLandBanList(avatar, hours); } |
447 | public void llRemoveFromLandPassList(string avatar) { m_LSL_Functions.llRemoveFromLandPassList(avatar); } | 447 | public void llRemoveFromLandPassList(string avatar) { m_LSL_Functions.llRemoveFromLandPassList(avatar); } |
448 | public void llRemoveFromLandBanList(string avatar) { m_LSL_Functions.llRemoveFromLandBanList(avatar); } | 448 | public void llRemoveFromLandBanList(string avatar) { m_LSL_Functions.llRemoveFromLandBanList(avatar); } |
449 | public void llSetCameraParams(List<string> rules) { m_LSL_Functions.llSetCameraParams(rules); } | 449 | public void llSetCameraParams(List<string> rules) { m_LSL_Functions.llSetCameraParams(rules); } |
450 | public void llClearCameraParams() { m_LSL_Functions.llClearCameraParams(); } | 450 | public void llClearCameraParams() { m_LSL_Functions.llClearCameraParams(); } |
451 | public double llListStatistics(int operation, List<string> src) { return m_LSL_Functions.llListStatistics(operation, src); } | 451 | public double llListStatistics(int operation, List<string> src) { return m_LSL_Functions.llListStatistics(operation, src); } |
452 | public int llGetUnixTime() { return m_LSL_Functions.llGetUnixTime(); } | 452 | public int llGetUnixTime() { return m_LSL_Functions.llGetUnixTime(); } |
453 | public int llGetParcelFlags(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelFlags(pos); } | 453 | public int llGetParcelFlags(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelFlags(pos); } |
454 | public int llGetRegionFlags() { return m_LSL_Functions.llGetRegionFlags(); } | 454 | public int llGetRegionFlags() { return m_LSL_Functions.llGetRegionFlags(); } |
455 | public string llXorBase64StringsCorrect(string str1, string str2) { return m_LSL_Functions.llXorBase64StringsCorrect(str1, str2); } | 455 | public string llXorBase64StringsCorrect(string str1, string str2) { return m_LSL_Functions.llXorBase64StringsCorrect(str1, str2); } |
456 | public void llHTTPRequest() { m_LSL_Functions.llHTTPRequest(); } | 456 | public void llHTTPRequest() { m_LSL_Functions.llHTTPRequest(); } |
457 | public void llResetLandBanList() { m_LSL_Functions.llResetLandBanList(); } | 457 | public void llResetLandBanList() { m_LSL_Functions.llResetLandBanList(); } |
458 | public void llResetLandPassList() { m_LSL_Functions.llResetLandPassList(); } | 458 | public void llResetLandPassList() { m_LSL_Functions.llResetLandPassList(); } |
459 | public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) { return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); } | 459 | public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) { return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); } |
460 | public List<string> llGetParcelPrimOwners(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelPrimOwners(pos); } | 460 | public List<string> llGetParcelPrimOwners(LSL_Types.Vector3 pos) { return m_LSL_Functions.llGetParcelPrimOwners(pos); } |
461 | public int llGetObjectPrimCount(string object_id) { return m_LSL_Functions.llGetObjectPrimCount(object_id); } | 461 | public int llGetObjectPrimCount(string object_id) { return m_LSL_Functions.llGetObjectPrimCount(object_id); } |
462 | // | 462 | // |
463 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 463 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
464 | // | 464 | // |
465 | public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) { return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); } | 465 | public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) { return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); } |
466 | public List<string> llGetParcelDetails(LSL_Types.Vector3 pos, List<string> param) { return m_LSL_Functions.llGetParcelDetails(pos, param); } | 466 | public List<string> llGetParcelDetails(LSL_Types.Vector3 pos, List<string> param) { return m_LSL_Functions.llGetParcelDetails(pos, param); } |
467 | 467 | ||
468 | // | 468 | // |
469 | // OpenSim Functions | 469 | // OpenSim Functions |
470 | // | 470 | // |
471 | public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer) { return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer); } | 471 | public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer) { return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer); } |
472 | 472 | ||
473 | // LSL CONSTANTS | 473 | // LSL CONSTANTS |
474 | public const int TRUE = 1; | 474 | public const int TRUE = 1; |
475 | public const int FALSE = 0; | 475 | public const int FALSE = 0; |
476 | public const int STATUS_PHYSICS = 1; | 476 | public const int STATUS_PHYSICS = 1; |
477 | public const int STATUS_ROTATE_X = 2; | 477 | public const int STATUS_ROTATE_X = 2; |
478 | public const int STATUS_ROTATE_Y = 4; | 478 | public const int STATUS_ROTATE_Y = 4; |
479 | public const int STATUS_ROTATE_Z = 8; | 479 | public const int STATUS_ROTATE_Z = 8; |
480 | public const int STATUS_PHANTOM = 16; | 480 | public const int STATUS_PHANTOM = 16; |
481 | public const int STATUS_SANDBOX = 32; | 481 | public const int STATUS_SANDBOX = 32; |
482 | public const int STATUS_BLOCK_GRAB = 64; | 482 | public const int STATUS_BLOCK_GRAB = 64; |
483 | public const int STATUS_DIE_AT_EDGE = 128; | 483 | public const int STATUS_DIE_AT_EDGE = 128; |
484 | public const int STATUS_RETURN_AT_EDGE = 256; | 484 | public const int STATUS_RETURN_AT_EDGE = 256; |
485 | public const int AGENT = 1; | 485 | public const int AGENT = 1; |
486 | public const int ACTIVE = 2; | 486 | public const int ACTIVE = 2; |
487 | public const int PASSIVE = 4; | 487 | public const int PASSIVE = 4; |
488 | public const int SCRIPTED = 8; | 488 | public const int SCRIPTED = 8; |
489 | public const int CONTROL_FWD = 1; | 489 | public const int CONTROL_FWD = 1; |
490 | public const int CONTROL_BACK = 2; | 490 | public const int CONTROL_BACK = 2; |
491 | public const int CONTROL_LEFT = 4; | 491 | public const int CONTROL_LEFT = 4; |
492 | public const int CONTROL_RIGHT = 8; | 492 | public const int CONTROL_RIGHT = 8; |
493 | public const int CONTROL_UP = 16; | 493 | public const int CONTROL_UP = 16; |
494 | public const int CONTROL_DOWN = 32; | 494 | public const int CONTROL_DOWN = 32; |
495 | public const int CONTROL_ROT_LEFT = 256; | 495 | public const int CONTROL_ROT_LEFT = 256; |
496 | public const int CONTROL_ROT_RIGHT = 512; | 496 | public const int CONTROL_ROT_RIGHT = 512; |
497 | public const int CONTROL_LBUTTON = 268435456; | 497 | public const int CONTROL_LBUTTON = 268435456; |
498 | public const int CONTROL_ML_LBUTTON = 1073741824; | 498 | public const int CONTROL_ML_LBUTTON = 1073741824; |
499 | public const int PERMISSION_DEBIT = 2; | 499 | public const int PERMISSION_DEBIT = 2; |
500 | public const int PERMISSION_TAKE_CONTROLS = 4; | 500 | public const int PERMISSION_TAKE_CONTROLS = 4; |
501 | public const int PERMISSION_REMAP_CONTROLS = 8; | 501 | public const int PERMISSION_REMAP_CONTROLS = 8; |
502 | public const int PERMISSION_TRIGGER_ANIMATION = 16; | 502 | public const int PERMISSION_TRIGGER_ANIMATION = 16; |
503 | public const int PERMISSION_ATTACH = 32; | 503 | public const int PERMISSION_ATTACH = 32; |
504 | public const int PERMISSION_RELEASE_OWNERSHIP = 64; | 504 | public const int PERMISSION_RELEASE_OWNERSHIP = 64; |
505 | public const int PERMISSION_CHANGE_LINKS = 128; | 505 | public const int PERMISSION_CHANGE_LINKS = 128; |
506 | public const int PERMISSION_CHANGE_JOINTS = 256; | 506 | public const int PERMISSION_CHANGE_JOINTS = 256; |
507 | public const int PERMISSION_CHANGE_PERMISSIONS = 512; | 507 | public const int PERMISSION_CHANGE_PERMISSIONS = 512; |
508 | public const int PERMISSION_TRACK_CAMERA = 1024; | 508 | public const int PERMISSION_TRACK_CAMERA = 1024; |
509 | public const int AGENT_FLYING = 1; | 509 | public const int AGENT_FLYING = 1; |
510 | public const int AGENT_ATTACHMENTS = 2; | 510 | public const int AGENT_ATTACHMENTS = 2; |
511 | public const int AGENT_SCRIPTED = 4; | 511 | public const int AGENT_SCRIPTED = 4; |
512 | public const int AGENT_MOUSELOOK = 8; | 512 | public const int AGENT_MOUSELOOK = 8; |
513 | public const int AGENT_SITTING = 16; | 513 | public const int AGENT_SITTING = 16; |
514 | public const int AGENT_ON_OBJECT = 32; | 514 | public const int AGENT_ON_OBJECT = 32; |
515 | public const int AGENT_AWAY = 64; | 515 | public const int AGENT_AWAY = 64; |
516 | public const int AGENT_WALKING = 128; | 516 | public const int AGENT_WALKING = 128; |
517 | public const int AGENT_IN_AIR = 256; | 517 | public const int AGENT_IN_AIR = 256; |
518 | public const int AGENT_TYPING = 512; | 518 | public const int AGENT_TYPING = 512; |
519 | public const int AGENT_CROUCHING = 1024; | 519 | public const int AGENT_CROUCHING = 1024; |
520 | public const int AGENT_BUSY = 2048; | 520 | public const int AGENT_BUSY = 2048; |
521 | public const int AGENT_ALWAYS_RUN = 4096; | 521 | public const int AGENT_ALWAYS_RUN = 4096; |
522 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; | 522 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; |
523 | public const int PSYS_PART_INTERP_SCALE_MASK = 2; | 523 | public const int PSYS_PART_INTERP_SCALE_MASK = 2; |
524 | public const int PSYS_PART_BOUNCE_MASK = 4; | 524 | public const int PSYS_PART_BOUNCE_MASK = 4; |
525 | public const int PSYS_PART_WIND_MASK = 8; | 525 | public const int PSYS_PART_WIND_MASK = 8; |
526 | public const int PSYS_PART_FOLLOW_SRC_MASK = 16; | 526 | public const int PSYS_PART_FOLLOW_SRC_MASK = 16; |
527 | public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32; | 527 | public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32; |
528 | public const int PSYS_PART_TARGET_POS_MASK = 64; | 528 | public const int PSYS_PART_TARGET_POS_MASK = 64; |
529 | public const int PSYS_PART_TARGET_LINEAR_MASK = 128; | 529 | public const int PSYS_PART_TARGET_LINEAR_MASK = 128; |
530 | public const int PSYS_PART_EMISSIVE_MASK = 256; | 530 | public const int PSYS_PART_EMISSIVE_MASK = 256; |
531 | public const int PSYS_PART_FLAGS = 0; | 531 | public const int PSYS_PART_FLAGS = 0; |
532 | public const int PSYS_PART_START_COLOR = 1; | 532 | public const int PSYS_PART_START_COLOR = 1; |
533 | public const int PSYS_PART_START_ALPHA = 2; | 533 | public const int PSYS_PART_START_ALPHA = 2; |
534 | public const int PSYS_PART_END_COLOR = 3; | 534 | public const int PSYS_PART_END_COLOR = 3; |
535 | public const int PSYS_PART_END_ALPHA = 4; | 535 | public const int PSYS_PART_END_ALPHA = 4; |
536 | public const int PSYS_PART_START_SCALE = 5; | 536 | public const int PSYS_PART_START_SCALE = 5; |
537 | public const int PSYS_PART_END_SCALE = 6; | 537 | public const int PSYS_PART_END_SCALE = 6; |
538 | public const int PSYS_PART_MAX_AGE = 7; | 538 | public const int PSYS_PART_MAX_AGE = 7; |
539 | public const int PSYS_SRC_ACCEL = 8; | 539 | public const int PSYS_SRC_ACCEL = 8; |
540 | public const int PSYS_SRC_PATTERN = 9; | 540 | public const int PSYS_SRC_PATTERN = 9; |
541 | public const int PSYS_SRC_INNERANGLE = 10; | 541 | public const int PSYS_SRC_INNERANGLE = 10; |
542 | public const int PSYS_SRC_OUTERANGLE = 11; | 542 | public const int PSYS_SRC_OUTERANGLE = 11; |
543 | public const int PSYS_SRC_TEXTURE = 12; | 543 | public const int PSYS_SRC_TEXTURE = 12; |
544 | public const int PSYS_SRC_BURST_RATE = 13; | 544 | public const int PSYS_SRC_BURST_RATE = 13; |
545 | public const int PSYS_SRC_BURST_PART_COUNT = 15; | 545 | public const int PSYS_SRC_BURST_PART_COUNT = 15; |
546 | public const int PSYS_SRC_BURST_RADIUS = 16; | 546 | public const int PSYS_SRC_BURST_RADIUS = 16; |
547 | public const int PSYS_SRC_BURST_SPEED_MIN = 17; | 547 | public const int PSYS_SRC_BURST_SPEED_MIN = 17; |
548 | public const int PSYS_SRC_BURST_SPEED_MAX = 18; | 548 | public const int PSYS_SRC_BURST_SPEED_MAX = 18; |
549 | public const int PSYS_SRC_MAX_AGE = 19; | 549 | public const int PSYS_SRC_MAX_AGE = 19; |
550 | public const int PSYS_SRC_TARGET_KEY = 20; | 550 | public const int PSYS_SRC_TARGET_KEY = 20; |
551 | public const int PSYS_SRC_OMEGA = 21; | 551 | public const int PSYS_SRC_OMEGA = 21; |
552 | public const int PSYS_SRC_ANGLE_BEGIN = 22; | 552 | public const int PSYS_SRC_ANGLE_BEGIN = 22; |
553 | public const int PSYS_SRC_ANGLE_END = 23; | 553 | public const int PSYS_SRC_ANGLE_END = 23; |
554 | public const int PSYS_SRC_PATTERN_DROP = 1; | 554 | public const int PSYS_SRC_PATTERN_DROP = 1; |
555 | public const int PSYS_SRC_PATTERN_EXPLODE = 2; | 555 | public const int PSYS_SRC_PATTERN_EXPLODE = 2; |
556 | public const int PSYS_SRC_PATTERN_ANGLE = 4; | 556 | public const int PSYS_SRC_PATTERN_ANGLE = 4; |
557 | public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8; | 557 | public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8; |
558 | public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16; | 558 | public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16; |
559 | public const int VEHICLE_TYPE_NONE = 0; | 559 | public const int VEHICLE_TYPE_NONE = 0; |
560 | public const int VEHICLE_TYPE_SLED = 1; | 560 | public const int VEHICLE_TYPE_SLED = 1; |
561 | public const int VEHICLE_TYPE_CAR = 2; | 561 | public const int VEHICLE_TYPE_CAR = 2; |
562 | public const int VEHICLE_TYPE_BOAT = 3; | 562 | public const int VEHICLE_TYPE_BOAT = 3; |
563 | public const int VEHICLE_TYPE_AIRPLANE = 4; | 563 | public const int VEHICLE_TYPE_AIRPLANE = 4; |
564 | public const int VEHICLE_TYPE_BALLOON = 5; | 564 | public const int VEHICLE_TYPE_BALLOON = 5; |
565 | public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16; | 565 | public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16; |
566 | public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17; | 566 | public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17; |
567 | public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18; | 567 | public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18; |
568 | public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20; | 568 | public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20; |
569 | public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19; | 569 | public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19; |
570 | public const int VEHICLE_HOVER_HEIGHT = 24; | 570 | public const int VEHICLE_HOVER_HEIGHT = 24; |
571 | public const int VEHICLE_HOVER_EFFICIENCY = 25; | 571 | public const int VEHICLE_HOVER_EFFICIENCY = 25; |
572 | public const int VEHICLE_HOVER_TIMESCALE = 26; | 572 | public const int VEHICLE_HOVER_TIMESCALE = 26; |
573 | public const int VEHICLE_BUOYANCY = 27; | 573 | public const int VEHICLE_BUOYANCY = 27; |
574 | public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28; | 574 | public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28; |
575 | public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29; | 575 | public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29; |
576 | public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30; | 576 | public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30; |
577 | public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31; | 577 | public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31; |
578 | public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32; | 578 | public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32; |
579 | public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33; | 579 | public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33; |
580 | public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34; | 580 | public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34; |
581 | public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35; | 581 | public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35; |
582 | public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36; | 582 | public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36; |
583 | public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37; | 583 | public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37; |
584 | public const int VEHICLE_BANKING_EFFICIENCY = 38; | 584 | public const int VEHICLE_BANKING_EFFICIENCY = 38; |
585 | public const int VEHICLE_BANKING_MIX = 39; | 585 | public const int VEHICLE_BANKING_MIX = 39; |
586 | public const int VEHICLE_BANKING_TIMESCALE = 40; | 586 | public const int VEHICLE_BANKING_TIMESCALE = 40; |
587 | public const int VEHICLE_REFERENCE_FRAME = 44; | 587 | public const int VEHICLE_REFERENCE_FRAME = 44; |
588 | public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1; | 588 | public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1; |
589 | public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2; | 589 | public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2; |
590 | public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4; | 590 | public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4; |
591 | public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8; | 591 | public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8; |
592 | public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16; | 592 | public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16; |
593 | public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32; | 593 | public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32; |
594 | public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64; | 594 | public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64; |
595 | public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128; | 595 | public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128; |
596 | public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256; | 596 | public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256; |
597 | public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512; | 597 | public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512; |
598 | public const int INVENTORY_ALL = -1; | 598 | public const int INVENTORY_ALL = -1; |
599 | public const int INVENTORY_NONE = -1; | 599 | public const int INVENTORY_NONE = -1; |
600 | public const int INVENTORY_TEXTURE = 0; | 600 | public const int INVENTORY_TEXTURE = 0; |
601 | public const int INVENTORY_SOUND = 1; | 601 | public const int INVENTORY_SOUND = 1; |
602 | public const int INVENTORY_LANDMARK = 3; | 602 | public const int INVENTORY_LANDMARK = 3; |
603 | public const int INVENTORY_CLOTHING = 5; | 603 | public const int INVENTORY_CLOTHING = 5; |
604 | public const int INVENTORY_OBJECT = 6; | 604 | public const int INVENTORY_OBJECT = 6; |
605 | public const int INVENTORY_NOTECARD = 7; | 605 | public const int INVENTORY_NOTECARD = 7; |
606 | public const int INVENTORY_SCRIPT = 10; | 606 | public const int INVENTORY_SCRIPT = 10; |
607 | public const int INVENTORY_BODYPART = 13; | 607 | public const int INVENTORY_BODYPART = 13; |
608 | public const int INVENTORY_ANIMATION = 20; | 608 | public const int INVENTORY_ANIMATION = 20; |
609 | public const int INVENTORY_GESTURE = 21; | 609 | public const int INVENTORY_GESTURE = 21; |
610 | public const int ATTACH_CHEST = 1; | 610 | public const int ATTACH_CHEST = 1; |
611 | public const int ATTACH_HEAD = 2; | 611 | public const int ATTACH_HEAD = 2; |
612 | public const int ATTACH_LSHOULDER = 3; | 612 | public const int ATTACH_LSHOULDER = 3; |
613 | public const int ATTACH_RSHOULDER = 4; | 613 | public const int ATTACH_RSHOULDER = 4; |
614 | public const int ATTACH_LHAND = 5; | 614 | public const int ATTACH_LHAND = 5; |
615 | public const int ATTACH_RHAND = 6; | 615 | public const int ATTACH_RHAND = 6; |
616 | public const int ATTACH_LFOOT = 7; | 616 | public const int ATTACH_LFOOT = 7; |
617 | public const int ATTACH_RFOOT = 8; | 617 | public const int ATTACH_RFOOT = 8; |
618 | public const int ATTACH_BACK = 9; | 618 | public const int ATTACH_BACK = 9; |
619 | public const int ATTACH_PELVIS = 10; | 619 | public const int ATTACH_PELVIS = 10; |
620 | public const int ATTACH_MOUTH = 11; | 620 | public const int ATTACH_MOUTH = 11; |
621 | public const int ATTACH_CHIN = 12; | 621 | public const int ATTACH_CHIN = 12; |
622 | public const int ATTACH_LEAR = 13; | 622 | public const int ATTACH_LEAR = 13; |
623 | public const int ATTACH_REAR = 14; | 623 | public const int ATTACH_REAR = 14; |
624 | public const int ATTACH_LEYE = 15; | 624 | public const int ATTACH_LEYE = 15; |
625 | public const int ATTACH_REYE = 16; | 625 | public const int ATTACH_REYE = 16; |
626 | public const int ATTACH_NOSE = 17; | 626 | public const int ATTACH_NOSE = 17; |
627 | public const int ATTACH_RUARM = 18; | 627 | public const int ATTACH_RUARM = 18; |
628 | public const int ATTACH_RLARM = 19; | 628 | public const int ATTACH_RLARM = 19; |
629 | public const int ATTACH_LUARM = 20; | 629 | public const int ATTACH_LUARM = 20; |
630 | public const int ATTACH_LLARM = 21; | 630 | public const int ATTACH_LLARM = 21; |
631 | public const int ATTACH_RHIP = 22; | 631 | public const int ATTACH_RHIP = 22; |
632 | public const int ATTACH_RULEG = 23; | 632 | public const int ATTACH_RULEG = 23; |
633 | public const int ATTACH_RLLEG = 24; | 633 | public const int ATTACH_RLLEG = 24; |
634 | public const int ATTACH_LHIP = 25; | 634 | public const int ATTACH_LHIP = 25; |
635 | public const int ATTACH_LULEG = 26; | 635 | public const int ATTACH_LULEG = 26; |
636 | public const int ATTACH_LLLEG = 27; | 636 | public const int ATTACH_LLLEG = 27; |
637 | public const int ATTACH_BELLY = 28; | 637 | public const int ATTACH_BELLY = 28; |
638 | public const int ATTACH_RPEC = 29; | 638 | public const int ATTACH_RPEC = 29; |
639 | public const int ATTACH_LPEC = 30; | 639 | public const int ATTACH_LPEC = 30; |
640 | public const int LAND_LEVEL = 0; | 640 | public const int LAND_LEVEL = 0; |
641 | public const int LAND_RAISE = 1; | 641 | public const int LAND_RAISE = 1; |
642 | public const int LAND_LOWER = 2; | 642 | public const int LAND_LOWER = 2; |
643 | public const int LAND_SMOOTH = 3; | 643 | public const int LAND_SMOOTH = 3; |
644 | public const int LAND_NOISE = 4; | 644 | public const int LAND_NOISE = 4; |
645 | public const int LAND_REVERT = 5; | 645 | public const int LAND_REVERT = 5; |
646 | public const int LAND_SMALL_BRUSH = 1; | 646 | public const int LAND_SMALL_BRUSH = 1; |
647 | public const int LAND_MEDIUM_BRUSH = 2; | 647 | public const int LAND_MEDIUM_BRUSH = 2; |
648 | public const int LAND_LARGE_BRUSH = 3; | 648 | public const int LAND_LARGE_BRUSH = 3; |
649 | public const int DATA_ONLINE = 1; | 649 | public const int DATA_ONLINE = 1; |
650 | public const int DATA_NAME = 2; | 650 | public const int DATA_NAME = 2; |
651 | public const int DATA_BORN = 3; | 651 | public const int DATA_BORN = 3; |
652 | public const int DATA_RATING = 4; | 652 | public const int DATA_RATING = 4; |
653 | public const int DATA_SIM_POS = 5; | 653 | public const int DATA_SIM_POS = 5; |
654 | public const int DATA_SIM_STATUS = 6; | 654 | public const int DATA_SIM_STATUS = 6; |
655 | public const int DATA_SIM_RATING = 7; | 655 | public const int DATA_SIM_RATING = 7; |
656 | public const int ANIM_ON = 1; | 656 | public const int ANIM_ON = 1; |
657 | public const int LOOP = 2; | 657 | public const int LOOP = 2; |
658 | public const int REVERSE = 4; | 658 | public const int REVERSE = 4; |
659 | public const int PING_PONG = 8; | 659 | public const int PING_PONG = 8; |
660 | public const int SMOOTH = 16; | 660 | public const int SMOOTH = 16; |
661 | public const int ROTATE = 32; | 661 | public const int ROTATE = 32; |
662 | public const int SCALE = 64; | 662 | public const int SCALE = 64; |
663 | public const int ALL_SIDES = -1; | 663 | public const int ALL_SIDES = -1; |
664 | public const int LINK_SET = -1; | 664 | public const int LINK_SET = -1; |
665 | public const int LINK_ROOT = 1; | 665 | public const int LINK_ROOT = 1; |
666 | public const int LINK_ALL_OTHERS = -2; | 666 | public const int LINK_ALL_OTHERS = -2; |
667 | public const int LINK_ALL_CHILDREN = -3; | 667 | public const int LINK_ALL_CHILDREN = -3; |
668 | public const int LINK_THIS = -4; | 668 | public const int LINK_THIS = -4; |
669 | public const int CHANGED_INVENTORY = 1; | 669 | public const int CHANGED_INVENTORY = 1; |
670 | public const int CHANGED_COLOR = 2; | 670 | public const int CHANGED_COLOR = 2; |
671 | public const int CHANGED_SHAPE = 4; | 671 | public const int CHANGED_SHAPE = 4; |
672 | public const int CHANGED_SCALE = 8; | 672 | public const int CHANGED_SCALE = 8; |
673 | public const int CHANGED_TEXTURE = 16; | 673 | public const int CHANGED_TEXTURE = 16; |
674 | public const int CHANGED_LINK = 32; | 674 | public const int CHANGED_LINK = 32; |
675 | public const int CHANGED_ALLOWED_DROP = 64; | 675 | public const int CHANGED_ALLOWED_DROP = 64; |
676 | public const int CHANGED_OWNER = 128; | 676 | public const int CHANGED_OWNER = 128; |
677 | public const int TYPE_INVALID = 0; | 677 | public const int TYPE_INVALID = 0; |
678 | public const int TYPE_INTEGER = 1; | 678 | public const int TYPE_INTEGER = 1; |
679 | public const int TYPE_double = 2; | 679 | public const int TYPE_double = 2; |
680 | public const int TYPE_STRING = 3; | 680 | public const int TYPE_STRING = 3; |
681 | public const int TYPE_KEY = 4; | 681 | public const int TYPE_KEY = 4; |
682 | public const int TYPE_VECTOR = 5; | 682 | public const int TYPE_VECTOR = 5; |
683 | public const int TYPE_ROTATION = 6; | 683 | public const int TYPE_ROTATION = 6; |
684 | public const int REMOTE_DATA_CHANNEL = 1; | 684 | public const int REMOTE_DATA_CHANNEL = 1; |
685 | public const int REMOTE_DATA_REQUEST = 2; | 685 | public const int REMOTE_DATA_REQUEST = 2; |
686 | public const int REMOTE_DATA_REPLY = 3; | 686 | public const int REMOTE_DATA_REPLY = 3; |
687 | //public const int PRIM_TYPE = 1; | 687 | //public const int PRIM_TYPE = 1; |
688 | public const int PRIM_MATERIAL = 2; | 688 | public const int PRIM_MATERIAL = 2; |
689 | public const int PRIM_PHYSICS = 3; | 689 | public const int PRIM_PHYSICS = 3; |
690 | public const int PRIM_TEMP_ON_REZ = 4; | 690 | public const int PRIM_TEMP_ON_REZ = 4; |
691 | public const int PRIM_PHANTOM = 5; | 691 | public const int PRIM_PHANTOM = 5; |
692 | public const int PRIM_POSITION = 6; | 692 | public const int PRIM_POSITION = 6; |
693 | public const int PRIM_SIZE = 7; | 693 | public const int PRIM_SIZE = 7; |
694 | public const int PRIM_ROTATION = 8; | 694 | public const int PRIM_ROTATION = 8; |
695 | public const int PRIM_TYPE = 9; | 695 | public const int PRIM_TYPE = 9; |
696 | public const int PRIM_TEXTURE = 17; | 696 | public const int PRIM_TEXTURE = 17; |
697 | public const int PRIM_COLOR = 18; | 697 | public const int PRIM_COLOR = 18; |
698 | public const int PRIM_BUMP_SHINY = 19; | 698 | public const int PRIM_BUMP_SHINY = 19; |
699 | public const int PRIM_FULLBRIGHT = 20; | 699 | public const int PRIM_FULLBRIGHT = 20; |
700 | public const int PRIM_FLEXIBLE = 21; | 700 | public const int PRIM_FLEXIBLE = 21; |
701 | public const int PRIM_TEXGEN = 22; | 701 | public const int PRIM_TEXGEN = 22; |
702 | public const int PRIM_TEXGEN_DEFAULT = 0; | 702 | public const int PRIM_TEXGEN_DEFAULT = 0; |
703 | public const int PRIM_TEXGEN_PLANAR = 1; | 703 | public const int PRIM_TEXGEN_PLANAR = 1; |
704 | public const int PRIM_TYPE_BOX = 0; | 704 | public const int PRIM_TYPE_BOX = 0; |
705 | public const int PRIM_TYPE_CYLINDER = 1; | 705 | public const int PRIM_TYPE_CYLINDER = 1; |
706 | public const int PRIM_TYPE_PRISM = 2; | 706 | public const int PRIM_TYPE_PRISM = 2; |
707 | public const int PRIM_TYPE_SPHERE = 3; | 707 | public const int PRIM_TYPE_SPHERE = 3; |
708 | public const int PRIM_TYPE_TORUS = 4; | 708 | public const int PRIM_TYPE_TORUS = 4; |
709 | public const int PRIM_TYPE_TUBE = 5; | 709 | public const int PRIM_TYPE_TUBE = 5; |
710 | public const int PRIM_TYPE_RING = 6; | 710 | public const int PRIM_TYPE_RING = 6; |
711 | public const int PRIM_HOLE_DEFAULT = 0; | 711 | public const int PRIM_HOLE_DEFAULT = 0; |
712 | public const int PRIM_HOLE_CIRCLE = 16; | 712 | public const int PRIM_HOLE_CIRCLE = 16; |
713 | public const int PRIM_HOLE_SQUARE = 32; | 713 | public const int PRIM_HOLE_SQUARE = 32; |
714 | public const int PRIM_HOLE_TRIANGLE = 48; | 714 | public const int PRIM_HOLE_TRIANGLE = 48; |
715 | public const int PRIM_MATERIAL_STONE = 0; | 715 | public const int PRIM_MATERIAL_STONE = 0; |
716 | public const int PRIM_MATERIAL_METAL = 1; | 716 | public const int PRIM_MATERIAL_METAL = 1; |
717 | public const int PRIM_MATERIAL_GLASS = 2; | 717 | public const int PRIM_MATERIAL_GLASS = 2; |
718 | public const int PRIM_MATERIAL_WOOD = 3; | 718 | public const int PRIM_MATERIAL_WOOD = 3; |
719 | public const int PRIM_MATERIAL_FLESH = 4; | 719 | public const int PRIM_MATERIAL_FLESH = 4; |
720 | public const int PRIM_MATERIAL_PLASTIC = 5; | 720 | public const int PRIM_MATERIAL_PLASTIC = 5; |
721 | public const int PRIM_MATERIAL_RUBBER = 6; | 721 | public const int PRIM_MATERIAL_RUBBER = 6; |
722 | public const int PRIM_MATERIAL_LIGHT = 7; | 722 | public const int PRIM_MATERIAL_LIGHT = 7; |
723 | public const int PRIM_SHINY_NONE = 0; | 723 | public const int PRIM_SHINY_NONE = 0; |
724 | public const int PRIM_SHINY_LOW = 1; | 724 | public const int PRIM_SHINY_LOW = 1; |
725 | public const int PRIM_SHINY_MEDIUM = 2; | 725 | public const int PRIM_SHINY_MEDIUM = 2; |
726 | public const int PRIM_SHINY_HIGH = 3; | 726 | public const int PRIM_SHINY_HIGH = 3; |
727 | public const int PRIM_BUMP_NONE = 0; | 727 | public const int PRIM_BUMP_NONE = 0; |
728 | public const int PRIM_BUMP_BRIGHT = 1; | 728 | public const int PRIM_BUMP_BRIGHT = 1; |
729 | public const int PRIM_BUMP_DARK = 2; | 729 | public const int PRIM_BUMP_DARK = 2; |
730 | public const int PRIM_BUMP_WOOD = 3; | 730 | public const int PRIM_BUMP_WOOD = 3; |
731 | public const int PRIM_BUMP_BARK = 4; | 731 | public const int PRIM_BUMP_BARK = 4; |
732 | public const int PRIM_BUMP_BRICKS = 5; | 732 | public const int PRIM_BUMP_BRICKS = 5; |
733 | public const int PRIM_BUMP_CHECKER = 6; | 733 | public const int PRIM_BUMP_CHECKER = 6; |
734 | public const int PRIM_BUMP_CONCRETE = 7; | 734 | public const int PRIM_BUMP_CONCRETE = 7; |
735 | public const int PRIM_BUMP_TILE = 8; | 735 | public const int PRIM_BUMP_TILE = 8; |
736 | public const int PRIM_BUMP_STONE = 9; | 736 | public const int PRIM_BUMP_STONE = 9; |
737 | public const int PRIM_BUMP_DISKS = 10; | 737 | public const int PRIM_BUMP_DISKS = 10; |
738 | public const int PRIM_BUMP_GRAVEL = 11; | 738 | public const int PRIM_BUMP_GRAVEL = 11; |
739 | public const int PRIM_BUMP_BLOBS = 12; | 739 | public const int PRIM_BUMP_BLOBS = 12; |
740 | public const int PRIM_BUMP_SIDING = 13; | 740 | public const int PRIM_BUMP_SIDING = 13; |
741 | public const int PRIM_BUMP_LARGETILE = 14; | 741 | public const int PRIM_BUMP_LARGETILE = 14; |
742 | public const int PRIM_BUMP_STUCCO = 15; | 742 | public const int PRIM_BUMP_STUCCO = 15; |
743 | public const int PRIM_BUMP_SUCTION = 16; | 743 | public const int PRIM_BUMP_SUCTION = 16; |
744 | public const int PRIM_BUMP_WEAVE = 17; | 744 | public const int PRIM_BUMP_WEAVE = 17; |
745 | public const int MASK_BASE = 0; | 745 | public const int MASK_BASE = 0; |
746 | public const int MASK_OWNER = 1; | 746 | public const int MASK_OWNER = 1; |
747 | public const int MASK_GROUP = 2; | 747 | public const int MASK_GROUP = 2; |
748 | public const int MASK_EVERYONE = 3; | 748 | public const int MASK_EVERYONE = 3; |
749 | public const int MASK_NEXT = 4; | 749 | public const int MASK_NEXT = 4; |
750 | public const int PERM_TRANSFER = 8192; | 750 | public const int PERM_TRANSFER = 8192; |
751 | public const int PERM_MODIFY = 16384; | 751 | public const int PERM_MODIFY = 16384; |
752 | public const int PERM_COPY = 32768; | 752 | public const int PERM_COPY = 32768; |
753 | public const int PERM_MOVE = 524288; | 753 | public const int PERM_MOVE = 524288; |
754 | public const int PERM_ALL = 2147483647; | 754 | public const int PERM_ALL = 2147483647; |
755 | public const int PARCEL_MEDIA_COMMAND_STOP = 0; | 755 | public const int PARCEL_MEDIA_COMMAND_STOP = 0; |
756 | public const int PARCEL_MEDIA_COMMAND_PAUSE = 1; | 756 | public const int PARCEL_MEDIA_COMMAND_PAUSE = 1; |
757 | public const int PARCEL_MEDIA_COMMAND_PLAY = 2; | 757 | public const int PARCEL_MEDIA_COMMAND_PLAY = 2; |
758 | public const int PARCEL_MEDIA_COMMAND_LOOP = 3; | 758 | public const int PARCEL_MEDIA_COMMAND_LOOP = 3; |
759 | public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4; | 759 | public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4; |
760 | public const int PARCEL_MEDIA_COMMAND_URL = 5; | 760 | public const int PARCEL_MEDIA_COMMAND_URL = 5; |
761 | public const int PARCEL_MEDIA_COMMAND_TIME = 6; | 761 | public const int PARCEL_MEDIA_COMMAND_TIME = 6; |
762 | public const int PARCEL_MEDIA_COMMAND_AGENT = 7; | 762 | public const int PARCEL_MEDIA_COMMAND_AGENT = 7; |
763 | public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8; | 763 | public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8; |
764 | public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9; | 764 | public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9; |
765 | public const int PAY_HIDE = -1; | 765 | public const int PAY_HIDE = -1; |
766 | public const int PAY_DEFAULT = -2; | 766 | public const int PAY_DEFAULT = -2; |
767 | public const string NULL_KEY = "00000000-0000-0000-0000-000000000000"; | 767 | public const string NULL_KEY = "00000000-0000-0000-0000-000000000000"; |
768 | public const string EOF = "\n\n\n"; | 768 | public const string EOF = "\n\n\n"; |
769 | public const double PI = 3.14159274f; | 769 | public const double PI = 3.14159274f; |
770 | public const double TWO_PI = 6.28318548f; | 770 | public const double TWO_PI = 6.28318548f; |
771 | public const double PI_BY_TWO = 1.57079637f; | 771 | public const double PI_BY_TWO = 1.57079637f; |
772 | public const double DEG_TO_RAD = 0.01745329238f; | 772 | public const double DEG_TO_RAD = 0.01745329238f; |
773 | public const double RAD_TO_DEG = 57.29578f; | 773 | public const double RAD_TO_DEG = 57.29578f; |
774 | public const double SQRT2 = 1.414213538f; | 774 | public const double SQRT2 = 1.414213538f; |
775 | 775 | ||
776 | // Can not be public const? | 776 | // Can not be public const? |
777 | public LSL_Types.Vector3 ZERO_VECTOR = new LSL_Types.Vector3(0, 0, 0); | 777 | public LSL_Types.Vector3 ZERO_VECTOR = new LSL_Types.Vector3(0, 0, 0); |
778 | public LSL_Types.Quaternion ZERO_ROTATION = new LSL_Types.Quaternion(0, 0, 0, 0); | 778 | public LSL_Types.Quaternion ZERO_ROTATION = new LSL_Types.Quaternion(0, 0, 0, 0); |
779 | 779 | ||
780 | 780 | ||
781 | 781 | ||
782 | } | 782 | } |
783 | } | 783 | } |