Class ImmigrationPolicy
Inheritance
System.Object
ImmigrationPolicy
Implements
ISuffixName
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[ExactlyOnePerHost]
public class ImmigrationPolicy : SimpleProposable, ILinkableParameterized<SimpleEntry.NamingOptions>, ICachesValidity, IDescribable, IProposable, IHasID, IReInitializable, IHasReferenceableSerializableID, IHostedObject, INamed, IHasTeleportOption, IHasSerializableID, ILinkableParameterized<bool>, ILinkable, ISuffixName, ISingleEditingUser, IPlayerUseTracking, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, ISettlementAssociated, INotifyPropertyChanged, IRPCAuthChecks, IProvidesContext, IController, IViewController, IHasUniversalID, ICustomValidity, IValidity
Constructors
ImmigrationPolicy()
Declaration
public ImmigrationPolicy()
Properties
AllowApplicants
Declaration
public bool AllowApplicants { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
AllowBecomeCitizenUponHomesteadPlacement
Declaration
public bool AllowBecomeCitizenUponHomesteadPlacement { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
AllowBrandNewPeopleToInstantlyJoin
Declaration
public bool AllowBrandNewPeopleToInstantlyJoin { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
AllowChildSettlementsToSecede
Declaration
public bool AllowChildSettlementsToSecede { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
AllowForeignPropertyOwnership
Declaration
public bool AllowForeignPropertyOwnership { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Approver
Declaration
public IAlias Approver { get; set; }
Property Value
CanHaveDirectCitizens
Declaration
public bool CanHaveDirectCitizens { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool CanJoinSettlemenUponHomesteadPlacement { get; }
Property Value
Type |
Description |
System.Boolean |
|
ChildrenSettlementsMayAnnexEachOther
Declaration
public bool ChildrenSettlementsMayAnnexEachOther { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ContextProvided
Declaration
public IEnumerable<IContextValue> ContextProvided { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<IContextValue> |
|
HoursFailingRequirementsBeforeRemovedAsCitizen
Declaration
public float HoursFailingRequirementsBeforeRemovedAsCitizen { get; set; }
Property Value
Type |
Description |
System.Single |
|
PropertyHeirWhenCitizensLeave
Declaration
public IAlias PropertyHeirWhenCitizensLeave { get; set; }
Property Value
RequirementsForNewChildSettlement
Declaration
public GameValue<bool> RequirementsForNewChildSettlement { get; set; }
Property Value
RequirementsForNewCitizens
Declaration
public GameValue<bool> RequirementsForNewCitizens { get; set; }
Property Value
RequiresHost
Declaration
public override bool RequiresHost { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
SpawnPoint
Define the position a new player will spawn at if they join this settlement instantly.
Declaration
public Vector3i SpawnPoint { get; }
Property Value
UseFoundationAsSpawn
Declaration
public bool UseFoundationAsSpawn { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
CanLeaveSettlement(User)
Declaration
public Task<bool> CanLeaveSettlement(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
CanLeaveWithProperties(User, out List<Deed>)
We check whether the specified user can take his properties with him when leaving this settlement (If he doesn't own any, this will return a success).
Declaration
public Result CanLeaveWithProperties(User user, out List<Deed> deedsInSettlement)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Collections.Generic.List<Deed> |
deedsInSettlement |
|
Returns
CheckCanCreateChildSettlement(User)
We check whether the specified user can create a child settlement inside the current one or not (we check both this settlement and all its parents).
Declaration
public Result CheckCanCreateChildSettlement(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
CheckCanJoinAsCitizen(User, Boolean)
We check whether the specified user can become a citizen of this settlement or not (we check both this settlement and all its parents).
Declaration
public Result CheckCanJoinAsCitizen(User user, bool joinAsDirectCitizen)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Boolean |
joinAsDirectCitizen |
|
Returns
Initialize()
Declaration
public override void Initialize()
Overrides
OnStateChangedInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)
Declaration
public override void OnStateChangedInternal(ProposableState oldState, CivicsUtils.StateChangeDetailFlags flags)
Parameters
Overrides
Valid()
Declaration
public override Result Valid()
Returns
Overrides
Implements
ISuffixName
System.ComponentModel.INotifyPropertyChanged
Extension Methods