Changes
From Final Fantasy Inside
no edit summary
Data, where points this pointer begins with 2 bytes, first byte indicates, what data type we have, and second is count of objects of selected type.
'''Data'''
'''Data structure:'''
{| border="0" cellspacing="1" cellpadding="3" style="background: rgb(0,0,0)" align="center"
|style="background:rgb(255,255,255)" | 1 byte
|style="background:rgb(255,255,255)" | Data type
|-
|style="background:rgb(255,255,255)" | 1 byte
|style="background:rgb(255,255,255)" | Number of object`s in this scope
|-
|style="background:rgb(255,255,255)" | 2 bytes
|style="background:rgb(255,255,255)" | 00 00 (for 4 bytes align)
|}
''Objects identifiers''
After this goes object identifiers for selecting in scripts.
One identifier are '''2 bytes''', and size of all identifiers must be '''aligned to 4 bytes''' (by add 0000 identifier).
Identifiers count = Number of object`s in Data Structure.
''Pointers to objects''
Count of pointers = Number of object`s in Data Structure.
Size of all pointers are '''4 bytes'''.
Pointers are from current position (offset of current pointer + pointer value)
''End`s pointer for objects''
After Pointers to objects goes 4 bytes.
It`s pointer from offset first pointer to end of last object (offset of first pointer + end`s pointer)