Interface IEAZGamePlayManager
Interface that handles gameplay process
Namespace: EazeGamesSDK
Assembly: EazeGamesSDK.dll
Syntax
public interface IEAZGamePlayManager
Methods
didStartPlaying()
Application have to call this method indicating that User start playing.
Declaration
void didStartPlaying()
finishPlayingWithFinalScore(Int64)
When timer will run out Application must call this method with User’s final score
Declaration
void finishPlayingWithFinalScore(long finalScore)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | finalScore | User’s final score |
leaveGame()
Will inform Platform that User decided to leave the game. Should be triggered after LeaveGame button is pressed by User
Declaration
void leaveGame()
sendScore(Int64)
Sends User’s current score to the Platform. Application will have ability to send score only after didStartPlaying triggered
Declaration
void sendScore(long score)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | score | User’s current score |
setGamePlayDelegate(EAZGamePlayDelegate)
Sets delegate in order to receive callbacks from `IEAZGamePlayManagerÌ regarding gameplay events
Declaration
void setGamePlayDelegate(EAZGamePlayDelegate gamePlayDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| EAZGamePlayDelegate | gamePlayDelegate | Instance that implements EAZGamePlayDelegate` interface |