Show / Hide Table of Contents

Class SettlementFoundationItem<T>

Base class for items that claim a settlement. Contains functions for defining how property can be claimed without overlapping with existing settlements or other plots. Manages the display of that available land on the client.

Inheritance
System.Object
ItemLinkable
ItemRepresentation
Item
DurabilityItem
WorldObjectItem
WorldObjectItem<T>
SettlementFoundationItem<T>
Implements
IItem
ILinkableParameterized<LinkConfig>
ILinkable
IHasIcon
System.ComponentModel.INotifyPropertyChanged
IPlaceableItem
IController
IViewController
IHasUniversalID
Inherited Members
WorldObjectItem<T>.WorldObjectType
WorldObjectItem.AllowWaterPlacement
WorldObjectItem.Initialize()
WorldObjectItem.GetCreatingItemTemplateFromType(Type)
WorldObjectItem.MakeItemFromWorldObjectType(Type)
WorldObjectItem.GetAllObjectsTooltip(Player)
WorldObjectItem.GetBlockTypesForDirection(Vector3i)
WorldObjectItem.GetDurability()
WorldObjectItem.SetDurability(Single)
WorldObjectItem.Place(Player, Vector3, Quaternion, Int32)
WorldObjectItem.Move(Player, Vector3i, Quaternion, INetObject)
WorldObjectItem.GetMoveInfo(Player, INetObject)
WorldObjectItem.OnPreWorldObjectPlaced(WorldObject)
WorldObjectItem.OnPostWorldObjectPlaced(WorldObject)
WorldObjectItem.OnPickup(WorldObject)
WorldObjectItem.IsStackable
WorldObjectItem.HomeValue
WorldObjectItem.ShouldCreate
WorldObjectItem.ShowLocationsInWorld
WorldObjectItem.Durability
WorldObjectItem.OccupancyContext
WorldObjectItem.GetOccupancyContext
WorldObjectItem.Blockers
DurabilityItem.GetQualityGroup()
DurabilityItem.CanStack(Item)
DurabilityItem.RepresentsItem(Item)
DurabilityItem.RepresentativeHash()
DurabilityItem.Clone()
DurabilityItem.Merge(Item, Int32, Int32, Boolean)
DurabilityItem.OriginalMaxDurability
DurabilityItem.Decays
DurabilityItem.DurabilityPercent
DurabilityItem.PercentBrokenFromOriginal
DurabilityItem.DisplayDurability
DurabilityItem.Broken
DurabilityItem.StackingHash
DurabilityItem.BrokenDescription
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.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.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.CanBeHeld
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.Settlements
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public abstract class SettlementFoundationItem<T> : WorldObjectItem<T>, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, INotifyPropertyChanged, IPlaceableItem, IController, IViewController, IHasUniversalID where T : WorldObject
Type Parameters
Name Description
T

Constructors

SettlementFoundationItem()

Declaration
protected SettlementFoundationItem()

Properties

SettlementType

Declaration
protected abstract SettlementType SettlementType { get; }
Property Value
Type Description
SettlementType

Methods

CanMove(Player, Vector3i, Quaternion, INetObject)

This will check whether this item can be moved by the specified player to the specified position or not. If moving the settlement foundation to the specified position would lead to some citizen or children changes, a confirmation popup will be shown up to the player.

Declaration
protected override Task<bool> CanMove(Player player, Vector3i pos, Quaternion rotation, INetObject woNetObject)
Parameters
Type Name Description
Player player
Vector3i pos
Quaternion rotation
INetObject woNetObject
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
Overrides
WorldObjectItem.CanMove(Player, Vector3i, Quaternion, INetObject)

CanPlaceObject(Player, Vector3, Quaternion)

Declaration
public override Task<bool> CanPlaceObject(Player player, Vector3 worldPos, Quaternion rotation)
Parameters
Type Name Description
Player player
System.Numerics.Vector3 worldPos
Quaternion rotation
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
Overrides
WorldObjectItem.CanPlaceObject(Player, Vector3, Quaternion)

OnDeselected(Player)

Declaration
public override void OnDeselected(Player player)
Parameters
Type Name Description
Player player
Overrides
Item.OnDeselected(Player)

OnSelected(Player)

Declaration
public override void OnSelected(Player player)
Parameters
Type Name Description
Player player
Overrides
Item.OnSelected(Player)

PlacingObject(GameActionPack, Player, ItemStack, Vector3, Quaternion)

Declaration
public override Task PlacingObject(GameActionPack pack, Player player, ItemStack containingStack, Vector3 pos, Quaternion rotation)
Parameters
Type Name Description
GameActionPack pack
Player player
ItemStack containingStack
System.Numerics.Vector3 pos
Quaternion rotation
Returns
Type Description
System.Threading.Tasks.Task
Overrides
WorldObjectItem.PlacingObject(GameActionPack, Player, ItemStack, Vector3, Quaternion)

Implements

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

Extension Methods

ItemStackExtensions.NameAndNum(ItemRepresentation, Int32)
ItemUtils.CanItemExistInInventories(Item)
ItemUtils.CloneIfNeeded(Item)
TagUtils.Tags(Item)
TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
WorldObjectUtil.RequiresComponent<T>(WorldObjectItem)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
MarketplaceExtensions.IsPaidItem(Item)
TypeTooltipExtensions.UILinkGeneric(Object)
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
☀
☾