Class Workable
Inheritance
System.Object
Workable
Implements
ISuffixName
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RPCAuthMaxProposableState]
public abstract class Workable : SimpleProposable, ILinkableParameterized<SimpleEntry.NamingOptions>, ICachesValidity, IDescribable, IProposable, IHasID, IReInitializable, IHasReferenceableSerializableID, IHostedObject, INamed, IHasTeleportOption, IHasSerializableID, ILinkableParameterized<bool>, ILinkable, ICustomValidity, IValidity, ISuffixName, ISingleEditingUser, IPlayerUseTracking, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, ISettlementAssociated, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IRPCAuthChecks
Constructors
Workable()
Declaration
Properties
HostContainer
Declaration
public abstract ContainedWorkables HostContainer { get; set; }
Property Value
Owner
Declaration
public abstract User Owner { get; }
Property Value
Declaration
public abstract bool ShowLocationTooltip { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
UIName
Declaration
public abstract string UIName { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
CreatorText(Player)
Declaration
public override LocString CreatorText(Player reader)
Parameters
| Type |
Name |
Description |
| Player |
reader |
|
Returns
Overrides
LocationText(Player)
Declaration
public LocString LocationText(Player reader)
Parameters
| Type |
Name |
Description |
| Player |
reader |
|
Returns
OnStateChangedInternal(ProposableState, CivicsUtils.StateChangeDetailFlags)
Declaration
public override void OnStateChangedInternal(ProposableState oldState, CivicsUtils.StateChangeDetailFlags flags)
Parameters
Overrides
Open(Player)
Declaration
public virtual void Open(Player player)
Parameters
| Type |
Name |
Description |
| Player |
player |
|
RelevantUsers()
Declaration
public abstract IEnumerable<User> RelevantUsers()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<User> |
|
SetHostObject(WorldObject)
This will take care of updating the host object of the workable while at the same time assigning its parent settlement.
Declaration
public void SetHostObject(WorldObject worldObject)
Parameters
SetupDefault(User)
Declaration
public virtual void SetupDefault(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Implements
ISuffixName
System.ComponentModel.INotifyPropertyChanged
Extension Methods