Class FloorFeatureLayer
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents a layer of the FloorFeaturesSection: one type of floor feature, with a set of values per level
public sealed class FloorFeatureLayer
- Inheritance
-
FloorFeatureLayer
- Inherited Members
Remarks
The layout follows the game's reader.
Properties
Levels
Gets the levels, in the order they are stored, which is ascending in the lots examined
public Collection<FloorFeatureLevel> Levels { get; }
Property Value
Remarks
A level of a layer of type 0 or 1 has one value per tile (SizeX and SizeZ are the lot's); a level of a layer of type 2 has a single value (both are 1).
Type
Gets/sets the type of the layer, 0 through 2
public byte Type { get; set; }
Property Value
Remarks
The game rejects other types as an "Invalid layer type"; the names of the three types are not in the game's code. In the lots examined the values of type 0 are 0 or 255, those of type 1 are 0, 127, 128 or 255, and those of type 2 are 0; layers of type 2 have no levels in all but 6 records.
Exceptions
- ArgumentOutOfRangeException
The type is not 0 through 2
Version
Gets/sets the version of the layer
public uint Version { get; set; }
Property Value
Remarks
The game's reader accepts 0 and 1 and writes 1, the only version in the lots examined; both have the same layout.
Exceptions
- ArgumentOutOfRangeException
The version is not 0 or 1