diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/scripting/Engines/LSLEngine/LSLHandler/LSO_Struct.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/LSLEngine/LSLHandler/LSO_Struct.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/LSLEngine/LSLHandler/LSO_Struct.cs new file mode 100644 index 0000000..3b91e9f --- /dev/null +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/LSLEngine/LSLHandler/LSO_Struct.cs | |||
@@ -0,0 +1,105 @@ | |||
1 | |||
2 | using System; | ||
3 | using System.Collections.Generic; | ||
4 | using System.Text; | ||
5 | |||
6 | namespace OpenSim.ScriptEngines.LSL | ||
7 | { | ||
8 | static class LSO_Struct | ||
9 | { | ||
10 | |||
11 | public struct Header | ||
12 | { | ||
13 | public UInt32 TM; | ||
14 | public UInt32 IP; | ||
15 | public UInt32 VN; | ||
16 | public UInt32 BP; | ||
17 | public UInt32 SP; | ||
18 | public UInt32 HR; | ||
19 | public UInt32 HP; | ||
20 | public UInt32 CS; | ||
21 | public UInt32 NS; | ||
22 | public UInt32 CE; | ||
23 | public UInt32 IE; | ||
24 | public UInt32 ER; | ||
25 | public UInt32 FR; | ||
26 | public UInt32 SLR; | ||
27 | public UInt32 GVR; | ||
28 | public UInt32 GFR; | ||
29 | public UInt32 PR; | ||
30 | public UInt32 ESR; | ||
31 | public UInt32 SR; | ||
32 | public UInt64 NCE; | ||
33 | public UInt64 NIE; | ||
34 | public UInt64 NER; | ||
35 | } | ||
36 | |||
37 | public struct StaticBlock | ||
38 | { | ||
39 | public UInt32 Static_Chunk_Header_Size; | ||
40 | public byte ObjectType; | ||
41 | public byte Unknown; | ||
42 | public byte[] BlockVariable; | ||
43 | } | ||
44 | /* Not actually a structure | ||
45 | public struct StaticBlockVariable | ||
46 | { | ||
47 | public UInt32 Integer1; | ||
48 | public UInt32 Float1; | ||
49 | public UInt32 HeapPointer_String; | ||
50 | public UInt32 HeapPointer_Key; | ||
51 | public byte[] Vector_12; | ||
52 | public byte[] Rotation_16; | ||
53 | public UInt32 Pointer_List_Structure; | ||
54 | } */ | ||
55 | public struct HeapBlock | ||
56 | { | ||
57 | public UInt32 DataBlockSize; | ||
58 | public byte ObjectType; | ||
59 | public UInt16 ReferenceCount; | ||
60 | public byte[] Data; | ||
61 | } | ||
62 | public struct StateFrameBlock | ||
63 | { | ||
64 | public UInt32 StateCount; | ||
65 | public StatePointerBlock[] StatePointer; | ||
66 | } | ||
67 | public struct StatePointerBlock | ||
68 | { | ||
69 | public UInt32 Location; | ||
70 | public System.Collections.BitArray EventMask; | ||
71 | public StateBlock StateBlock; | ||
72 | } | ||
73 | public struct StateBlock | ||
74 | { | ||
75 | public UInt32 StartPos; | ||
76 | public UInt32 EndPos; | ||
77 | public UInt32 HeaderSize; | ||
78 | public byte Unknown; | ||
79 | public StateBlockHandler[] StateBlockHandlers; | ||
80 | } | ||
81 | public struct StateBlockHandler | ||
82 | { | ||
83 | public UInt32 CodeChunkPointer; | ||
84 | public UInt32 CallFrameSize; | ||
85 | } | ||
86 | public struct FunctionBlock | ||
87 | { | ||
88 | public UInt32 FunctionCount; | ||
89 | public UInt32[] CodeChunkPointer; | ||
90 | } | ||
91 | public struct CodeChunk | ||
92 | { | ||
93 | public UInt32 CodeChunkHeaderSize; | ||
94 | public string Comment; | ||
95 | public System.Collections.Generic.List<CodeChunkArgument> CodeChunkArguments; | ||
96 | public byte EndMarker; | ||
97 | public byte ReturnType; | ||
98 | } | ||
99 | public struct CodeChunkArgument | ||
100 | { | ||
101 | public byte FunctionReturnType; | ||
102 | public byte NullString; | ||
103 | } | ||
104 | } | ||
105 | } | ||