Class RoofsSection
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents the Roofs section: the lot's roofs (🔓)
public sealed class RoofsSection : LotArchitectureSection
- Inheritance
-
RoofsSection
- Inherited Members
Remarks
The header holds LegacyKey (before version 8), ReservedKey, Unknown1, Unknown2, Unknown3 and the roof count (a 32-bit value); the roofs follow. The layout of each roof depends on the version, as Roof describes.
Versions 5 through 13 are supported, and the game writes version 13.
In-game tests show that a roof's shape is decided by its RoofKey alone, with the per-side bytes following the shape; Roof lists the observations.
Constructors
RoofsSection()
Initializes a new instance of the RoofsSection class
public RoofsSection()
Properties
LegacyKey
Gets/sets the legacy key of the header
public ResourceKey LegacyKey { get; set; }
Property Value
Remarks
Present before version 8. The game's reader discards it.
ReservedKey
Gets/sets the reserved key of the header
public ResourceKey ReservedKey { get; set; }
Property Value
Remarks
The game's writer writes the null key (recording it for the ResourceManifestSection) and its reader discards it; it is the null key in every lot examined.
Roofs
Gets the roofs
public Collection<Roof> Roofs { get; }
Property Value
Unknown1
Gets/sets the first unknown value of the header
public float Unknown1 { get; set; }
Property Value
Remarks
The game keeps it in its roof manager; it is 0.5 in every lot examined.
Unknown2
Gets/sets the second unknown value of the header
public uint Unknown2 { get; set; }
Property Value
Remarks
The game's writer writes 0 and its reader discards it. It is 0 in the lots examined except in three version 6 and 8 records (45, 45 and 5), where it may count roof ids (hypothesis: 45 is the highest roof id there).
Unknown3
Gets/sets the third unknown value of the header
public bool Unknown3 { get; set; }
Property Value
Remarks
Version
Gets/sets the version of the section, which decides its layout
public uint Version { get; set; }
Property Value
Remarks
Encoding throws an InvalidOperationException when a field the version lacks holds a value other than its default, or a collection the version lacks is not empty.
Exceptions
- ArgumentOutOfRangeException
The version is not 5 through 13