Class GameValueManager
Inheritance
System.Object
GameValueManager
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
GetContexts(Type)
Declaration
public static List<GameValueTypeContext> GetContexts(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Init()
Declaration
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 Parameters
Name |
Description |
TContextCategory |
|
TContextType |
|
Implements
Extension Methods