Class PlexesSection
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents the Plexes section: the lot's plexes (units), with the blocks of their outlines (🔓)
public sealed class PlexesSection : LotArchitectureSection
- Inheritance
-
PlexesSection
- Inherited Members
Remarks
The layout follows the game's reader and writer; the game reads the section only when the LotInfoSection is version 14 or later. Versions 1 through 9 are supported, and the game writes version 9.
Layout: Version, Unknown1 (after 2), a uint plex count, the Plexes, then after 7 a uint count of Unknown2, and only if it is not 0: Unknown2, Unknown3, a uint count and Unknown4; then after 8 a ushort count and the GroupMaps.
Constructors
PlexesSection()
Initializes a new instance of the PlexesSection class
public PlexesSection()
Properties
GroupMaps
Gets the maps from which the game looks up groups of the PlexGroupsSection
public Collection<PlexGroupMap> GroupMaps { get; }
Property Value
Remarks
0 or 1 entries in the lots examined. Stored from version 9 on.
Plexes
Gets the plexes
public Collection<Plex> Plexes { get; }
Property Value
Remarks
0 through 5 in the lots examined.
Unknown1
Gets/sets a Boolean the game keeps at offset 0x115 of its plex manager
public bool Unknown1 { get; set; }
Property Value
Remarks
While it is set, the game runs a routine of its plex manager and then clears it; the game sets it for sections before version 4. Hypothesis: the plex outlines need regenerating. 0 in every lot examined. Stored from version 3 on.
Unknown2
Gets the first of the extra lists of blocks of versions 8 and later
public Collection<WallBlock> Unknown2 { get; }
Property Value
Remarks
The game keeps them at offset 200 of its plex manager. Empty in every lot examined.
Unknown3
Gets/sets the block stored after Unknown2
public WallBlock? Unknown3 { get; set; }
Property Value
Remarks
The game keeps it at offset 0x30 of its plex manager. It is stored only when Unknown2 is not empty, and must then be set.
Unknown4
Gets the second of the extra lists of blocks of versions 8 and later
public Collection<WallBlock> Unknown4 { get; }
Property Value
Remarks
The game keeps them at offset 0xE0 of its plex manager. It is stored only when Unknown2 is not empty.
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 1 through 9