Show / Hide Table of Contents

Class SettlementClaimStakeComponent

A component for claim stakes that can specify a settlement as their parent. Not used for settlements being parented to other settlements.

Inheritance
System.Object
WorldObjectComponent
SettlementClaimStakeComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
System.ComponentModel.INotifyPropertyChanged
IClaimStakeComponent
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.PostInitialize()
WorldObjectComponent.Destroy()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Settlements.Components
Assembly: Eco.Gameplay.dll
Syntax
public class SettlementClaimStakeComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, INotifyPropertyChanged, IClaimStakeComponent

Constructors

SettlementClaimStakeComponent()

Declaration
public SettlementClaimStakeComponent()

Fields

SettlementNameChangedEvent

Declaration
public static ThreadSafeAction<SettlementClaimStakeComponent> SettlementNameChangedEvent
Field Value
Type Description
ThreadSafeAction<SettlementClaimStakeComponent>

Properties

Description

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

InfluencingSettlement

Declaration
public Settlement InfluencingSettlement { get; }
Property Value
Type Description
Settlement

OwningSettlement

Declaration
public Settlement OwningSettlement { get; }
Property Value
Type Description
Settlement

Methods

Initialize()

Declaration
public override void Initialize()
Overrides
WorldObjectComponent.Initialize()

OnCreate()

Declaration
public override void OnCreate()
Overrides
WorldObjectComponent.OnCreate()

SetInfluencingSettlement(Settlement)

We update the lowest influencing settlement by also making sure to notify the settlement that's influencing it.

Declaration
public void SetInfluencingSettlement(Settlement newSettlement)
Parameters
Type Name Description
Settlement newSettlement

StakeOwnerUpdated()

Update the settlement that owns this stake.

Declaration
public void StakeOwnerUpdated()

Explicit Interface Implementations

IClaimStakeComponent.DeedChanged()

Must be called by the placing thing after the deed is all setup.

Declaration
void IClaimStakeComponent.DeedChanged()

Implements

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions
System.ComponentModel.INotifyPropertyChanged
IClaimStakeComponent

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
SettlementTooltipLibrary.SettlementClaimStakeComponentTooltip(SettlementClaimStakeComponent)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾