Room<'Value> Type

Represents a room, defined by a DataTable containing objects and their variants.

Record fields

Record Field Description

DataTable

Full Usage: DataTable

Field type: DataTable<'Value>
Field type: DataTable<'Value>

FloorNumber

Full Usage: FloorNumber

Field type: int
Field type: int

Length

Full Usage: Length

Field type: int
Field type: int

Width

Full Usage: Width

Field type: int
Field type: int

Constructors

Constructor Description

Room(length, width, floorNumber, dataTable)

Full Usage: Room(length, width, floorNumber, dataTable)

Parameters:
    length : int
    width : int
    floorNumber : int
    dataTable : DataTable<'Value>

Returns: Room<'Value>
length : int
width : int
floorNumber : int
dataTable : DataTable<'Value>
Returns: Room<'Value>

Instance members

Instance member Description

this.GenerateInterior

Full Usage: this.GenerateInterior

Parameters:
    maximumAmountOfObjects : int - The maximum number of objects to be placed
    placementFunction : DataTableRow<'Value> -> ObjectVariant<'Value> -> int -> int -> unit - The function responsible for placing objects on the room

Generates the interior layout of the room by placing objects on the CellGrid using a DataTable and a specified placement function.

maximumAmountOfObjects : int

The maximum number of objects to be placed

placementFunction : DataTableRow<'Value> -> ObjectVariant<'Value> -> int -> int -> unit

The function responsible for placing objects on the room