Show / Hide Table of Contents

Class Laborer

Inheritance
System.Object
Laborer
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IHasWorkParty
IRootDescriber
IProvidesContext
Namespace: Eco.Gameplay.Economy.WorkParties
Assembly: Eco.Gameplay.dll
Syntax
public class Laborer : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IValidity, IHasWorkParty, IRootDescriber, IProvidesContext

Constructors

Laborer()

Declaration
public Laborer()

Properties

Citizen

Declaration
public User Citizen { get; set; }
Property Value
Type Description
User

ContextProvided

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

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

Describe

Declaration
public string Describe { get; }
Property Value
Type Description
System.String

LaborContribution

Declaration
public float LaborContribution { get; set; }
Property Value
Type Description
System.Single

PercentContribution

Declaration
public float PercentContribution { get; set; }
Property Value
Type Description
System.Single

Requirements

Declaration
public string Requirements { get; }
Property Value
Type Description
System.String

RequirementsToTakeRole

Declaration
public GameValue<bool> RequirementsToTakeRole { get; set; }
Property Value
Type Description
GameValue<System.Boolean>

Role

Declaration
public string Role { get; set; }
Property Value
Type Description
System.String

RootDescriber

Declaration
public IDescribable RootDescriber { get; }
Property Value
Type Description
IDescribable

WorkParty

Declaration
public WorkParty WorkParty { get; set; }
Property Value
Type Description
WorkParty

Methods

Initialize(WorkParty)

Declaration
public virtual void Initialize(WorkParty workParty)
Parameters
Type Name Description
WorkParty workParty

SetRequirements(Player)

Declaration
public void SetRequirements(Player player)
Parameters
Type Name Description
Player player

Events

PropertyChanged

Declaration
public virtual event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IHasWorkParty
IRootDescriber
IProvidesContext

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾