Class BreakableDoor
Represents Interactables.Interobjects.BreakableDoor.
public class BreakableDoor : BasicDoor, IWrapper<DoorVariant>, IWorldSpace, IPosition, IRotation, IDamageableDoor, INonInteractableDoor
- Inheritance
-
BreakableDoor
- Implements
-
IWrapper<DoorVariant>
- Inherited Members
- Extension Methods
Properties
Base
Gets the base Interactables.Interobjects.BreakableDoor.
public BreakableDoor Base { get; }
Property Value
- BreakableDoor
BrokenDoorPrefab
Gets the prefab of broken door.
public BrokenDoor BrokenDoorPrefab { get; }
Property Value
- BrokenDoor
Health
Gets or sets remaining health of the door.
public float Health { get; set; }
Property Value
IgnoreLockdowns
Gets or sets a value indicating whether door should ignore lockdowns.
public bool IgnoreLockdowns { get; set; }
Property Value
IgnoreRemoteAdmin
Gets or sets a value indicating whether door should ignore RA requests.
public bool IgnoreRemoteAdmin { get; set; }
Property Value
IgnoredDamage
Gets or sets damage types which will be ignored.
public DoorDamageType IgnoredDamage { get; set; }
Property Value
- DoorDamageType
IsBreakable
Gets a value indicating whether this door is breakable.
public bool IsBreakable { get; }
Property Value
IsDestroyed
Gets or sets a value indicating whether door is destroyed.
public bool IsDestroyed { get; set; }
Property Value
MaxHealth
Gets or sets max health of the door.
public float MaxHealth { get; set; }
Property Value
Methods
Break(DoorDamageType)
Breaks the specified door. No effect if the door cannot be broken, or if it is already broken.
public bool Break(DoorDamageType type = DoorDamageType.ServerCommand)
Parameters
type
DoorDamageTypeThe Interactables.Interobjects.DoorUtils.DoorDamageType to apply to the door.
Returns
- bool
true if the door was broken, false if it was unable to be broken, or was already broken before.
Damage(float, DoorDamageType)
Damages the door.
public bool Damage(float amount, DoorDamageType damageType = DoorDamageType.ServerCommand)
Parameters
amount
floatAmount to be dealt.
damageType
DoorDamageTypeDamage type. Some types can be ignored according to IgnoredDamage.
Returns
Repair()
Repair the door.
public void Repair()
ToString()
Returns the Door in a human-readable format.
public override string ToString()
Returns
- string
A string containing Door-related data.