Table of Contents

Class InteriorWallBuilder

Namespace
S1MAPI.Building.Structural
Assembly
S1MAPI_Mono.dll

Builds interior walls with optional door openings. Tracks doorway positions for future NavMesh link generation.

public sealed class InteriorWallBuilder
Inheritance
InteriorWallBuilder
Inherited Members

Constructors

InteriorWallBuilder(Transform, Vector3, float, BuildingPalette, int)

Create a new interior wall builder.

public InteriorWallBuilder(Transform parent, Vector3 roomSize, float wallThickness, BuildingPalette palette, int layer = -1)

Parameters

parent Transform

Parent transform for interior walls

roomSize Vector3

Room dimensions (width, height, depth)

wallThickness float

Wall thickness in meters

palette BuildingPalette

Material and color palette

layer int

Physics layer for interior wall GameObjects. -1 (default) leaves them on the default layer.

Properties

Doorways

Recorded doorway positions from all interior walls built so far.

public IReadOnlyList<DoorwayInfo> Doorways { get; }

Property Value

IReadOnlyList<DoorwayInfo>

Methods

BuildInteriorWall(InteriorWallDefinition)

Build an interior wall from a definition.

public GameObject? BuildInteriorWall(InteriorWallDefinition def)

Parameters

def InteriorWallDefinition

Interior wall definition

Returns

GameObject

The wall GameObject, or null if validation fails