World Painter 2D: Difference between revisions
m
Wording
(Created page.) |
m (Wording) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1:
{{ParadiseResourceTypeInfobox
[[File:Districts colored.png|thumb|right|The Districts World Painter 2D resource interpreted as an image.]]▼
| name = WorldPainter2D
| othernames = World Painter 2D
▲| example = [[File:Districts colored.png|
| resourcenames = Districts<br />Ambiences
| id = 0x30
| category = Generic
| memdist = Main Memory only
}}
World painter 2D resources are large arrays of district indices representing certain aspects of the game.
= Structures =
'''Note:
There is not a structure directly associated with World Painter 2D. It is treated like a regular binary resource and the data of that resource is instead parsed as a part of the CgsWorld::WorldMap2D construction.
=== Header ===▼
▲=== Header ===
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x2 || uint16_t ||
|-
| 0x2 || 0x2 || uint16_t ||
|}
These fields are used in combination with hardcoded world origin and size values for scaling purposes.
=== Data ===
The header is immediately followed by data in the form of a grid of single-byte district indices. The width and height of this grid is determined by the header.
These values correspond to [[Paradise City/Districts|BrnWorld::EDistrict]], except the invalid district is denoted as 0xFF (255) instead.
|