Table of Contents

Class LockableAnimatedDoor

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 LockableAnimatedDoor : AnimatedDoor
Inheritance
LockableAnimatedDoor
Inherited Members
Extension Methods

Constructors

LockableAnimatedDoor(OpeningType, int[])

Creates a new opening from the given opening type and color

public LockableAnimatedDoor(OpeningType type, int[] colors)

Parameters

type OpeningType

The opening type

colors int[]

The indices of the colors to use

Fields

Lock

The lock type that this door is locked with, or 0 if the door is not locked

[DataMember]
public LockType Lock

Field Value

LockType

Methods

CanWalkThrough(Map, WallLike, MapObject)

Returns whether a PersonLike is able to walk through a WallLike that has this opening. This returns true for WalkableOpening and LockableAnimatedDoor 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 LockableAnimatedDoor Construct(OpeningType type, int[] colors, WallLike wall)

Parameters

type OpeningType

The type.

colors int[]

The colors.

wall WallLike

The wall.

Returns

LockableAnimatedDoor

The constructed door.