Class JurisdictionComponent
Component that allows setting an associated settlement with a world object based on the settlements that are influencing the current position.
This component can be combined into another tab if its own tab isnt needed.
Inheritance
System.Object
JurisdictionComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class JurisdictionComponent : WorldObjectComponent, ILinkable, IOwned, IHasSerializableID, IRPCAuthChecks, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, INotifyPropertyChanged, IController, IViewController, IHasUniversalID
Constructors
JurisdictionComponent()
Declaration
public JurisdictionComponent()
Fields
DisableWhenInvalid
Set to false to prevent world object from being treated as disabled when no jurisdiction is selected.
Declaration
public bool DisableWhenInvalid
Field Value
Type |
Description |
System.Boolean |
|
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
Enabled
Declaration
public override bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsValid
Does this world object have a jurisdiction selected?
Declaration
public bool IsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
SettlementOfJurisdiction
Declaration
public Settlement SettlementOfJurisdiction { get; }
Property Value
Methods
Destroy()
Declaration
public override void Destroy()
Overrides
ForceSetSettlementOfJurisdiction_Debug(Settlement)
Declaration
public void ForceSetSettlementOfJurisdiction_Debug(Settlement settlement)
Parameters
Initialize()
Declaration
public override void Initialize()
Overrides
OnCreate()
Declaration
public override void OnCreate()
Overrides
SetSettlementOfJurisdiction(Player, Settlement)
Trys to assigns a settlement upon which the objects in this civic object will apply. Validates it to make sure its
influencing us, and prevents changes if there are active or proposed ones.
Declaration
public void SetSettlementOfJurisdiction(Player player, Settlement settlement)
Parameters
Events
CanChangeAssociatedSettlement
Callback that checks if changing the settlement is allowed. Callback is expected to do the error notification to the user.
Declaration
public event Func<Player, Settlement, bool> CanChangeAssociatedSettlement
Event Type
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods