Class BoatMooragePostComponent
Component used by boat moorage posts. Allows attaching and detaching boats. Finds boats nearby player that can be attached and detached, filtering allowed boats by player authorization.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Namespace: Eco.Gameplay.Components
Assembly: Eco.Gameplay.dll
Syntax
public class BoatMooragePostComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions
Constructors
BoatMooragePostComponent()
Declaration
public BoatMooragePostComponent()
Properties
FindBoatRadius
Declaration
public float FindBoatRadius { get; }
Property Value
Type | Description |
---|---|
System.Single |
MaxAttachedBoats
Declaration
public int MaxAttachedBoats { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxBoatSize
Declaration
public BoatComponent.BoatSize MaxBoatSize { get; set; }
Property Value
Type | Description |
---|---|
BoatComponent.BoatSize |
Methods
Destroy()
When moorage post is destroyed, we need to detach any attached boats.
Declaration
public override void Destroy()
Overrides
ForceUnlockBoat(BoatComponent)
Actually handles unlocking a boat from the moorage post. Can't be directly called from players. It's called on Eco.Gameplay.Components.BoatMooragePostComponent.UnlockBoat(Eco.Gameplay.Players.Player,Eco.Gameplay.Components.BoatComponent) after all safety checks are done. It's also called when the moorage post is destroyed or when a boat is destroyed.
Declaration
public void ForceUnlockBoat(BoatComponent boat)
Parameters
Type | Name | Description |
---|---|---|
BoatComponent | boat |
Initialize()
Declaration
public override void Initialize()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged