Table of Contents

Class ObjectTileBoundsSection

Namespace
LlamaLogic.Architecture
Assembly
LlamaLogic.Architecture.dll

Represents the ObjectTileBounds section: the tile rectangles of the lot's objects (🔓)

public sealed class ObjectTileBoundsSection : LotArchitectureSection
Inheritance
ObjectTileBoundsSection
Inherited Members

Remarks

The layout is a 32-bit entry count and, per entry, the object id, the tile rectangle (from version 2 on) and the level. The game sorts the entries when it writes the section; they are kept here in the order read.

Versions 1 and 2 are supported, and the game writes version 2.

Constructors

ObjectTileBoundsSection()

Initializes a new instance of the ObjectTileBoundsSection class

public ObjectTileBoundsSection()

Properties

Entries

Gets the entries

public Collection<ObjectTileBounds> Entries { get; }

Property Value

Collection<ObjectTileBounds>

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 1 or 2