Class AnimalTrapComponent
Inheritance
System.Object
AnimalTrapComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class AnimalTrapComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions
Constructors
AnimalTrapComponent()
Declaration
public AnimalTrapComponent()
Properties
Enabled
Declaration
public override bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
EnabledTest
Declaration
public Func<Vector3i, bool> EnabledTest { get; set; }
Property Value
Type |
Description |
System.Func<Vector3i, System.Boolean> |
|
FailStatusMessage
Declaration
public LocString FailStatusMessage { get; set; }
Property Value
Storage
Declaration
public PublicStorageComponent Storage { get; }
Property Value
TargetLayers
Declaration
public List<AnimalLayer> TargetLayers { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<AnimalLayer> |
|
Methods
Initialize()
Declaration
public override void Initialize()
Overrides
Initialize(List<String>)
Declaration
public void Initialize(List<string> layers)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.String> |
layers |
|
LayerTick()
Declaration
OnPickup(Player)
Declaration
public override void OnPickup(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Overrides
UpdateEnabled()
Declaration
public void UpdateEnabled()
UpdateTrappingStatus()
Declaration
public void UpdateTrappingStatus()
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods