Class GameValueContext<T>
Inheritance
System.Object
GameValueContext<T>
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[NonSelectable]
public class GameValueContext<T> : GameValue<T>, INotifyPropertyChanged, IValidity, IDescribable, IGameValueContext, INamed, IController, IViewController, IHasUniversalID
Type Parameters
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
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
Title
Declaration
public override string Title { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
Description()
Declaration
public override LocString Description()
Returns
Overrides
Evaluate(IContextObject)
Declaration
protected override Eval<T> Evaluate(IContextObject context)
Parameters
Returns
Overrides
Eco.Gameplay.Civics.GameValues.GameValue<T>.Evaluate(Eco.Core.Utils.PropertyScanning.IContextObject)
Flags(IContextObject)
Declaration
public override GameValueFlags Flags(IContextObject context)
Parameters
Returns
Overrides
SetContextChoice(IContextValue)
Declaration
public void SetContextChoice(IContextValue context)
Parameters
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods