Property | Type | Description | |
---|---|---|---|
BalanceSheetAchievementMode | bool | ||
debugMode | bool | ||
hidTouch | bool | ||
mainGame | MainGame | ||
muteSfx | bool | ||
muteSoundBackground | bool | ||
offline | bool | ||
screenHeight | int | ||
screenWidth | int | ||
setTouch | bool | ||
standaloneBetaMode | bool | ||
standaloneSingleLevelMode | bool | ||
startAchievementsMode | bool |
Method | Description | |
---|---|---|
Add ( Epigene.GAME.ATrigger trigger ) : void |
Adds the trigger to the current game. For smoothly "Remove trigger" execute "ATrigger.Repeat = 0;" Because that is a Remove, which can occur within trigger execution. Otherwise you get an error.
|
|
Add ( Epigene.GAME.GMGame newGame ) : void |
Adds the trigger.
|
|
Add ( string gameName, Epigene.GAME.ATrigger trigger ) : void |
Adds the trigger. For smoothly "Remove trigger" execute "ATrigger.Repeat = 0;" Because that is a Remove, which can occur within trigger execution. Otherwise you get an error.
|
|
AddDialogFromFile ( string fileName ) : void |
Add DialogTriggers from json file
|
|
ClearEvents ( ) : void | ||
Event ( string type, string eventId, string param = "" ) : void |
Delegate events to registred functions
|
|
Get ( string name ) : Epigene.GAME.GMGame |
Get an instance of the game if its exist
|
|
Load ( ) : bool |
Load a game
|
|
LoadJSon ( string fileName ) : object>.Dictionary |
Load settings from JSon file
|
|
LoadScene ( string level, bool _setTouch = false ) : void |
Loads the scene.
|
|
LoadText ( string fileName ) : string |
Load the specified fileName from the Resource directory as string
|
|
Pause ( string name ) : void |
Pause or resume the current game.
|
|
Play ( string name ) : void |
Pause or resume the current game.
|
|
RegisterEventHandler ( string eventType, EventFunction func, |
Register a funtion handler to an event.
|
|
Remove ( string name ) : void |
Removes the game specified by the name. If the name is "*" it will remove all games.
|
|
RemoveEventHandler ( string eventType, EventFunction func ) : void | ||
RemoveTriggers ( ) : void |
Remove all triggers from active game.
|
|
RemoveTriggers ( TriggerType type ) : void |
/// Remove all trigger with given type ///
|
|
ResetEventHandler ( string eventId, string data ) : void | ||
Save ( ) : bool |
Save a game with it's state and triggers
|
|
SaveJSon ( object>.Dictionary |
Save settings to JSon file Should be limitted for editor mode only. (file access)
|
|
Start ( string name ) : bool |
Start the game. The next update will process triggers for this game only. If the game not exist, it will log warning and return false. If another game already started, it will NOT send stop(), but pause it, while set the new one as current game.
|
|
Stop ( string name ) : bool |
Stop the specified name. If the name is empty string, it will stop the current game. If the name is "*" it will stop all games. If the name is specify one game, it will stop only that one. Errors will be logged as warning.
|
|
Update ( ) : void |
Process triggers
|
Method | Description | |
---|---|---|
GameManager ( ) : UnityEngine |
ctor
|
|
LoadEpigeneProperties ( ) : void |
public Add ( Epigene.GAME.ATrigger trigger ) : void | ||
trigger | Epigene.GAME.ATrigger | |
return | void |
public Add ( Epigene.GAME.GMGame newGame ) : void | ||
newGame | Epigene.GAME.GMGame | |
return | void |
public Add ( string gameName, Epigene.GAME.ATrigger trigger ) : void | ||
gameName | string | |
trigger | Epigene.GAME.ATrigger | |
return | void |
public AddDialogFromFile ( string fileName ) : void | ||
fileName | string | |
return | void |
public Event ( string type, string eventId, string param = "" ) : void | ||
type | string | |
eventId | string | |
param | string | |
return | void |
public Get ( string name ) : Epigene.GAME.GMGame | ||
name | string | Name of game |
return | Epigene.GAME.GMGame |
public static LoadJSon ( string fileName ) : object>.Dictionary |
||
fileName | string | |
return | object>.Dictionary |
public LoadScene ( string level, bool _setTouch = false ) : void | ||
level | string | Level. |
_setTouch | bool | Optional Parameter, set it true if you need it true. else leave it blank |
return | void |
public static LoadText ( string fileName ) : string | ||
fileName | string | File name and path realtive to Resource directory. |
return | string |
public RegisterEventHandler ( string eventType, EventFunction func, |
||
eventType | string | |
func | EventFunction | |
handler | ||
return | void |
public RemoveEventHandler ( string eventType, EventFunction func ) : void | ||
eventType | string | |
func | EventFunction | |
return | void |
public RemoveTriggers ( TriggerType type ) : void | ||
type | TriggerType | |
return | void |
public ResetEventHandler ( string eventId, string data ) : void | ||
eventId | string | |
data | string | |
return | void |
public static SaveJSon ( object>.Dictionary |
||
data | object>.Dictionary | |
fileName | string | |
return | void |