Table of Contents

Class BuildingConfig

Namespace
S1MAPI.Building.Config
Assembly
S1MAPI_Mono.dll

Configuration for building dimensions and style. Use presets or create custom configs for different building types.

public sealed class BuildingConfig
Inheritance
BuildingConfig
Inherited Members

Constructors

BuildingConfig()

public BuildingConfig()

Properties

CeilingThickness

Ceiling thickness in meters

public float CeilingThickness { get; set; }

Property Value

float

Center

Room center point

public Vector3 Center { get; }

Property Value

Vector3

Default

Default medium room (8m x 3m x 6m).

public static BuildingConfig Default { get; }

Property Value

BuildingConfig

Depth

Room depth in meters (Z axis)

public float Depth { get; set; }

Property Value

float

FloorThickness

Floor thickness in meters

public float FloorThickness { get; set; }

Property Value

float

Height

Room height in meters (Y axis)

public float Height { get; set; }

Property Value

float

Huge

Huge room for warehouses or showrooms (20m x 6m x 15m).

public static BuildingConfig Huge { get; }

Property Value

BuildingConfig

Large

Large room for retail or open offices (12m x 4m x 10m).

public static BuildingConfig Large { get; }

Property Value

BuildingConfig

Medium

Medium room for living spaces (8m x 3m x 6m).

public static BuildingConfig Medium { get; }

Property Value

BuildingConfig

Palette

Material and color palette

public BuildingPalette Palette { get; set; }

Property Value

BuildingPalette

Size

Room dimensions as Vector3(Width, Height, Depth)

public Vector3 Size { get; }

Property Value

Vector3

Small

Small room suitable for offices or bedrooms (5m x 3m x 4m).

public static BuildingConfig Small { get; }

Property Value

BuildingConfig

Tiny

Small room suitable for closets or bathrooms (3m x 2.4m x 3m).

public static BuildingConfig Tiny { get; }

Property Value

BuildingConfig

WallThickness

Wall thickness in meters

public float WallThickness { get; set; }

Property Value

float

Warehouse

Warehouse style (20m x 6m x 15m) with industrial palette.

public static BuildingConfig Warehouse { get; }

Property Value

BuildingConfig

Width

Room width in meters (X axis)

public float Width { get; set; }

Property Value

float

Methods

Clone()

Create a copy of this config for modification.

public BuildingConfig Clone()

Returns

BuildingConfig

WithDimensions(float, float, float)

Set dimensions and return this config for chaining.

public BuildingConfig WithDimensions(float width, float height, float depth)

Parameters

width float
height float
depth float

Returns

BuildingConfig

WithPalette(BuildingPalette)

Set palette and return this config for chaining.

public BuildingConfig WithPalette(BuildingPalette palette)

Parameters

palette BuildingPalette

Returns

BuildingConfig

WithWallThickness(float)

Set wall thickness and return this config for chaining.

public BuildingConfig WithWallThickness(float thickness)

Parameters

thickness float

Returns

BuildingConfig