Table of Contents

Class FurnitureBuilder

Namespace
S1MAPI.Building.Interior
Assembly
S1MAPI_Mono.dll

Creates procedural furniture pieces. Extracted from SemanticBuildingBuilder for SRP compliance.

public sealed class FurnitureBuilder
Inheritance
FurnitureBuilder
Inherited Members

Constructors

FurnitureBuilder(Transform, BuildingPalette)

Create a new furniture builder.

public FurnitureBuilder(Transform parent, BuildingPalette palette)

Parameters

parent Transform

Parent transform for furniture

palette BuildingPalette

Material and color palette

Methods

Create(FurnitureType, Vector3, Quaternion, Color?)

Create a furniture piece at the specified position.

public GameObject Create(FurnitureType type, Vector3 position, Quaternion rotation, Color? color = null)

Parameters

type FurnitureType

Type of furniture to create

position Vector3

Local position

rotation Quaternion

Local rotation

color Color?

Optional color override (uses palette accent if null)

Returns

GameObject

The created furniture GameObject

GetFootprint(FurnitureType)

Get the approximate footprint of a furniture piece for layout calculations.

public static Vector3 GetFootprint(FurnitureType type)

Parameters

type FurnitureType

Type of furniture

Returns

Vector3

Approximate size (width, height, depth)