Class SettlementFoundationComponent
Inheritance
System.Object
SettlementFoundationComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public sealed class SettlementFoundationComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IPostAddListenerComponent, IClaimStakeComponent, IPickupConfirmationComponent, IHasBaseInfluence, IInventoryWorldObjectComponent, IPermanentDestroyHandler, IHostsObjects
Constructors
SettlementFoundationComponent()
Declaration
public SettlementFoundationComponent()
Fields
FoundedSettlementInited
Declaration
public Action FoundedSettlementInited
Field Value
| Type |
Description |
| System.Action |
|
SettlementFoundedEvent
Declaration
public static ThreadSafeAction<Settlement> SettlementFoundedEvent
Field Value
SettlementPictureChangeEvent
Declaration
public static ThreadSafeAction<Settlement> SettlementPictureChangeEvent
Field Value
Properties
AdvertisementToNewPeopleEnteringWorld
Declaration
public string AdvertisementToNewPeopleEnteringWorld { get; set; }
Property Value
| Type |
Description |
| System.String |
|
CanFound
Declaration
public bool CanFound { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
ComponentTabName
Declaration
public override LocString ComponentTabName { get; }
Property Value
Overrides
Enabled
Declaration
public override bool Enabled { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
InfluenceColor
Declaration
public Color InfluenceColor { get; set; }
Property Value
MustHaveChildren
Declaration
public bool MustHaveChildren { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
NotFounded
Declaration
public bool NotFounded { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
PictureSlot
Declaration
public LimitedInventory PictureSlot { get; set; }
Property Value
Settlement
Declaration
public Settlement Settlement { get; }
Property Value
SettlementNameUponFounding
Declaration
public string SettlementNameUponFounding { get; set; }
Property Value
| Type |
Description |
| System.String |
|
SettlementType
Declaration
public SettlementType SettlementType { get; }
Property Value
Declaration
public bool ShowFoundButton { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
ShowPicture
Declaration
public bool ShowPicture { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Title
Declaration
public LocString Title { get; }
Property Value
TitlePlate
Declaration
public LocString TitlePlate { get; set; }
Property Value
Methods
AdminMode(Player)
Declaration
public bool AdminMode(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
Returns
| Type |
Description |
| System.Boolean |
|
Destroy()
Declaration
public override void Destroy()
Overrides
DoFounding(Election)
Helper that forces founding of the settlement. Called directly when founding via ratification.
Takes an optional param for an election that founded it, stored for posterity.
Declaration
public void DoFounding(Election foundingElection = null)
Parameters
| Type |
Name |
Description |
| Election |
foundingElection |
|
FoundationPictureDescription()
Get a Settlement picture description.
Declaration
public LocString FoundationPictureDescription()
Returns
FoundSettlement(User)
Declaration
public void FoundSettlement(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
FoundSettlementTitle()
Declaration
public string FoundSettlementTitle()
Returns
| Type |
Description |
| System.String |
|
HasDiplomaticPrivilege(User)
Declaration
public bool HasDiplomaticPrivilege(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Initialize()
Declaration
public override void Initialize()
Overrides
PostAdd()
Declaration
Explicit Interface Implementations
IHasBaseInfluence.BaseInfluence
Declaration
float IHasBaseInfluence.BaseInfluence { get; }
Returns
| Type |
Description |
| System.Single |
|
IInventoryWorldObjectComponent.Inventory
Declaration
Inventory IInventoryWorldObjectComponent.Inventory { get; }
Returns
IPickupConfirmationComponent.CanPickup()
Declaration
Result IPickupConfirmationComponent.CanPickup()
Returns
IHostsObjects.UpdateHostedStatus()
Declaration
void IHostsObjects.UpdateHostedStatus()
IClaimStakeComponent.DeedChanged()
Declaration
void IClaimStakeComponent.DeedChanged()
IClaimStakeComponent.OwningSettlement
Declaration
Settlement IClaimStakeComponent.OwningSettlement { get; }
Returns
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods