Table of Contents

Class FloorFeatureLevel

Namespace
LlamaLogic.Architecture
Assembly
LlamaLogic.Architecture.dll

Represents the values of a FloorFeatureLayer on one level

public sealed class FloorFeatureLevel
Inheritance
FloorFeatureLevel
Inherited Members

Remarks

The values are stored as SizeZ rows of SizeX bytes, unlike the floor grids. The game's get_floor_feature returns a value divided by 255.

Constructors

FloorFeatureLevel(int, int)

Initializes a new instance of the FloorFeatureLevel class with every value 0

public FloorFeatureLevel(int sizeX, int sizeZ)

Parameters

sizeX int

The number of tiles along the lot's local X axis, or 1 for a layer of type 2

sizeZ int

The number of tiles along the lot's local Z axis, or 1 for a layer of type 2

Exceptions

ArgumentOutOfRangeException

sizeX or sizeZ is not 0 through 255

Properties

this[int, int]

Gets/sets the value of a tile

public byte this[int x, int z] { get; set; }

Parameters

x int

The tile's index along the lot's local X axis, or 0 for a layer of type 2

z int

The tile's index along the lot's local Z axis, or 0 for a layer of type 2

Property Value

byte

Exceptions

ArgumentOutOfRangeException

A coordinate is outside the level

Level

Gets/sets the level, which cannot be −128

public sbyte Level { get; set; }

Property Value

sbyte

Remarks

−4 through 4 in the lots examined, from LowestLevel through one above HighestLevel. The section ends each layer's list of levels with −128.

Exceptions

ArgumentOutOfRangeException

The level is −128

SizeX

Gets the number of values along the lot's local X axis

public int SizeX { get; }

Property Value

int

SizeZ

Gets the number of values along the lot's local Z axis

public int SizeZ { get; }

Property Value

int