Table of Contents

Class Door

Namespace
TinyLife.World
Assembly
Tiny Life.dll

An opening is some sort of extrusion in a WallLike, like a window or a door. Openings are created from their underlying OpeningType.

public class Door : Opening
Inheritance
Door
Derived
Inherited Members
Extension Methods

Constructors

Door(OpeningType, int[])

Creates a new opening from the given opening type and color

public Door(OpeningType type, int[] colors)

Parameters

type OpeningType

The opening type

colors int[]

The indices of the colors to use

Methods

CanPlaceOn(FurnitureType)

Whether the given FurnitureType can be attached to this opening. By default, this method returns true when the furniture has the CanCoverWindow category.

public override bool CanPlaceOn(FurnitureType type)

Parameters

type FurnitureType

Returns

bool

Whether the opening is a window

CanWalkThrough(Map, WallLike, MapObject)

Returns whether a Person is able to walk through a WallLike that has this opening. This returns true for Door and SwingingDoor and false for Opening.

public override bool CanWalkThrough(Map map, WallLike wall, MapObject obj)

Parameters

map Map
wall WallLike
obj MapObject

Returns

bool

Construct(OpeningType, int[], WallLike)

Constructs a new door with the given settings. This is a helper method that can be used through a method group when constructing a new OpeningType.

public static Door Construct(OpeningType type, int[] colors, WallLike wall)

Parameters

type OpeningType

The type.

colors int[]

The colors.

wall WallLike

The wall.

Returns

Door

The constructed door.