Show / Hide Table of Contents

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.

Inheritance
System.Object
WorldObjectComponent
BoatMooragePostComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.PostInitialize()
WorldObjectComponent.OnCreate()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
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
WorldObjectComponent.Destroy()

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
WorldObjectComponent.Initialize()

Implements

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾