Skip to content

BoxDefinition

public sealed class BoxDefinition

Namespace MapExpansions

A box of a copy, in the main world’s coordinates like the copy’s template.

public string Id { get; set; }

Stable id inside its copy, which a map layer uses to replace or remove the box.

public BoxKind Kind { get; set; }

Type: BoxKind

public Bounds Box { get; set; }
public string Material { get; set; }

For BoxKind.Panel: the name of a loaded material.

public float TileMetres { get; set; }

For BoxKind.Panel: metres one repeat of the material’s texture covers, measured in main-world coordinates so that neighbouring panels run on without a seam. 0 stretches the texture once over each face.