Show / Hide Table of Contents

Class GarbageInventoryBlock

Inheritance
System.Object
GarbageInventoryBlock
GarbageBagBlock
Implements
IPickupable
IDestroyAwareBlock
Namespace: Eco.Gameplay.Objects
Assembly: Eco.Gameplay.dll
Syntax
public abstract class GarbageInventoryBlock : Block, IPickupable, IDestroyAwareBlock

Constructors

GarbageInventoryBlock()

Declaration
protected GarbageInventoryBlock()

GarbageInventoryBlock(DecayingInventory)

Declaration
protected GarbageInventoryBlock(DecayingInventory inventory)
Parameters
Type Name Description
DecayingInventory inventory

Properties

InteractDistance

Declaration
public float InteractDistance { get; }
Property Value
Type Description
System.Single

Inventories

Declaration
public IEnumerable<Inventory> Inventories { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Inventory>

Inventory

Declaration
public Inventory Inventory { get; }
Property Value
Type Description
Inventory

Position

Declaration
public Vector3i Position { get; protected set; }
Property Value
Type Description
Vector3i

Methods

Destroyed(Vector3i, Block)

Declaration
public void Destroyed(Vector3i worldPosition, Block replacement)
Parameters
Type Name Description
Vector3i worldPosition
Block replacement

Pickup(Player, InteractionTarget, Inventory, INetObject)

Declaration
public Task<bool> Pickup(Player player, InteractionTarget target, Inventory targetInv, INetObject toolUsed)
Parameters
Type Name Description
Player player
InteractionTarget target
Inventory targetInv
INetObject toolUsed
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Implements

IPickupable
IDestroyAwareBlock

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