Show / Hide Table of Contents

Class VehicleToolComponent

Inheritance
System.Object
WorldObjectComponent
StorageComponent
InteractableStorage
VehicleToolComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IInventoryWorldObjectComponent
IPermanentDestroyHandler
ICanOverrideAuth
IHasEnvVars
INetObject
Inherited Members
InteractableStorage.Initialize()
InteractableStorage.TakeItem(Player, InteractionTriggerInfo, InteractionTarget)
InteractableStorage.PutItem(Player, InteractionTriggerInfo, InteractionTarget)
InteractableStorage.HoldingTool(User)
InteractableStorage.CanTake(User)
InteractableStorage.CanPut(User)
InteractableStorage.Take(User, InteractionTarget, Boolean)
InteractableStorage.GetItemsUserCanTake(WorldObject, User, Item, Item, Boolean, Func<ItemStack, Item, Boolean>)
InteractableStorage.CanTakeAll
StorageComponent.PostInitialize()
StorageComponent.Destroy()
StorageComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
StorageComponent.FindItemCantContain(IEnumerable<ItemStack>)
StorageComponent.ShouldOverrideAuth(IAlias, IOwned, GameAction)
StorageComponent.ConsolidateInventory(User)
StorageComponent.IconName
StorageComponent.HiddenFromUI
StorageComponent.Inventories
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.OnCreate()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components
Assembly: Eco.Gameplay.dll
Syntax
public class VehicleToolComponent : InteractableStorage, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler, ICanOverrideAuth, IHasEnvVars, INetObject

Constructors

VehicleToolComponent()

Declaration
public VehicleToolComponent()

Fields

OnBlockDug

Declaration
public static ThreadSafeAction<User, int> OnBlockDug
Field Value
Type Description
ThreadSafeAction<User, System.Int32>

ScoopEvent

Declaration
public Action<INetObject> ScoopEvent
Field Value
Type Description
System.Action<INetObject>

Properties

Active

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

Availability

Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Type Description
WorldObjectComponentClientAvailability
Overrides
WorldObjectComponent.Availability

Diggable

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

ID

Declaration
public int ID { get; }
Property Value
Type Description
System.Int32

Inventory

Declaration
public override Inventory Inventory { get; }
Property Value
Type Description
Inventory
Overrides
StorageComponent.Inventory

Minable

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

NetObjectCreationRealtime

Declaration
public double NetObjectCreationRealtime { get; set; }
Property Value
Type Description
System.Double

OverrideStackSize

Declaration
public int OverrideStackSize { get; set; }
Property Value
Type Description
System.Int32

ToolAngles

Declaration
public float[] ToolAngles { get; }
Property Value
Type Description
System.Single[]

ToolControlOnMount

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

ToolInventory

Declaration
public SelectionInventory ToolInventory { get; set; }
Property Value
Type Description
SelectionInventory

ToolItem

Declaration
public VehicleToolItem ToolItem { get; }
Property Value
Type Description
VehicleToolItem

Methods

Dump(Player, Vector3i)

Declaration
public void Dump(Player player, Vector3i pos)
Parameters
Type Name Description
Player player
Vector3i pos

Initialize(Int32, Int32, Single, Single, Single, Boolean, InventoryRestriction[])

Declaration
public void Initialize(int numSlots, int maxWeight, float joulesPerDigBlock, float joulesPerMineBlock, float joulesPerBuildBlock = 0F, bool toolOnMount = false, params InventoryRestriction[] restrictions)
Parameters
Type Name Description
System.Int32 numSlots
System.Int32 maxWeight
System.Single joulesPerDigBlock
System.Single joulesPerMineBlock
System.Single joulesPerBuildBlock
System.Boolean toolOnMount
InventoryRestriction[] restrictions

IsNotRelevant(INetObjectViewer)

Declaration
public bool IsNotRelevant(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean

IsRelevant(INetObjectViewer)

Declaration
public bool IsRelevant(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean

IsUpdated(INetObjectViewer)

Declaration
public bool IsUpdated(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean

ReceiveInitialState(BSONObject)

Declaration
public void ReceiveInitialState(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj

ReceiveUpdate(BSONObject)

Declaration
public void ReceiveUpdate(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj

Scoop(List<Int32>)

Declaration
public void Scoop(List<int> targetObjects)
Parameters
Type Name Description
System.Collections.Generic.List<System.Int32> targetObjects

SendInitialState(BSONObject, INetObjectViewer)

Declaration
public void SendInitialState(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer

SendUpdate(BSONObject, INetObjectViewer)

Declaration
public void SendUpdate(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer

WorldObjectInteract(Player, INetObject, InteractionTrigger)

Declaration
public void WorldObjectInteract(Player player, INetObject obj, InteractionTrigger method)
Parameters
Type Name Description
Player player
INetObject obj
InteractionTrigger method

Implements

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions
IInventoryWorldObjectComponent
IPermanentDestroyHandler
ICanOverrideAuth
IHasEnvVars
INetObject

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