Map unit: Difference between revisions

no edit summary
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 1: Line 1:
{{Stub|what=Complete the contents section, the link system (and possibly other things)}}
''Not to be confused with [[map]]s, [[Stage|stages]] or [[Scene|scenes]]''.
''Not to be confused with [[map]]s, [[Stage|stages]] or [[Scene|scenes]]''.


Line 14: Line 13:


=== <code>LocationPosX</code> ===
=== <code>LocationPosX</code> ===
X coordinate of the center of the map unit.


=== <code>LocationPosZ</code> ===
=== <code>LocationPosZ</code> ===
Y coordinate of the center of the map unit.


=== <code>LocationSize</code> ===
=== <code>LocationSize</code> ===
Size of the map unit (side length of the square).


=== <code>Objs</code> ===
=== <code>Objs</code> ===
{{expand section}}
Array of object structures. '''Must be sorted by HashId'''<ref>Technically, sorting is only required for Dynamic (non-group 0) map units. However, not sorting causes the game to fall back to a slower linear search.</ref> because the placement subsystem performs binary searches on the object array in various cases<ref>0x7101256E14</ref>.
Array of object structures. '''Must be sorted by HashId'''<ref>Technically, sorting is only required for Dynamic (non-group 0) map units. However, not sorting causes the game to fall back to a slower linear search.</ref> because the placement subsystem performs binary searches on the object array in various cases<ref>0x7101256E14</ref>.


=== <code>Rails</code> ===
=== <code>Rails</code> ===
{{expand section}}
Array of rail structures. Can only appear in group 0 maps (Static); this section is completely ignored for non-static map units.
Array of rail structures. Can only appear in group 0 maps (Static); this section is completely ignored for non-static map units.


Line 33: Line 37:


===Definitions===
===Definitions===
{{expand section}}
{|class="wikitable sortable"
{|class="wikitable sortable"
! ID !! Name !! Description !! Official description
! ID !! Name !! Description !! Official description
Anonymous user