Interface IGamePlayData
Namespace: MacacaGames.GameSystem
Assembly: Macaca.GameSystem.dll
Syntax
public interface IGamePlayData
Properties
| Improve this Doc View SourceapplicationController
Declaration
ApplicationController applicationController { get; set; }
Property Value
| Type | Description |
|---|---|
| ApplicationController |
gamePlayController
Declaration
GamePlayController gamePlayController { get; set; }
Property Value
| Type | Description |
|---|---|
| GamePlayController |
IsContinueAvailable
To verify is the game play available to continue
Declaration
bool IsContinueAvailable { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceGamePlay()
Main logic of the game
Declaration
IEnumerator GamePlay()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator |
GameResult()
Only work during play died or clear, not on quit
Declaration
IEnumerator GameResult()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator |
Init()
Same as ApplicationController Init.
Declaration
void Init()
OnContinue()
While the result in OnContinueFlow is true, do anything require to continue the gameplay on this callback.
Declaration
void OnContinue()
OnContinueFlow(IReturn<Boolean>)
Implement the continue progress here and set result in result
Declaration
IEnumerator OnContinueFlow(IReturn<bool> result)
Parameters
| Type | Name | Description |
|---|---|---|
| Rayark.Mast.IReturn<System.Boolean> | result | the reture value for the continue progress |
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator |
OnEnterGame()
Excude before gameplay realy start
Declaration
IEnumerator OnEnterGame()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator |
OnEnterLobby()
Same as ApplicationController OnApplicationBeforeGamePlay.
Declaration
void OnEnterLobby()
OnGameEnd()
Game total end, no mater is died, clear or quit.
Declaration
void OnGameEnd()
OnGameFaild()
Game Failed.
Declaration
void OnGameFaild()
OnGameLose()
Game Lose .
Declaration
void OnGameLose()
OnGameSuccess()
Declaration
void OnGameSuccess()
OnGameValueReset()
Reset all gameplay relalte value
Declaration
void OnGameValueReset()
OnGUI()
Declaration
void OnGUI()
OnLeaveGame()
Excude after GamePlay() is end, but before GameResult()
Declaration
void OnLeaveGame()