Open main menu

Difference between revisions of "SCUMM/Technical Reference/Index File"

→‎0O - Directory of Objects: checked ScummVM source; definitely class data, just in the wrong order. Added possible class values
(→‎0O - Directory of Objects: add extra 3 bytes)
(→‎0O - Directory of Objects: checked ScummVM source; definitely class data, just in the wrong order. Added possible class values)
Line 169: Line 169:
  Block Name        (2 bytes)
  Block Name        (2 bytes)
  No of items        (2 bytes)
  No of items        (2 bytes)
  Class data      (3 bytes)
   Owner+state      (1 byte)
   Owner+state      (1 byte)
  ???              (3 bytes)  - possibly class data?
 
The class data is LE. Class data can be as follows:
 
No Class = 0
kObjectClassYFlip = 18
kObjectClassXFlip = 19
kObjectClassNeverClip = 20
kObjectClassAlwaysClip = 21
kObjectClassIgnoreBoxes = 22
kObjectClassPlayer = 23 // Actor is controlled by the player
kObjectClassUntouchable = 24


The Object owner and state are encoded in one byte. Example:
The Object owner and state are encoded in one byte. Example:
126

edits