Class StairsSection
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents the Stairs section: the lot's stairs and ladders (🔓)
public sealed class StairsSection : LotArchitectureSection
- Inheritance
-
StairsSection
- Inherited Members
Remarks
The header holds Unknown1 (from version 9 on) and the stair count (8 bits before version 9, 16 bits from then on); the stairs follow, and from version 11 on a 16-bit ladder count and the ladders. The layout of each stair or ladder depends on the version, as Stair describes.
Versions 4 through 15 are supported, and the game writes version 15.
Constructors
StairsSection()
Initializes a new instance of the StairsSection class
public StairsSection()
Properties
Ladders
Gets the ladders
public Collection<Stair> Ladders { get; }
Property Value
Remarks
Present from version 11 on.
Stairs
Gets the stairs
public Collection<Stair> Stairs { get; }
Property Value
Unknown1
Gets/sets the unknown value of the header
public bool Unknown1 { get; set; }
Property Value
Remarks
Present from version 9 on; the game sets it for older versions. When it is set, the game recomputes bits 4 and 5 of each stair's Flags while loading.
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 4 through 15