Class MakeGameValue
A GameValue factory for the most used cases.
Inheritance
System.Object
MakeGameValue
Assembly: Eco.Gameplay.dll
Syntax
public static class MakeGameValue : Object
Properties
Active
Declaration
public static GameValue<IAlias> Active { get; }
Property Value
Everyone
Declaration
public static GameValue<IAlias> Everyone { get; }
Property Value
Treasury
Declaration
public static GameValue<BankAccount> Treasury { get; }
Property Value
Methods
GameValue<T>(T)
Declaration
public static GameValue<T> GameValue<T>(T t)
Parameters
Type |
Name |
Description |
T |
t |
|
Returns
Type Parameters
Number(Single)
Declaration
public static GameValue<float> Number(float number)
Parameters
Type |
Name |
Description |
System.Single |
number |
|
Returns
UserContext(Type, String)
Declaration
public static GameValue<User> UserContext(Type type, string propertyName)
Parameters
Type |
Name |
Description |
System.Type |
type |
The type that has the property that we want to use as context.
|
System.String |
propertyName |
The name of the property that we want to use as context (It must be of type User).
|
Returns