Difference between revisions of "0A284D0B"
From SimsWiki
m (Add description of Minimum level on the lot) |
(Document relationship with WLL) |
||
Line 11: | Line 11: | ||
;DWORD | ;DWORD | ||
:Block ID | :Block ID | ||
+ | :Value = 0A284D0B | ||
;DWORD | ;DWORD | ||
:Block version | :Block version | ||
− | ;7BITSTR | + | :Known values: 2 and 3 |
+ | ;[[7BITSTR]] | ||
:Block name | :Block name | ||
+ | :Value = "cWallGraph" | ||
===Data Section=== | ===Data Section=== | ||
Line 41: | Line 44: | ||
:Count A: | :Count A: | ||
;repeat A times | ;repeat A times | ||
+ | : | ||
:;DWORD | :;DWORD | ||
− | :: | + | ::Vertex ID |
+ | ::Used in List of Walls below | ||
:;FLOAT | :;FLOAT | ||
::X coordinate | ::X coordinate | ||
Line 53: | Line 58: | ||
:Count B | :Count B | ||
;repeat B times | ;repeat B times | ||
+ | : | ||
:;DWORD | :;DWORD | ||
::Unknown (generally incremental, but not always) | ::Unknown (generally incremental, but not always) | ||
+ | ::Used in List of Walls below | ||
<br/> | <br/> | ||
=====List of Walls===== | =====List of Walls===== | ||
Line 61: | Line 68: | ||
:Count C: | :Count C: | ||
;repeat C times | ;repeat C times | ||
+ | : | ||
:;DWORD | :;DWORD | ||
− | :: | + | ::Wall ID |
+ | ::Corresponds to Wall ID in [[WLL]] | ||
:;DWORD | :;DWORD | ||
− | :: | + | ::Vertex ID of first vertex within Wall Vertex List above |
:;DWORD | :;DWORD | ||
::Unknown | ::Unknown | ||
+ | ::Value from array B above | ||
:;DWORD | :;DWORD | ||
− | :: | + | ::Vertex ID of second vertex within Wall Vertex List |
:;DWORD | :;DWORD | ||
::Unknown | ::Unknown | ||
+ | ::Value from array B above | ||
Note: | Note: | ||
− | The Wall Graph defines most vertical structures, such as walls, fences, attic walls, swimming pool walls, and foundation walls (including invisible walls). Each wall may require other associated structures. For example, fences usually have associated fence posts (FPL), attics have associated roofs (ROOF), swimming pools have associated swimming pool surfaces (POOL). | + | |
+ | 1) The Wall Graph defines most vertical structures, such as walls, fences, attic walls, swimming pool walls, and foundation walls (including invisible walls). Each wall may require other associated structures. For example, fences usually have associated fence posts (FPL), attics have associated roofs (ROOF), swimming pools have associated swimming pool surfaces (POOL). | ||
+ | |||
+ | 2) Each wall in WLL may be reflected in multiple WGRA instances. WGRA instances may reflect properties of each wall, for example: light blocking, load bearing, ... | ||
+ | |||
{{OldWikiEntryCleaned}} | {{OldWikiEntryCleaned}} |
Revision as of 23:52, 23 July 2008
0A284D0B | |
---|---|
Short name: | WGRA |
Long name: | Wall graph |
Contents |
Format
Header
As specified in WDB.
- DWORD
- Block ID
- Value = 0A284D0B
- DWORD
- Block version
- Known values: 2 and 3
- 7BITSTR
- Block name
- Value = "cWallGraph"
Data Section
- DWORD
- Unknown (always 0?)
- DWORD
- Unknown (always 0?)
- DWORD
- Minimum level on the lot
- There are two possible values for this field:
- 0 if the ground level is the lowest level on the lot (default)
- -1 if an underground level exists
- DWORD
- Lot width
- DWORD
- Lot height
- DWORD
- Numeric Value of Story/floor grid level (UI)
- DWORD
- Unknown
- DWORD
- Unknown
List of Wall Vertices
- DWORD
- Count A:
- repeat A times
-
- DWORD
- Vertex ID
- Used in List of Walls below
- FLOAT
- X coordinate
- FLOAT
- Y coordinate
- DWORD
- Level (0 is ground level, 1 is next floor up, etc., -1 is below ground, such as pool)
- DWORD
- Count B
- repeat B times
-
- DWORD
- Unknown (generally incremental, but not always)
- Used in List of Walls below
List of Walls
Defines a wall between two vertices.
- DWORD
- Count C:
- repeat C times
-
- DWORD
- Wall ID
- Corresponds to Wall ID in WLL
- DWORD
- Vertex ID of first vertex within Wall Vertex List above
- DWORD
- Unknown
- Value from array B above
- DWORD
- Vertex ID of second vertex within Wall Vertex List
- DWORD
- Unknown
- Value from array B above
Note:
1) The Wall Graph defines most vertical structures, such as walls, fences, attic walls, swimming pool walls, and foundation walls (including invisible walls). Each wall may require other associated structures. For example, fences usually have associated fence posts (FPL), attics have associated roofs (ROOF), swimming pools have associated swimming pool surfaces (POOL).
2) Each wall in WLL may be reflected in multiple WGRA instances. WGRA instances may reflect properties of each wall, for example: light blocking, load bearing, ...
This article is imported from the old MTS2 wiki. It's original page, with comments, can be found at http://old_wiki.modthesims2.com/0A284D0B