diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSO_Struct.cs | 270 |
1 files changed, 135 insertions, 135 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSO_Struct.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSO_Struct.cs index 53d1318..baeda38 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSO_Struct.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSO_Struct.cs | |||
@@ -1,135 +1,135 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions are met: | 6 | * modification, are permitted provided that the following conditions are met: |
7 | * * Redistributions of source code must retain the above copyright | 7 | * * Redistributions of source code must retain the above copyright |
8 | * notice, this list of conditions and the following disclaimer. | 8 | * notice, this list of conditions and the following disclaimer. |
9 | * * Redistributions in binary form must reproduce the above copyright | 9 | * * Redistributions in binary form must reproduce the above copyright |
10 | * notice, this list of conditions and the following disclaimer in the | 10 | * notice, this list of conditions and the following disclaimer in the |
11 | * documentation and/or other materials provided with the distribution. | 11 | * documentation and/or other materials provided with the distribution. |
12 | * * Neither the name of the OpenSim Project nor the | 12 | * * Neither the name of the OpenSim Project nor the |
13 | * names of its contributors may be used to endorse or promote products | 13 | * names of its contributors may be used to endorse or promote products |
14 | * derived from this software without specific prior written permission. | 14 | * derived from this software without specific prior written permission. |
15 | * | 15 | * |
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | 16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY |
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | 19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | /* Original code: Tedd Hansen */ | 28 | /* Original code: Tedd Hansen */ |
29 | 29 | ||
30 | using System; | 30 | using System; |
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using System.Text; | 32 | using System.Text; |
33 | 33 | ||
34 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSO | 34 | namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSO |
35 | { | 35 | { |
36 | static class LSO_Struct | 36 | static class LSO_Struct |
37 | { | 37 | { |
38 | 38 | ||
39 | public struct Header | 39 | public struct Header |
40 | { | 40 | { |
41 | public UInt32 TM; | 41 | public UInt32 TM; |
42 | public UInt32 IP; | 42 | public UInt32 IP; |
43 | public UInt32 VN; | 43 | public UInt32 VN; |
44 | public UInt32 BP; | 44 | public UInt32 BP; |
45 | public UInt32 SP; | 45 | public UInt32 SP; |
46 | public UInt32 HR; | 46 | public UInt32 HR; |
47 | public UInt32 HP; | 47 | public UInt32 HP; |
48 | public UInt32 CS; | 48 | public UInt32 CS; |
49 | public UInt32 NS; | 49 | public UInt32 NS; |
50 | public UInt32 CE; | 50 | public UInt32 CE; |
51 | public UInt32 IE; | 51 | public UInt32 IE; |
52 | public UInt32 ER; | 52 | public UInt32 ER; |
53 | public UInt32 FR; | 53 | public UInt32 FR; |
54 | public UInt32 SLR; | 54 | public UInt32 SLR; |
55 | public UInt32 GVR; | 55 | public UInt32 GVR; |
56 | public UInt32 GFR; | 56 | public UInt32 GFR; |
57 | public UInt32 PR; | 57 | public UInt32 PR; |
58 | public UInt32 ESR; | 58 | public UInt32 ESR; |
59 | public UInt32 SR; | 59 | public UInt32 SR; |
60 | public UInt64 NCE; | 60 | public UInt64 NCE; |
61 | public UInt64 NIE; | 61 | public UInt64 NIE; |
62 | public UInt64 NER; | 62 | public UInt64 NER; |
63 | } | 63 | } |
64 | 64 | ||
65 | public struct StaticBlock | 65 | public struct StaticBlock |
66 | { | 66 | { |
67 | public UInt32 Static_Chunk_Header_Size; | 67 | public UInt32 Static_Chunk_Header_Size; |
68 | public byte ObjectType; | 68 | public byte ObjectType; |
69 | public byte Unknown; | 69 | public byte Unknown; |
70 | public byte[] BlockVariable; | 70 | public byte[] BlockVariable; |
71 | } | 71 | } |
72 | /* Not actually a structure | 72 | /* Not actually a structure |
73 | public struct StaticBlockVariable | 73 | public struct StaticBlockVariable |
74 | { | 74 | { |
75 | public UInt32 Integer1; | 75 | public UInt32 Integer1; |
76 | public UInt32 Float1; | 76 | public UInt32 Float1; |
77 | public UInt32 HeapPointer_String; | 77 | public UInt32 HeapPointer_String; |
78 | public UInt32 HeapPointer_Key; | 78 | public UInt32 HeapPointer_Key; |
79 | public byte[] Vector_12; | 79 | public byte[] Vector_12; |
80 | public byte[] Rotation_16; | 80 | public byte[] Rotation_16; |
81 | public UInt32 Pointer_List_Structure; | 81 | public UInt32 Pointer_List_Structure; |
82 | } */ | 82 | } */ |
83 | public struct HeapBlock | 83 | public struct HeapBlock |
84 | { | 84 | { |
85 | public Int32 DataBlockSize; | 85 | public Int32 DataBlockSize; |
86 | public byte ObjectType; | 86 | public byte ObjectType; |
87 | public UInt16 ReferenceCount; | 87 | public UInt16 ReferenceCount; |
88 | public byte[] Data; | 88 | public byte[] Data; |
89 | } | 89 | } |
90 | public struct StateFrameBlock | 90 | public struct StateFrameBlock |
91 | { | 91 | { |
92 | public UInt32 StateCount; | 92 | public UInt32 StateCount; |
93 | public StatePointerBlock[] StatePointer; | 93 | public StatePointerBlock[] StatePointer; |
94 | } | 94 | } |
95 | public struct StatePointerBlock | 95 | public struct StatePointerBlock |
96 | { | 96 | { |
97 | public UInt32 Location; | 97 | public UInt32 Location; |
98 | public System.Collections.BitArray EventMask; | 98 | public System.Collections.BitArray EventMask; |
99 | public StateBlock StateBlock; | 99 | public StateBlock StateBlock; |
100 | } | 100 | } |
101 | public struct StateBlock | 101 | public struct StateBlock |
102 | { | 102 | { |
103 | public UInt32 StartPos; | 103 | public UInt32 StartPos; |
104 | public UInt32 EndPos; | 104 | public UInt32 EndPos; |
105 | public UInt32 HeaderSize; | 105 | public UInt32 HeaderSize; |
106 | public byte Unknown; | 106 | public byte Unknown; |
107 | public StateBlockHandler[] StateBlockHandlers; | 107 | public StateBlockHandler[] StateBlockHandlers; |
108 | } | 108 | } |
109 | public struct StateBlockHandler | 109 | public struct StateBlockHandler |
110 | { | 110 | { |
111 | public UInt32 CodeChunkPointer; | 111 | public UInt32 CodeChunkPointer; |
112 | public UInt32 CallFrameSize; | 112 | public UInt32 CallFrameSize; |
113 | } | 113 | } |
114 | public struct FunctionBlock | 114 | public struct FunctionBlock |
115 | { | 115 | { |
116 | public UInt32 FunctionCount; | 116 | public UInt32 FunctionCount; |
117 | public UInt32[] CodeChunkPointer; | 117 | public UInt32[] CodeChunkPointer; |
118 | } | 118 | } |
119 | public struct CodeChunk | 119 | public struct CodeChunk |
120 | { | 120 | { |
121 | public UInt32 CodeChunkHeaderSize; | 121 | public UInt32 CodeChunkHeaderSize; |
122 | public string Comment; | 122 | public string Comment; |
123 | public System.Collections.Generic.List<CodeChunkArgument> CodeChunkArguments; | 123 | public System.Collections.Generic.List<CodeChunkArgument> CodeChunkArguments; |
124 | public byte EndMarker; | 124 | public byte EndMarker; |
125 | public byte ReturnTypePos; | 125 | public byte ReturnTypePos; |
126 | public StaticBlock ReturnType; | 126 | public StaticBlock ReturnType; |
127 | } | 127 | } |
128 | public struct CodeChunkArgument | 128 | public struct CodeChunkArgument |
129 | { | 129 | { |
130 | public byte FunctionReturnTypePos; | 130 | public byte FunctionReturnTypePos; |
131 | public byte NullString; | 131 | public byte NullString; |
132 | public StaticBlock FunctionReturnType; | 132 | public StaticBlock FunctionReturnType; |
133 | } | 133 | } |
134 | } | 134 | } |
135 | } | 135 | } |