Class LockableAnimatedDoor
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
OpeningTypeThe 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
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
Returns
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
OpeningTypeThe type.
colors
int[]The colors.
wall
WallLikeThe wall.
Returns
- LockableAnimatedDoor
The constructed door.