EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.GameParameters Class Reference

Contains the parameters used by the game at runtime. More...

Inherits EnableSerializableValue.

Public Member Functions

GameParameter AddParameter (GameParameter param)
 Adds a new parameter.
 
GameParameter GetParameter (string name)
 Returns a refrence to the value referred to by the given key, throws an error if the key is not found.
 
 GameParameters ()
 set "parameters" to a new, empty Dictionary object
 
string Serialize ()
 Serializes the current instance of GameParameters into a JSON string representation.
 
object Deserialize (string json)
 Deserializes the specified JSON string into an object of type GameParameters.
 

Properties

List< GameParameterParameterList [get]
 Returns a COPY of the parameters as a List.
 

Detailed Description

Contains the parameters used by the game at runtime.

Member Function Documentation

◆ Deserialize()

object Enablegames.GameParameters.Deserialize ( string json)
inline

Deserializes the specified JSON string into an object of type GameParameters.

Parameters
jsonThe JSON string to deserialize.
Returns
An object of type GameParameters.
Here is the caller graph for this function:

◆ Serialize()

string Enablegames.GameParameters.Serialize ( )
inline

Serializes the current instance of GameParameters into a JSON string representation.

Returns
A JSON string representation of the current GameParameters instance.
Here is the caller graph for this function:

The documentation for this class was generated from the following file: