Show / Hide Table of Contents

Class GameValue<T>

Inheritance
System.Object
GameValue
GameValue<T>
Arithmetic
Compare
GameValueContext<T>
GameValueWrapper<T>
Negative_GameValue
No
Not
Percent_GameValue
PersonalBankAccount_GameValue
PersonalCurrency
ProgressivePercent
DeedAtLocation
DeedGameValue<T>
Round
SetOfConditions
TextFormula
CitizenAgeInHours
CitizenReputation
CurrencyInCirculation
DaysActive
DistrictGameValue<T>
GroundDistance
HasResidence
HoursPlayed
HouseValueGameValue<T>
IsAdmin
IsGovernmentAccount
IsResidentType
LocationTest
MatchesBankAccount
MatchesCurrency
MatchesSettlement
MembershipRequirements
PlayerGameValue
PopulationGameValue<T>
PropertyOwned
Residence
SettlementOfBankAccount
SkillRequirements
StatGameValue
TreasuryOfSettlement
Wealth
WorldAge
WorldAgeInDays
WorldAgeInHours
Yes
TriggerConfig
CitizenshipOfCitizen
CitizenshipTimeInHours
IsCitizenOfSettlement
SettlementInfluencesPosition
SettlementInfluencingPosition
SettlementProperty<T>
SettlementTypeInfluencesPosition
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable
Inherited Members
GameValue.Description()
GameValue.Flags(IContextObject)
GameValue.Title
GameValue.IsWrapped
GameValue.ShowStatus
GameValue.ControllerID
GameValue.PropertyChanged
Namespace: Eco.Gameplay.Civics.GameValues
Assembly: Eco.Gameplay.dll
Syntax
public abstract class GameValue<T> : GameValue, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IValidity, IDescribable
Type Parameters
Name Description
T

Constructors

GameValue()

Declaration
protected GameValue()

Properties

ChoosesType

Declaration
public static Type ChoosesType { get; }
Property Value
Type Description
System.Type

Methods

Evaluate(IContextObject)

Declaration
protected virtual Eval<T> Evaluate(IContextObject action)
Parameters
Type Name Description
IContextObject action
Returns
Type Description
Eval<T>

Value(IContextObject)

Evaluates value with exception handling and returns Invalid value if exception happens.

Declaration
public virtual Eval<T> Value(IContextObject action)
Parameters
Type Name Description
IContextObject action
Returns
Type Description
Eval<T>

ValueAsObject(IContextObject)

Declaration
public override (object, LocString) ValueAsObject(IContextObject action)
Parameters
Type Name Description
IContextObject action
Returns
Type Description
System.ValueTuple<System.Object, LocString>
Overrides
GameValue.ValueAsObject(IContextObject)

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
GameValueUtils.FailNullSafe<TEvalReturn, TEvalParam>(GameValue, Eval<TEvalParam>, String)
GameValueUtils.Missing<TEvalReturn>(GameValue, String)
GameValueUtils.DescribeNullSafe(GameValue)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾