Show / Hide Table of Contents

Class ToolItem

Inheritance
System.Object
ItemLinkable
ItemRepresentation
Item
DurabilityItem
RepairableItem
ToolItem
BuildingToolItem
DetonatorBaseItem
HandsItem
MeteorShardItem
WeaponItem
ClaimToolBaseItem
Implements
IItem
ILinkableParameterized<LinkConfig>
ILinkable
IHasIcon
System.ComponentModel.INotifyPropertyChanged
IInteractor
IHasInteractions
IPlaceableItem
IController
IViewController
IHasUniversalID
Inherited Members
RepairableItem.RepresentativeHash()
RepairableItem.MaterialRepairsItem(Type)
RepairableItem.DescribeRepairCost(User, Boolean)
RepairableItem.RepairCost(User, Single)
RepairableItem.GetQualityGroup()
RepairableItem.Clone()
RepairableItem.GetDurability()
RepairableItem.SetDurability(Single)
RepairableItem.DurabilityPercent
RepairableItem.Durability
RepairableItem.DefaultMinRequiredIntegrityInTradeOffers
RepairableItem.IntegrityAmount
RepairableItem.IntegrityPercent
RepairableItem.RepairPenaltyToDurability
RepairableItem.RepairItem
RepairableItem.RepairItems
RepairableItem.RepairTag
RepairableItem.CanBeRepaired
RepairableItem.FullRepairAmount
RepairableItem.SkillReqs
RepairableItem.PercentBrokenFromOriginal
DurabilityItem.RepresentsItem(Item)
DurabilityItem.Merge(Item, Int32, Int32, Boolean)
DurabilityItem.OriginalMaxDurability
DurabilityItem.Decays
DurabilityItem.DisplayDurability
DurabilityItem.Broken
DurabilityItem.StackingHash
DurabilityItem.DefaultMinRequiredDurabilityInTradeOffers
DurabilityItem.PropertyChanged
Item.ItemsInitialized
Item.RepresentsItemType(Type)
Item.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
Item.ClearMaxStackSizeCache()
Item.GetMaxStackSize(Type)
Item.Destroy(Int32)
Item.ToString()
Item.UnsubscribeUnique()
Item.OnUsed(Player, ItemStack)
Item.OnLeftClicked(Player, ItemStack)
Item.OnSelected(Player)
Item.OnDeselected(Player)
Item.Get(IRepresentsItem)
Item.Get(Int32)
Item.Get<T>()
Item.Get(Type)
Item.Get(String)
Item.ShowName(Type, Single)
Item.ShowName(Type, Int32)
Item.ShowName<T>(Int32)
Item.NameAndNum(Type, Int32)
Item.GetSkillbookForSkillType(Type)
Item.CreatingItem(Type)
Item.GetCreatedObj(Type)
Item.TypeIsUnique(Type)
Item.GetNonUniqueOrClone(Int32)
Item.GetNonUniqueOrClone(Type)
Item.NameAndNum(Type, Single)
Item.Initialize()
Item.GetItemByString(User, String)
Item.GetID(Item)
Item.GetID(Type)
Item.HasID(Type)
Item.GetID<T>()
Item.GetType(Int32)
Item.GetType(String)
Item.Create<T>(Int32)
Item.Create(Type, Int32)
Item.Create<T>()
Item.Create(Type)
Item.IconName
Item.IconComment
Item.TypeID
Item.Type
Item.DisplayName
Item.Name
Item.IsUnique
Item.Fuel
Item.IsFuel
Item.WeightWithoutModifiers
Item.Weight
Item.HasWeight
Item.IsCarried
Item.IgnoreAuth
Item.Yield
Item.HasYield
Item.HasCrop
Item.CanBeCurrency
Item.MakesRoads
Item.Compostable
Item.ResourcePile
Item.CanAirInteraction
Item.Category
Item.Hidden
Item.Group
Item.MaxStackSize
Item.IsWasteProduct
Item.GetDescription
Item.HandOrigin
Item.IsTool
Item.CustomHighlight
Item.AllItemsIncludingHidden
Item.AllItemsExceptHidden
Item.RandomItem
ItemRepresentation.RepresentsItemType(Item)
ItemLinkable.ShowName(Single)
ItemLinkable.ShowName(Int32)
ItemLinkable.UILinkAndNumber(Single)
ItemLinkable.UILinkAndNumber(Int32)
ItemLinkable.UILinkAndNumber(Int32, String)
ItemLinkable.UILinkAndNumberAndTier(Int32, Int32)
ItemLinkable.UILinkAndNumberAndTierPrepend(Int32, Int32, String)
ItemLinkable.UILinkAndNumberNoText(Int32)
ItemLinkable.UILinkContent()
ItemLinkable.UILinkContent(Boolean)
ItemLinkable.NameAndNum(Int32)
ItemLinkable.UILinkAndStyledNumber(Int32)
ItemLinkable.UILinkContent(LocString)
ItemLinkable.UILinkNoNumber(Int32)
ItemLinkable.UILinkContent(LinkConfig)
ItemLinkable.ItemIconUILink(LocString)
ItemLinkable.DisplayNamePlural
ItemLinkable.MarkedUpName
ItemLinkable.ControllerID
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
[ItemGroup("Tools")]
[MaxStackSize(1)]
public abstract class ToolItem : RepairableItem, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, INotifyPropertyChanged, IInteractor, IHasInteractions, IPlaceableItem, IController, IViewController, IHasUniversalID

Constructors

ToolItem()

Declaration
protected ToolItem()

Properties

BrokenDescription

Declaration
public override LocString BrokenDescription { get; }
Property Value
Type Description
LocString
Overrides
DurabilityItem.BrokenDescription

CaloriesBurn

Declaration
public virtual IDynamicValue CaloriesBurn { get; }
Property Value
Type Description
IDynamicValue

CanBeHeld

Declaration
public override bool CanBeHeld { get; }
Property Value
Type Description
System.Boolean
Overrides
Item.CanBeHeld

CanBeUsedWithEmotes

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

Damage

Declaration
public virtual IDynamicValue Damage { get; }
Property Value
Type Description
IDynamicValue

DescribeBlockAction

Declaration
public virtual GameActionDescription DescribeBlockAction { get; }
Property Value
Type Description
GameActionDescription

DurabilityBurn

Declaration
public virtual IDynamicValue DurabilityBurn { get; }
Property Value
Type Description
IDynamicValue

ExperienceRate

Declaration
public virtual IDynamicValue ExperienceRate { get; }
Property Value
Type Description
IDynamicValue

ExperienceSkill

Declaration
public virtual Type ExperienceSkill { get; }
Property Value
Type Description
System.Type

IsStackable

Declaration
public override bool IsStackable { get; }
Property Value
Type Description
System.Boolean
Overrides
DurabilityItem.IsStackable

MaxTake

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

PerkDamage

Declaration
public virtual IDynamicValue PerkDamage { get; }
Property Value
Type Description
IDynamicValue

SkilledRepairCost

Declaration
public override IDynamicValue SkilledRepairCost { get; }
Property Value
Type Description
IDynamicValue
Overrides
RepairableItem.SkilledRepairCost

Tier

Declaration
public virtual IDynamicValue Tier { get; }
Property Value
Type Description
IDynamicValue

Methods

AddExperience(User, Single, GameActionDescription)

Declaration
public void AddExperience(User user, float multiplier, GameActionDescription desc)
Parameters
Type Name Description
User user
System.Single multiplier
GameActionDescription desc

AddExperience(User, Single, LocString)

Declaration
public void AddExperience(User user, float multiplier, LocString desc)
Parameters
Type Name Description
User user
System.Single multiplier
LocString desc

BurnCaloriesNow(Player, Single)

Declaration
protected void BurnCaloriesNow(Player player, float calorieMultiplier = 1F)
Parameters
Type Name Description
Player player
System.Single calorieMultiplier

CanPickUpItemStack(ItemStack)

Declaration
public virtual bool CanPickUpItemStack(ItemStack stack)
Parameters
Type Name Description
ItemStack stack
Returns
Type Description
System.Boolean

CanStack(Item)

Declaration
public override bool CanStack(Item other)
Parameters
Type Name Description
Item other
Returns
Type Description
System.Boolean
Overrides
RepairableItem.CanStack(Item)

CreateCalorieValue(Single, Type, Type)

Declaration
protected static SkillModifiedValue CreateCalorieValue(float startValue, Type skillType, Type beneficiary)
Parameters
Type Name Description
System.Single startValue
System.Type skillType
System.Type beneficiary
Returns
Type Description
SkillModifiedValue

CreateDamageValue(Single, Type, Type)

Declaration
protected static SkillModifiedValue CreateDamageValue(float startValue, Type skillType, Type beneficiary)
Parameters
Type Name Description
System.Single startValue
System.Type skillType
System.Type beneficiary
Returns
Type Description
SkillModifiedValue

CreateSkillModifiedValue(Single, ModificationStrategy, Type, Type, LocString, DynamicValueType)

Declaration
protected static SkillModifiedValue CreateSkillModifiedValue(float startValue, ModificationStrategy strategy, Type skillType, Type beneficiary, LocString benefitText, DynamicValueType valueType)
Parameters
Type Name Description
System.Single startValue
ModificationStrategy strategy
System.Type skillType
System.Type beneficiary
LocString benefitText
DynamicValueType valueType
Returns
Type Description
SkillModifiedValue

GetItemsUserCanTake(WorldObject, Item, Boolean)

Declaration
public List<Item> GetItemsUserCanTake(WorldObject worldObject, Item carriedItem, bool takeAll = false)
Parameters
Type Name Description
WorldObject worldObject
Item carriedItem
System.Boolean takeAll
Returns
Type Description
System.Collections.Generic.List<Item>

GetNoSuitablePickupTargetFailureMessage(Inventory)

Declaration
public virtual LocString GetNoSuitablePickupTargetFailureMessage(Inventory inventory)
Parameters
Type Name Description
Inventory inventory
Returns
Type Description
LocString

GetPreferredInventoryToPullFrom(WorldObject)

Declaration
protected Inventory GetPreferredInventoryToPullFrom(WorldObject worldObject)
Parameters
Type Name Description
WorldObject worldObject
Returns
Type Description
Inventory

IsValidForInteraction(Item)

Declaration
public virtual bool IsValidForInteraction(Item item)
Parameters
Type Name Description
Item item
Returns
Type Description
System.Boolean

NeededCalories(Player, Single)

Declaration
public float NeededCalories(Player player, float calorieMultiplier = 1F)
Parameters
Type Name Description
Player player
System.Single calorieMultiplier
Returns
Type Description
System.Single

UseDurability(Single, Player, Boolean)

Declaration
public override void UseDurability(float amountToConsume, Player player, bool notify = true)
Parameters
Type Name Description
System.Single amountToConsume
Player player
System.Boolean notify
Overrides
RepairableItem.UseDurability(Single, Player, Boolean)

UseToolRPC(Player)

Declaration
public void UseToolRPC(Player p)
Parameters
Type Name Description
Player p

Implements

IItem
ILinkableParameterized<T>
ILinkable
IHasIcon
System.ComponentModel.INotifyPropertyChanged
IInteractor
IHasInteractions
IPlaceableItem
IController
IViewController
IHasUniversalID

Extension Methods

MultiblockContextHelpers.CreateMultiblockContext(ToolItem, Player, Boolean, Vector3i, IEnumerable<Type>, Func<GameAction>)
MultiblockContextHelpers.CreateMultiblockContext(ToolItem, Player, Boolean, IEnumerable<Vector3i>, IEnumerable<Type>, Func<GameAction>)
MultiblockContextHelpers.TryCreateMultiblockContext(ToolItem, out MultiblockActionContext, InteractionTarget, Player, Boolean, IEnumerable<Type>, Func<GameAction>, IEnumerable<String>, IEnumerable<String>, String[])
MultiblockContextHelpers.TryCreateMultiblockContext(ToolItem, out MultiblockActionContext, InteractionTarget, Player, IEnumerable<Tag>, Boolean, IEnumerable<Type>, Func<GameAction>, IEnumerable<Tag>, IEnumerable<Tag>)
ItemStackExtensions.NameAndNum(ItemRepresentation, Int32)
ItemUtils.CanItemExistInInventories(Item)
ItemUtils.CloneIfNeeded(Item)
TagUtils.Tags(Item)
TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
MarketplaceExtensions.IsPaidItem(Item)
TypeTooltipExtensions.UILinkGeneric(Object)
DurabilityItemTooltipLibrary.TooltipDurability(RepairableItem, User)
EconomyTooltipLibrary.BuyItTooltip(Item, User, TooltipOrigin)
EconomyTooltipLibrary.SellItTooltip(Item, User, TooltipOrigin)
ILinkableTooltipLibrary.ItemLinkClicked(Item, TooltipOrigin)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾