forked from ottools/ObjectBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOBD 2.0 Structure.txt
59 lines (54 loc) · 2.32 KB
/
OBD 2.0 Structure.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
======================================================================
OBD (Object Builder Data) file structure.
======================================================================
File version: 2.0
Endian: Little endian byte order
Compression algorithm: LZMA
======================================================================
Length - Value
[1] - Obd file major version (0 - 99)
[1] - Obd file minor version (0 - 99)
[2] - Client version
[1] - Object category (1 = Item, 2 = Outfit, 3 = Effect, 4 = Missile)
[n] - Object properties
-------- Texture patterns -----------------
|
[1] - Width |
[1] - Height |
|
-If width or height are greater than 1 - |
| |
[1] - Exact size | |
| |
---------------------------------------- |
|
[1] - Layers |
[1] - Pattern X |
[1] - Pattern Y |
[1] - Pattern Z |
[1] - Frames |
|
----- If frames are greater than 1 ----- |
| |
[1] - Animation type | |
[4] - Frame strategy | |
[1] - Start frame | |
| |
-------- For each frame ------------- | |
| | |
[4] - Minimum frame duration | | |
[4] - Maximum frame duration | | |
| | |
------------------------------------- | |
| |
---------------------------------------- |
|
-------- For each sprite ------------- |
| |
[4] - Last id used by this sprite | |
[4096] - Sprite ARGB 32-bit pixels | |
| |
-------------------------------------- |
|
-------------------------------------------
======================================================================