Show / Hide Table of Contents

Class MountManager

Handles the player's mounting and dismounting.

Use MountEvent and DismountEvent to attach listeners for when the player mounts a vehicle.

Inheritance
System.Object
MountManager
Namespace: Eco.Gameplay.Players
Assembly: Eco.Gameplay.dll
Syntax
public class MountManager : Object

Constructors

MountManager(MovementHackDetector, Action<Nullable<Single>>)

Declaration
public MountManager(MovementHackDetector movementHackDetector, Action<Nullable<float>> setMaxAllowedInventory)
Parameters
Type Name Description
MovementHackDetector movementHackDetector
System.Action<System.Nullable<System.Single>> setMaxAllowedInventory

Properties

IsMounted

Declaration
public bool IsMounted { get; }
Property Value
Type Description
System.Boolean

Mount

Declaration
public MountComponent Mount { get; }
Property Value
Type Description
MountComponent

Methods

OnDismount(MountComponent)

Fired when player has dismounted a vehicle.

Declaration
public void OnDismount(MountComponent mountComponent)
Parameters
Type Name Description
MountComponent mountComponent

OnMount(MountComponent)

Fired when player has mounted a vehicle.

Declaration
public void OnMount(MountComponent mountComponent)
Parameters
Type Name Description
MountComponent mountComponent

Events

DismountEvent

Declaration
public event Action<MountComponent> DismountEvent
Event Type
Type Description
System.Action<MountComponent>

MountEvent

Declaration
public event Action<MountComponent> MountEvent
Event Type
Type Description
System.Action<MountComponent>

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
☀
☾