EAZGameStartInfo Class Reference

Public Attributes

int gameDuration
 
string levels
 
bool gameSoundOn
 
string lang
 
int gameTimeoutGap
 

Detailed Description

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

Note
You won’t get actual data from platform in startGameInfo on Unity Editor runtime. Application will have connection with server only after Xcode project Build on IOS device. On Unity build startGameInfo returns hardcoded values from local test environment.

Definition at line 7 of file EAZGameStartInfo.cs.

Member Data Documentation

◆ gameDuration

int EAZGameStartInfo.gameDuration

Game’s duration in seconds. Setting on the EazeGamesSDK Platform.

Definition at line 12 of file EAZGameStartInfo.cs.

◆ gameSoundOn

bool EAZGameStartInfo.gameSoundOn

Indicating sound setting.

Definition at line 24 of file EAZGameStartInfo.cs.

◆ gameTimeoutGap

int EAZGameStartInfo.gameTimeoutGap

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

Definition at line 32 of file EAZGameStartInfo.cs.

◆ lang

string EAZGameStartInfo.lang

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

Definition at line 28 of file EAZGameStartInfo.cs.

◆ levels

string EAZGameStartInfo.levels

String that determines the level sequence. EazeGamesSDK 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 EazeGamesSDK 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

Note
In game launched directly in Unity Editor (on your PC/Mac) you will get generated random sequence of levels (e.g. max level number = 35, so there are the following levels in sequence: from 1 to 35) for debugging purposes. App running in Unity Editor won't have connection to server, so all platform callbacks are emulated on local testing environment.
On device/emulator Xcode build returns null if game is without levels.

Definition at line 20 of file EAZGameStartInfo.cs.