Show / Hide Table of Contents

Class Injunction

Inheritance
System.Object
SimpleEntry
SimpleProposable
Injunction
Implements
ILinkableParameterized<SimpleEntry.NamingOptions>
ICachesValidity
IDescribable
IProposable
IHasID
IReInitializable
IHasReferenceableSerializableID
IHostedObject
INamed
IHasTeleportOption
IHasSerializableID
ILinkableParameterized<System.Boolean>
ILinkable
ISuffixName
ISingleEditingUser
IPlayerUseTracking
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
ISettlementAssociated
System.ComponentModel.INotifyPropertyChanged
IRPCAuthChecks
ICustomValidity
IValidity
IHasClientControlledContainers
IController
IViewController
IHasUniversalID
Inherited Members
SimpleProposable.requiresHost
SimpleProposable.SetRequiresHost(Boolean)
SimpleProposable.Valid()
SimpleProposable.DisableHostedObject()
SimpleProposable.AssignHostObject(WorldObject)
SimpleProposable.CanBeAssignedTo(IOrphanAssignment)
SimpleProposable.OnBeforeStateChangeInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)
SimpleProposable.InitializeDraftProposable()
SimpleProposable.GetPairsOfOldAndNewRevisions(IProposable)
SimpleProposable.ApplyUpdatedProposable(IProposable)
SimpleProposable.OnCreate()
SimpleProposable.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
SimpleProposable.SetState(ProposableState)
SimpleProposable.UsingPlayers
SimpleProposable.State
SimpleProposable.HostID
SimpleProposable.HostObject
SimpleProposable.TargetToReplace
SimpleProposable.ScanPeriodically
SimpleProposable.LastValidTime
SimpleProposable.Submitted
SimpleProposable.RevisionParent
SimpleProposable.Election
SimpleProposable.RemovedBy
SimpleProposable.RemovalElection
SimpleProposable.Settlement
SimpleProposable.CurrentEditingUser
SimpleProposable.RequiresHost
SimpleProposable.DescribedWithTable
SimpleProposable.RequiresSlot
SimpleProposable.IsActive
SimpleProposable.WasRemoved
SimpleProposable.IHostedObject.HostingSettlement
SimpleProposable.IHostedObject.CanBeEdited
SimpleProposable.IHostedObject.ExpirationWarningsIssued
SimpleEntry.Description()
SimpleEntry.PostLoad()
SimpleEntry.CreatorText(Player)
SimpleEntry.ToString()
SimpleEntry.SaveInRegistrar()
SimpleEntry.UILinkContent()
SimpleEntry.UILinkContent(Boolean)
SimpleEntry.UILinkContent(SimpleEntry.NamingOptions)
SimpleEntry.ReInitialize()
SimpleEntry.MarkDirty()
SimpleEntry.UserDescription
SimpleEntry.Name
SimpleEntry.Creator
SimpleEntry.NameSuffix
SimpleEntry.CreationTime
SimpleEntry.CachedValidity
SimpleEntry.IsDestroyed
SimpleEntry.OnValidityChanged
SimpleEntry.Initialized
SimpleEntry.MarkedUpName
SimpleEntry.Id
SimpleEntry.IconName
SimpleEntry.Registrar
SimpleEntry.WorldTimeSinceCreation
SimpleEntry.CanBeDeleted
SimpleEntry.TextName
SimpleEntry.Scannable
SimpleEntry.Style
SimpleEntry.ControllerID
SimpleEntry.TrueResult
SimpleEntry.Subscriptions
SimpleEntry.PropertyChanged
Namespace: Eco.Gameplay.Civics.Laws
Assembly: Eco.Gameplay.dll
Syntax
[OnlySettlementsWithChildren]
public class Injunction : 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, ICustomValidity, IValidity, IHasClientControlledContainers, IController, IViewController, IHasUniversalID

Constructors

Injunction()

Declaration
public Injunction()

Properties

BlockedTriggersAndLegalActions

Declaration
public IEnumerable<Type> BlockedTriggersAndLegalActions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Type>

LawsToIgnore

Declaration
public ControllerList<Law> LawsToIgnore { get; set; }
Property Value
Type Description
ControllerList<Law>

LegalActionsToIgnoreInLesserLaws

Declaration
public ControllerList<Type> LegalActionsToIgnoreInLesserLaws { get; set; }
Property Value
Type Description
ControllerList<System.Type>

OnlyAffectSettlements

Declaration
public ControllerList<Settlement> OnlyAffectSettlements { get; set; }
Property Value
Type Description
ControllerList<Settlement>

SettlementsAffected

Returns settlements affected, returning all if a whitelist is not specified.

Declaration
public IEnumerable<Settlement> SettlementsAffected { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Settlement>

TriggersToIgnoreInLesserLaws

Declaration
public ControllerList<Type> TriggersToIgnoreInLesserLaws { get; set; }
Property Value
Type Description
ControllerList<System.Type>

Methods

Destroyed()

Declaration
public override void Destroyed()
Overrides
SimpleProposable.Destroyed()

Initialize()

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

OnStateChangedInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)

Declaration
public override void OnStateChangedInternal(ProposableState oldState, CivicsUtils.StateChangeDetailFlags flags)
Parameters
Type Name Description
ProposableState oldState
CivicsUtils.StateChangeDetailFlags flags
Overrides
SimpleProposable.OnStateChangedInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)

Tooltip()

Declaration
[NewTooltip]
public LocString Tooltip()
Returns
Type Description
LocString

Explicit Interface Implementations

ICustomValidity.Valid()

Declaration
Result ICustomValidity.Valid()
Returns
Type Description
Result

Implements

ILinkableParameterized<T>
ICachesValidity
IDescribable
IProposable
IHasID
IReInitializable
IHasReferenceableSerializableID
IHostedObject
INamed
IHasTeleportOption
IHasSerializableID
ILinkableParameterized<T>
ILinkable
ISuffixName
ISingleEditingUser
IPlayerUseTracking
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
ISettlementAssociated
System.ComponentModel.INotifyPropertyChanged
IRPCAuthChecks
ICustomValidity
IValidity
IHasClientControlledContainers
IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
ILinkableTooltipLibrary.SimpleProposableLinkClicked(SimpleProposable)
MiscTooltipLibrary.SimpleEntryTooltip(SimpleEntry, User)
MiscTooltipLibrary.SimpleEntryTitle(SimpleEntry)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾