Class SwitchComponent
Inheritance
System.Object
SwitchComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class SwitchComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, ISwitchable, IEnabledIndicator
Constructors
SwitchComponent()
Declaration
Properties
On
Declaration
public bool On { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
OnChanged
Declaration
public ThreadSafeAction<bool> OnChanged { get; set; }
Property Value
OutputWire
Declaration
public WireOutput OutputWire { get; }
Property Value
Methods
Destroy()
Declaration
public override void Destroy()
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
Switch(Player)
Declaration
protected Result Switch(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Returns
Switch(Player, InteractionTriggerInfo, InteractionTarget)
Declaration
[Interaction]
public void Switch(Player player, InteractionTriggerInfo trigger, InteractionTarget target)
Parameters
Explicit Interface Implementations
IEnabledIndicator.IndicatorAttachment
Declaration
Attachment IEnabledIndicator.IndicatorAttachment { get; set; }
Returns
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods