Show / Hide Table of Contents

Class GameValueContext<T>

Inheritance
System.Object
GameValue
GameValue<T>
GameValueContext<T>
Implements
System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable
IGameValueContext
INamed
IController
IViewController
IHasUniversalID
Inherited Members
GameValue<T>.ValueAsObject(IContextObject)
GameValue<T>.Value(IContextObject)
GameValue<T>.ChoosesType
GameValue.IsWrapped
GameValue.ControllerID
GameValue.PropertyChanged
Namespace: Eco.Gameplay.Civics.GameValues
Assembly: Eco.Gameplay.dll
Syntax
[NonSelectable]
public class GameValueContext<T> : GameValue<T>, INotifyPropertyChanged, IValidity, IDescribable, IGameValueContext, INamed, IController, IViewController, IHasUniversalID
Type Parameters
Name Description
T

Constructors

GameValueContext()

Declaration
public GameValueContext()

GameValueContext(PropertyInfo)

We just pass the property that we want to use as context and this construction will get all the necessary values by itself.

Declaration
public GameValueContext(PropertyInfo context)
Parameters
Type Name Description
System.Reflection.PropertyInfo context

GameValueContext(String, LocString, String)

Declaration
public GameValueContext(string contextName, LocString markedUpName, string description = null)
Parameters
Type Name Description
System.String contextName
LocString markedUpName
System.String description

Properties

ContextDescription

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

ContextName

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

MarkedUpName

Declaration
public LocString MarkedUpName { get; }
Property Value
Type Description
LocString

MarkedUpNameString

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

Name

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

ShowStatus

Declaration
public override bool ShowStatus { get; }
Property Value
Type Description
System.Boolean
Overrides
GameValue.ShowStatus

Title

Declaration
public override string Title { get; }
Property Value
Type Description
System.String
Overrides
GameValue.Title

Methods

Description()

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

Evaluate(IContextObject)

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

Flags(IContextObject)

Declaration
public override GameValueFlags Flags(IContextObject context)
Parameters
Type Name Description
IContextObject context
Returns
Type Description
GameValueFlags
Overrides
GameValue.Flags(IContextObject)

SetContextChoice(IContextValue)

Declaration
public void SetContextChoice(IContextValue context)
Parameters
Type Name Description
IContextValue context

Implements

System.ComponentModel.INotifyPropertyChanged
IValidity
IDescribable
IGameValueContext
INamed
IController
IViewController
IHasUniversalID

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