Class PendingPlacementSection
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents the PendingPlacement section: a footprint the game places on the lot after loading (🔓)
public sealed class PendingPlacementSection : LotArchitectureSection
- Inheritance
-
PendingPlacementSection
- Inherited Members
Remarks
When State is 1, the game centers a footprint of Width by Depth tiles, turned by Rotation, on the lot and builds a placement operation with BlueprintInstance; that this places a pending lot template or blueprint is a hypothesis. Every lot examined holds the defaults (state 0).
The layout is Width, Depth, Rotation (from version 3 on), State (a Boolean in version 1), then from version 2 on Unknown1, Unknown2, Unknown3 (from version 4 on) and Unknown4 (from version 5 on). The game reads this section only when Version is 9 or later.
Versions 1 through 5 are supported, and the game writes version 5.
Constructors
PendingPlacementSection()
Initializes a new instance of the PendingPlacementSection class
public PendingPlacementSection()
Properties
Depth
Gets/sets the second dimension of the footprint, in tiles
public byte Depth { get; set; }
Property Value
Rotation
Gets/sets the rotation of the footprint relative to the lot, in quarter turns
public byte Rotation { get; set; }
Property Value
Remarks
Present from version 3 on. The game uses it modulo 4.
State
Gets/sets the state of the placement; the game places the footprint only when it is 1
public byte State { get; set; }
Property Value
Remarks
In version 1 it is stored as a Boolean, so it must be 0 or 1 to be written.
Unknown1
Gets/sets the first unknown value
public bool Unknown1 { get; set; }
Property Value
Remarks
Present from version 2 on. It is true in every lot examined.
Unknown2
Gets/sets the second unknown value
public ulong Unknown2 { get; set; }
Property Value
Remarks
Present from version 2 on. It is 0 in every lot examined.
Unknown3
Gets/sets the third unknown value
public bool Unknown3 { get; set; }
Property Value
Remarks
Present from version 4 on. It is false in every lot examined.
Unknown4
Gets/sets the fourth unknown value
public bool Unknown4 { get; set; }
Property Value
Remarks
Present from version 5 on. It is false in every lot examined.
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 5
Width
Gets/sets the first dimension of the footprint, in tiles
public byte Width { get; set; }
Property Value
Remarks
Which lot axis each dimension runs along depends on the rotations of the footprint and the lot.