Show / Hide Table of Contents

Class GameValueManager

Inheritance
System.Object
GameValueManager
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Civics.GameValues
Assembly: Eco.Gameplay.dll
Syntax
public class GameValueManager : Singleton<GameValueManager>, IController, IViewController, IHasUniversalID

Constructors

GameValueManager()

Declaration
public GameValueManager()

Fields

TypeAndNameToContext

Declaration
public Dictionary<(Type, string), GameValueTypeContext> TypeAndNameToContext
Field Value
Type Description
System.Collections.Generic.Dictionary<System.ValueTuple<System.Type, System.String>, GameValueTypeContext>

Properties

ContextsForType

Declaration
public Dictionary<Type, List<GameValueTypeContext>> ContextsForType { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.List<GameValueTypeContext>>

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

GameValuesPerType

Declaration
public Dictionary<Type, List<GameValueType>> GameValuesPerType { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.List<GameValueType>>

Methods

DynamicSetGameValue(Object, PropertyInfo, Object)

Declaration
public static void DynamicSetGameValue(object parent, PropertyInfo prop, object newValue)
Parameters
Type Name Description
System.Object parent
System.Reflection.PropertyInfo prop
System.Object newValue

DynamicSetGameValueActions(Object, String, Type, Object, Action<Object>, Object)

Declaration
public static void DynamicSetGameValueActions(object parent, string propName, Type propertyType, object curValue, Action<object> setter, object newValue)
Parameters
Type Name Description
System.Object parent
System.String propName
System.Type propertyType
System.Object curValue
System.Action<System.Object> setter
System.Object newValue

FixContext(ref ScanScope)

Declaration
public static void FixContext(ref ScanScope scope)
Parameters
Type Name Description
ScanScope scope

GetContexts(Type)

Declaration
public static List<GameValueTypeContext> GetContexts(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Collections.Generic.List<GameValueTypeContext>

Init()

Declaration
public void Init()

InitSingleton()

Declaration
public static void InitSingleton()

MakeContext<TContextCategory, TContextType>(String)

Declaration
public static GameValue<TContextType> MakeContext<TContextCategory, TContextType>(string name = null)
Parameters
Type Name Description
System.String name
Returns
Type Description
GameValue<TContextType>
Type Parameters
Name Description
TContextCategory
TContextType

Implements

IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾