Show / Hide Table of Contents

Class EAZGameStartInfo

Model that contains necessary information regarding Game that is about to start.

Inheritance
System.Object
EAZGameStartInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: EazeGamesSDK
Assembly: EazeGamesSDK.dll
Syntax
[Serializable]
public class EAZGameStartInfo

Constructors

EAZGameStartInfo()

Default constructor.

Declaration
public EAZGameStartInfo()

EAZGameStartInfo(Int32, String, Boolean, String, Int32)

Constructor for convenience purposes.

Declaration
public EAZGameStartInfo(int gameDuration, string levels, bool gameSoundOn, string lang, int gameTimeoutGap)
Parameters
Type Name Description
System.Int32 gameDuration

Game's duration in seconds.

System.String levels

String that determines the level sequence.

System.Boolean gameSoundOn

Indicating sound setting.

System.String lang

Language ISO 639-1 code. E.g. "en".

System.Int32 gameTimeoutGap

Time gap in seconds.

Fields

gameDuration

Game's duration in seconds. Setting on the EazeGames platform.

Declaration
public int gameDuration
Field Value
Type Description
System.Int32

gameSoundOn

Indicating sound setting.

Declaration
public bool gameSoundOn
Field Value
Type Description
System.Boolean

gameTimeoutGap

Time gap in seconds. Determines margin for game to be timed out by the platform. Final time out value will be = duration + timeOutGap.

Declaration
public int gameTimeoutGap
Field Value
Type Description
System.Int32

lang

Language ISO 639-1 code. E.g. "en".

Declaration
public string lang
Field Value
Type Description
System.String

levels

String that determines the level sequence. EazeGames Platform supports games with level sequences. Each level of the game must be associated with a number 1, 2, 3, 4, 5. etc, as well as there should be a max levels number(count of all levels), that can be configured in the admin panel.Max levels number is used to generate a random level sequence by EazeGames Platform, per each game play and same for all Players of that particular game play. Let's say, we have max levels of 5. It means, that game has 5 levels: 1, 2, 3, 4, 5. All those levels are taken into account and shuffled in order to produce a string with the random level sequence: 3-4-1-2-5-4-5-2-1-3 Amount of game levels numbers in sequence depends on game duration. The usual game duration is 2-3 mins. Therefore there could be more or less numbers in the output string to guarantee(assure) the enough(sufficient) levels quantity for a game play. If we set as a max levels number, then depending on game duration the level sequence can be: 4-5-1-3-2-5-5-4-1-3 4-5-1-3-2-5-5-4-1-3-5-4-4-1-3-5

Declaration
public string levels
Field Value
Type Description
System.String

Methods

ToString()

Converts EAZGameStartInfo into JSON string.

Declaration
public string ToString()
Returns
Type Description
System.String
Back to top Generated by DocFX