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
parentTransformParent transform for interior walls
roomSizeVector3Room dimensions (width, height, depth)
wallThicknessfloatWall thickness in meters
paletteBuildingPaletteMaterial and color palette
layerintPhysics 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
Methods
BuildInteriorWall(InteriorWallDefinition)
Build an interior wall from a definition.
public GameObject? BuildInteriorWall(InteriorWallDefinition def)
Parameters
defInteriorWallDefinitionInterior wall definition
Returns
- GameObject
The wall GameObject, or null if validation fails