Class BuildingToolItem
Base class for items that has block building functionality.
Extracted from HammerItem class. Needed to refer by type easily as tech tree item not available in core. (Same as like "is ToolItem" " is DurabilityItem", etc)
Inheritance
System.Object
BuildingToolItem
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
[CanMakeBlockForm]
public abstract class BuildingToolItem : ToolItem, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, INotifyPropertyChanged, IInteractor, IHasInteractions, IPlaceableItem, IController, IViewController, IHasUniversalID
Constructors
Declaration
protected BuildingToolItem()
Methods
Declaration
public override LocString GetNoSuitablePickupTargetFailureMessage(Inventory inventory)
Parameters
Returns
Overrides
Attempts to pick up the block at given position.
Declaration
public bool PickupBlock(Player player, Vector3i blockPos)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Attempts to pick up multiple blocks at the given positions.
Declaration
public bool PickupBlocks(Player player, BlockLayout layout)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Attempts to pick up a World Object.
Declaration
public Task<bool> PickupWorldObject(Player player, WorldObject worldObj)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Boolean> |
|
Attempts to place a layout of blocks at given position, with given rotation.
Declaration
public bool Place(Player player, BlockLayout layout, int rotation)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods