Table of Contents

Class LotInfoSection

Namespace
LlamaLogic.Architecture
Assembly
LlamaLogic.Architecture.dll

Represents the LotInfo section: the lot's levels, style, blueprint and users (🔓)

public sealed class LotInfoSection : LotArchitectureSection
Inheritance
LotInfoSection
Inherited Members

Remarks

The layout is Unknown1 (from version 13 on), the lowest and highest levels (signed bytes), one height per level from the lowest to the highest, LevelElevationOffset (from version 6 on), NegativeLevelElevationOffset (from version 16 on), Unknown2 (from version 17 on), Unknown3 (from version 18 on) and StyleKey (from version 7 on). From version 11 on, BlueprintInstance, the ids of the two users, Uuid, the names of the two users and, from version 19 on, the rest of the two user records follow. Versions 12 through 14 end with one plex map entry (value and has-value flag) and versions 15 and later with a 32-bit entry count and the entries.

The highest level is not kept: it is LowestLevel plus the number of LevelHeights minus 1, which the game's reader relies on to read the heights. The number of heights equals LevelCount.

Versions 5 through 20 are supported, and the game writes version 20. The game reads some other sections only for some versions of this one (for example PendingPlacementSection from version 9 on).

Constructors

LotInfoSection()

Initializes a new instance of the LotInfoSection class

public LotInfoSection()

Properties

BlueprintInstance

Gets/sets the tray instance of the blueprint the lot was saved as

public ulong BlueprintInstance { get; set; }

Property Value

ulong

Remarks

Present from version 11 on. In-game tests show that it equals the tray instance of each blueprint saved, and it is nonzero in every blueprint examined; the game passes it to the placement operation it builds from the PendingPlacementSection.

FirstUser

Gets the first user record

public LotInfoUser FirstUser { get; }

Property Value

LotInfoUser

Remarks

Present from version 11 on.

HighestLevel

Gets the highest level of the lot: LowestLevel plus the number of LevelHeights minus 1

public int HighestLevel { get; }

Property Value

int

LevelElevationOffset

Gets/sets the vertical offset the game adds to the elevation of levels 0 and up

public float LevelElevationOffset { get; set; }

Property Value

float

Remarks

Present from version 6 on. The game sets it together with NegativeLevelElevationOffset, quantized, moving the lot's blocks with it; that it is the foundation height is a hypothesis.

LevelHeights

Gets the height of each level, from the lowest to the highest

public Collection<float> LevelHeights { get; }

Property Value

Collection<float>

Remarks

The game sums these to get the elevation of a level. They are 3, 4 or 5 in the lots examined. Raising a level's walls from 3 m to 5 m in game changed that level's height from 3 to 5, and the base elevations of the blocks, roofs and stair tops above it followed (in-game test).

LowestLevel

Gets/sets the lowest level of the lot

public sbyte LowestLevel { get; set; }

Property Value

sbyte

NegativeLevelElevationOffset

Gets/sets the vertical offset the game adds to the elevation of levels below 0

public float NegativeLevelElevationOffset { get; set; }

Property Value

float

Remarks

Present from version 16 on.

PlexValues

Gets the entries of the plex map

public Collection<LotInfoPlexValue> PlexValues { get; }

Property Value

Collection<LotInfoPlexValue>

Remarks

Versions before 12 hold none, and versions 12 through 14 exactly one.

SecondUser

Gets the second user record

public LotInfoUser SecondUser { get; }

Property Value

LotInfoUser

Remarks

Present from version 11 on.

StyleKey

Gets/sets the key of the lot's style, a CTProductStyle (0x9F5CFF10) or the null key

public ResourceKey StyleKey { get; set; }

Property Value

ResourceKey

Remarks

Present from version 7 on. The game replaces a missing or invalid style with the default style while loading.

Unknown1

Gets/sets the first unknown value

public uint Unknown1 { get; set; }

Property Value

uint

Remarks

Present from version 13 on. It defaults to 1 in the game and is 1 in all but 24 lots examined (which hold 0).

Unknown2

Gets/sets the second unknown value

public bool Unknown2 { get; set; }

Property Value

bool

Remarks

Present from version 17 on. The game overwrites it while loading with whether the lot has plexes in a certain state or another flag of the lot is set.

Unknown3

Gets/sets the third unknown value

public bool Unknown3 { get; set; }

Property Value

bool

Remarks

Present from version 18 on; the game sets it for older versions. When it is set, the game moves the lot's objects to their level's height minus a constant while loading, then clears it.

Uuid

Gets/sets the bytes stored between the user ids and the user names

public ReadOnlyMemory<byte> Uuid { get; set; }

Property Value

ReadOnlyMemory<byte>

Remarks

Present from version 11 on. It is empty or a 16-byte RFC 4122 UUID (version 1 or 4) in the lots examined; its purpose is unknown.

Version

Gets/sets the version of the section, which decides its layout

public uint Version { get; set; }

Property Value

uint

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 20