Show / Hide Table of Contents

Class StatSum

Inheritance
System.Object
GameValue
GameValue<System.Single>
StatGameValue
StatSum
CitizenStatistics
CustomStatQuery
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable
Inherited Members
GameValue<Single>.ValueAsObject(IContextObject)
GameValue<Single>.Value(IContextObject)
GameValue<Single>.ChoosesType
GameValue.Flags(IContextObject)
GameValue.Title
GameValue.IsWrapped
GameValue.ShowStatus
GameValue.ControllerID
GameValue.PropertyChanged
Namespace: Eco.Gameplay.Civics.GameValues.Values.Stats
Assembly: Eco.Gameplay.dll
Syntax
public abstract class StatSum : StatGameValue, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IValidity, IDescribable

Constructors

StatSum()

Declaration
protected StatSum()

Properties

RestrictCountToCitizen

Declaration
[DontReceiveAutoAssign]
public GameValue<User> RestrictCountToCitizen { get; set; }
Property Value
Type Description
GameValue<User>

StatType

Declaration
protected abstract Type StatType { get; }
Property Value
Type Description
System.Type

TimeRangeInHours

Declaration
public GameValue<float> TimeRangeInHours { get; set; }
Property Value
Type Description
GameValue<System.Single>

TimeRangeType

Declaration
public StatTimeRange TimeRangeType { get; set; }
Property Value
Type Description
StatTimeRange

ValueDescription

Declaration
protected abstract string ValueDescription { get; }
Property Value
Type Description
System.String

Methods

Description()

Declaration
public override LocString Description()
Returns
Type Description
LocString
Overrides
GameValue.Description()

Evaluate(IContextObject)

Declaration
protected override Eval<float> Evaluate(IContextObject action)
Parameters
Type Name Description
IContextObject action
Returns
Type Description
Eval<System.Single>
Overrides
Eco.Gameplay.Civics.GameValues.GameValue<System.Single>.Evaluate(Eco.Core.Utils.PropertyScanning.IContextObject)

GetActionName(IContextObject)

Declaration
protected abstract Eval<string> GetActionName(IContextObject context)
Parameters
Type Name Description
IContextObject context
Returns
Type Description
Eval<System.String>

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.NonZero(GameValue<Single>)
GameValueUtils.NullOrZero(GameValue<Single>)
GameValueUtils.IsNegative(GameValue<Single>)
GameValueUtils.IsZero(GameValue<Single>)
GameValueUtils.IsConstant(GameValue<Single>, Single)
GameValueUtils.TryGetConstant(GameValue<Single>, out Single)
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
☀
☾