Table of Contents

Class VenueSection

Namespace
LlamaLogic.Architecture
Assembly
LlamaLogic.Architecture.dll

Represents the Venue section: the lot's venue (🔓)

public sealed class VenueSection : LotArchitectureSection
Inheritance
VenueSection
Inherited Members

Remarks

Versions 3 through 6 are supported, and the game writes version 6. BusinessInfos exists from version 4, Unknown3 from version 5 and HouseholdId from version 6; Unknown1 and Unknown2 exist from versions 2 and 3, so in every supported version.

In tray and blueprint mode the game keeps only the entry of the current venue, so a record holds none or one entry.

Constructors

VenueSection()

Initializes a new instance of the VenueSection class

public VenueSection()

Properties

BusinessInfos

Gets the business entries, which exist from version 4

public Collection<VenueBusinessInfo> BusinessInfos { get; }

Property Value

Collection<VenueBusinessInfo>

HouseholdId

Gets/sets the id of the household, which exists from version 6

public ulong HouseholdId { get; set; }

Property Value

ulong

Remarks

The game turns a stored value of 1 into 0 on load. It is 0 in all but 5 of the 1,524 version 6 sections examined.

Unknown1

Gets/sets a flag

public bool Unknown1 { get; set; }

Property Value

bool

Remarks

Hypothesis: it marks a venue override, going by how the game's code uses it. It is 0 or 1 in the lots examined, and the game stores it in the lot's venue object.

Unknown2

Gets/sets a second flag, which the game stores next to Unknown1

public bool Unknown2 { get; set; }

Property Value

bool

Remarks

It is 0 in every lot examined.

Unknown3

Gets/sets a 32-bit value, which exists from version 5

public uint Unknown3 { get; set; }

Property Value

uint

Remarks

The game recomputes it when saving, from the WallBlocks section, and its meaning has not been established. In the 1,856 version 5 and 6 sections examined it has 331 distinct values and is 0 in 239.

VenueTuning

Gets/sets the tuning id of the lot's venue

public ulong VenueTuning { get; set; }

Property Value

ulong

Remarks

The game treats 0 as its default venue, 0x6FC6. Changing the lot type in game from Residential to Generic changed it from 0x6FC6 to 0x18201, and changing it back restored 0x6FC6 (in-game test). It is never 0 in the lots examined.

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 3 through 6