Class GamePlayController
Inheritance
System.Object
GamePlayController
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)
System.Object.ToString()
Assembly: Macaca.GameSystem.dll
Syntax
public class GamePlayController
Constructors
|
Improve this Doc
View Source
GamePlayController(ApplicationController, IGamePlayData)
Declaration
public GamePlayController(ApplicationController _applicationController, IGamePlayData gamePlayData)
Parameters
Fields
|
Improve this Doc
View Source
gamePlayUnpauseUpdateExecuter
Declaration
public Executor gamePlayUnpauseUpdateExecuter
Field Value
Type |
Description |
Rayark.Mast.Executor |
|
|
Improve this Doc
View Source
gamePlayUpdateExecuter
Declaration
public Executor gamePlayUpdateExecuter
Field Value
Type |
Description |
Rayark.Mast.Executor |
|
Properties
|
Improve this Doc
View Source
alreadyContinue
Is GamePlay alreadyContinue, value will keep until next gameplay start.
Declaration
public bool alreadyContinue { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
isContinueing
Is GamePlay Continue progress working.
Declaration
public bool isContinueing { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
isFailed
Is GamePlay Failed, value will keep until next gameplay start.
Declaration
public bool isFailed { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
isGaming
Declaration
public bool isGaming { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
isInResult
Is In Result , value will keep until next gameplay start.
Declaration
public bool isInResult { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
isPause
Is GamePlay Pause, value will keep until next gameplay start.
Should be only modify the value by EnterPause() or ResumePause()
Declaration
public bool isPause { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
isQuiting
Is GamePlay Quiting, value will keep until next gameplay start.
Declaration
public bool isQuiting { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
AddToUnpauseUpdateExecuter(IResumable)
Declaration
public void AddToUnpauseUpdateExecuter(IResumable c)
Parameters
Type |
Name |
Description |
Rayark.Mast.IResumable |
c |
|
|
Improve this Doc
View Source
AddToUpdateExecuter(IResumable)
Declaration
public void AddToUpdateExecuter(IResumable c)
Parameters
Type |
Name |
Description |
Rayark.Mast.IResumable |
c |
|
|
Improve this Doc
View Source
EnterPause()
Declaration
|
Improve this Doc
View Source
FailedGamePlay()
Failed and exit the gameplay, this will fire continue flow(if continue is available)
MacacaGames.GameSystem.GamePlayController.GameFaildFlow for the contniue behaviour
or OnContinueFlow(IReturn<Boolean>) for your continue implement
Declaration
public void FailedGamePlay()
|
Improve this Doc
View Source
GamePlayControllerCoreLoop(IEnumerator, IEnumerator)
Declaration
public Executor GamePlayControllerCoreLoop(IEnumerator gamePlayUpdate, IEnumerator unPauseGamePlayUpdate)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerator |
gamePlayUpdate |
|
System.Collections.IEnumerator |
unPauseGamePlayUpdate |
|
Returns
Type |
Description |
Rayark.Mast.Executor |
|
|
Improve this Doc
View Source
GetGamePlayData()
Get the current GamePlayData
Declaration
public IGamePlayData GetGamePlayData()
Returns
|
Improve this Doc
View Source
GetGamePlayData<T>()
Get the current GamePlayData and convert to target case
Declaration
public T GetGamePlayData<T>()
where T : class, IGamePlayData
Returns
Type |
Description |
T |
GamePlayData
|
Type Parameters
Name |
Description |
T |
Target Type
|
|
Improve this Doc
View Source
Init()
Declaration
|
Improve this Doc
View Source
OnEnterLobby()
Declaration
public void OnEnterLobby()
|
Improve this Doc
View Source
QuitGamePlay()
Quit and exit the gameplay, usually used on UI to quit.
Declaration
public void QuitGamePlay()
|
Improve this Doc
View Source
RemoveFromUnpauseUpdateExecuter(IResumable)
Declaration
public void RemoveFromUnpauseUpdateExecuter(IResumable c)
Parameters
Type |
Name |
Description |
Rayark.Mast.IResumable |
c |
|
|
Improve this Doc
View Source
RemoveFromUpdateExecuter(IResumable)
Declaration
public void RemoveFromUpdateExecuter(IResumable c)
Parameters
Type |
Name |
Description |
Rayark.Mast.IResumable |
c |
|
|
Improve this Doc
View Source
ResumePause()
Declaration
public void ResumePause()
|
Improve this Doc
View Source
SuccessGamePlay()
End and exit the gameplay,used on Game Clear
Declaration
public void SuccessGamePlay()