Show / Hide Table of Contents

Class MakeGameValue

A GameValue factory for the most used cases.

Inheritance
System.Object
MakeGameValue
Namespace: Eco.Gameplay.Civics.GameValues
Assembly: Eco.Gameplay.dll
Syntax
public static class MakeGameValue : Object

Properties

Active

Declaration
public static GameValue<IAlias> Active { get; }
Property Value
Type Description
GameValue<IAlias>

Everyone

Declaration
public static GameValue<IAlias> Everyone { get; }
Property Value
Type Description
GameValue<IAlias>

Treasury

Declaration
public static GameValue<BankAccount> Treasury { get; }
Property Value
Type Description
GameValue<BankAccount>

Methods

GameValue<T>(T)

Declaration
public static GameValue<T> GameValue<T>(T t)
Parameters
Type Name Description
T t
Returns
Type Description
GameValue<T>
Type Parameters
Name Description
T

Number(Single)

Declaration
public static GameValue<float> Number(float number)
Parameters
Type Name Description
System.Single number
Returns
Type Description
GameValue<System.Single>

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
Type Description
GameValue<User>
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾