Jump to content

Collision map file: Difference between revisions

Unknown block 1
No edit summary
(Unknown block 1)
Line 16: Line 16:
| u32 || Offset from start of file to [[#Zones]]
| u32 || Offset from start of file to [[#Zones]]
|-
|-
| u32 || Offset from start of file to unknown block 1 (maybe related to enemy patrolling?)
| u32 || Offset from start of file to [[#Unknown block 1]] (maybe related to enemy patrolling?)
|-
|-
| u32 || Offset from start of file to unknown block 2 (maybe related to enemy patrolling?)
| u32 || Offset from start of file to [[#Unknown block 2]] (maybe related to enemy patrolling?)
|-
|-
| || Tile data
| || Tile data
Line 96: Line 96:


= Unknown block 1 =
= Unknown block 1 =
<syntaxhighlight lang="c">
struct UnknownBlock1 {
  /* offset 0x00 */ u32 itemCount;
  /* offset 0x04 */ UnknownBlockItem items[itemCount];
  UnknownBlockData data[];
};
struct UnknownBlock1Item {
  /* offset 0x00 */ u16 dataCount;
  // Byte offset from start of UnknownBlock1 to data
  /* offset 0x02 */ u16 dataOffset;
};
struct UnknownBlock1Data {
  u16 a, b, c, d;
};
</syntaxhighlight>
= Unknown block 2 =
= Unknown block 2 =