Show / Hide Table of Contents

Class HoursPlayed

Inheritance
System.Object
GameValue
GameValue<System.Single>
HoursPlayed
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
Assembly: Eco.Gameplay.dll
Syntax
public class HoursPlayed : GameValue<float>, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IValidity, IDescribable

Constructors

HoursPlayed()

Declaration
public HoursPlayed()

Properties

Citizen

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

WithinLastNumberOfDays

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

Methods

Description()

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

Evaluate(IContextObject)

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

Make(Type, String, Single)

Declaration
public static HoursPlayed Make(Type type, string propertyName, float activeTimeRange)
Parameters
Type Name Description
System.Type type
System.String propertyName
System.Single activeTimeRange
Returns
Type Description
HoursPlayed

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
☀
☾