Class DoorComponent
Component containing necessary logic for doors. Enables the Open/Close interactions.
Inheritance
System.Object
DoorComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class DoorComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IHasEnvVars
Constructors
DoorComponent()
Declaration
Properties
IsOpen
Declaration
[EnvVar]
public bool IsOpen { get; }
Property Value
Type |
Description |
System.Boolean |
|
OpensOutwards
Declaration
public bool OpensOutwards { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
ForceSetOpen(Boolean)
Declaration
public void ForceSetOpen(bool open)
Parameters
Type |
Name |
Description |
System.Boolean |
open |
|
OnCreate()
Declaration
public override void OnCreate()
Overrides
SetOpen(User, Boolean)
Declaration
public void SetOpen(User user, bool open)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Boolean |
open |
|
Toggle(Player, InteractionTriggerInfo, InteractionTarget)
Declaration
[Interaction]
[Interaction]
public void Toggle(Player player, InteractionTriggerInfo trigger, InteractionTarget target)
Parameters
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods