Mad Level Manager
|
Level access & loading routines. More...
Public Types | |
enum | Type { Other, Level, Extra } |
Public Member Functions | |
delegate bool | LevelPredicate (MadLevelConfiguration.Level level) |
Static Public Member Functions | |
static void | ReloadCurrent () |
Reloads current level. If this level has an extension, it will load first scene of its extension. More... | |
static AsyncOperation | ReloadCurrentAsync () |
Reloads the current level asynchronously in the background. This function requires Unity Pro. More... | |
static void | LoadLevelByName (string levelName) |
Loads level by its name defined in level configuration. More... | |
static AsyncOperation | LoadLevelByNameAsync (string levelName) |
Loads level by its name defined in level configuration asynchronously in the background. This function requires Unity Pro. More... | |
static bool | HasNext () |
Determines whether there is next level present in level configuration (are there any other levels further ahead?) More... | |
static bool | HasNextInGroup () |
Determines whether there is next level present in level configuration group (are there any other levels further ahead?) More... | |
static bool | HasNext (Type levelType) |
Determines whether there is next level present of the specified levelType in level configuration (are there any other levels further ahead?) More... | |
static bool | HasNextInGroup (Type levelType) |
Determines whether there is next level present of the specified levelType in level configuration group (are there any other levels further ahead?) More... | |
static void | LoadNext () |
Loads next level defined in level configuration. More... | |
static void | LoadNextInGroup () |
Loads next level defined in level configuration group. More... | |
static AsyncOperation | LoadNextAsync () |
Loads next level defined in level configuration asynchronously in the background. This function requires Unity Pro. More... | |
static AsyncOperation | LoadNextInGroupAsync () |
Loads next level defined in level configuration group asynchronously in the background. This function requires Unity Pro. More... | |
static void | LoadNext (Type levelType) |
Loads first level with type More... | |
static void | LoadNextInGroup (Type levelType) |
Loads first level with type More... | |
static AsyncOperation | LoadNextAsync (Type levelType) |
Loads first level with type More... | |
static AsyncOperation | LoadNextInGroupAsync (Type levelType) |
Loads first level with type More... | |
static bool | HasPrevious () |
Determines whether there is previous level present in level configuration (are there any other levels before this one?) More... | |
static bool | HasPreviousInGroup () |
Determines whether there is previous level present in current level configuration group (are there any other levels before this one?) More... | |
static bool | HasPrevious (Type levelType) |
Determines whether there is previous level present of the specified levelType in level configuration (are there any other levels further ahead?) More... | |
static bool | HasPreviousInGroup (Type levelType) |
Determines whether there is previous level present of the specified levelType in level configuration group (are there any other levels further ahead?) More... | |
static void | LoadPrevious () |
Loads previous level defined in level configuration. More... | |
static void | LoadPreviousInGroup () |
Loads previous level defined in level configuration group. More... | |
static AsyncOperation | LoadPreviousAsync () |
Loads previous level defined in level configuration asynchronously in the background. This function requires Unity Pro. More... | |
static AsyncOperation | LoadPreviousInGroupAsync () |
Loads previous level defined in level configuration group asynchronously in the background. This function requires Unity Pro. More... | |
static void | LoadPrevious (Type levelType) |
Loads first level with type More... | |
static void | LoadPreviousInGroup (Type levelType) |
Loads first level with type More... | |
static AsyncOperation | LoadPreviousAsync (Type levelType) |
Loads first level with type More... | |
static AsyncOperation | LoadPreviousInGroupAsync (Type levelType) |
Loads first level with type More... | |
static bool | HasFirst () |
Tells if there is at least one level set in active level configuration. More... | |
static bool | HasFirstInGroup () |
Tells if there is at least one level set in current group. More... | |
static bool | HasFirstInGroup (string groupName) |
Tells if there is at least one level set in active level configuration group. More... | |
static bool | HasFirst (Type levelType) |
Tells if there is at least one level of type More... | |
static bool | HasFirstInGroup (Type levelType) |
Tells if there is at least one level of type More... | |
static bool | HasFirstInGroup (Type levelType, string groupName) |
Tells if there is at least one level of type More... | |
static void | LoadFirst () |
Loads the first level set in level configuration. More... | |
static void | LoadFirstInGroup () |
Loads the first level set in current group. More... | |
static void | LoadFirstInGroup (string groupName) |
Loads the first level set in level configuration group. More... | |
static AsyncOperation | LoadFirstAsync () |
Loads the first level set in level configuration asynchronously in the background. This function requires Unity Pro. More... | |
static AsyncOperation | LoadFirstInGroupAsync () |
Loads the first level set in current group asynchronously in the background. This function requires Unity Pro. More... | |
static AsyncOperation | LoadFirstInGroupAsync (string groupName) |
Loads the first level set in level configuration group asynchronously in the background. This function requires Unity Pro. More... | |
static void | LoadFirst (Type levelType) |
Loads the first level of type More... | |
static void | LoadFirstInGroup (Type levelType) |
Loads the first level of type More... | |
static void | LoadFirstInGroup (Type levelType, string groupName) |
Loads the first level of type More... | |
static AsyncOperation | LoadFirstAsync (Type levelType) |
Loads the first level of type More... | |
static AsyncOperation | LoadFirstInGroupAsync (Type levelType) |
Loads the first level of type More... | |
static AsyncOperation | LoadFirstInGroupAsync (Type levelType, string groupName) |
Loads the first level of type More... | |
static bool | CanContinue () |
When game is currently in a level with an extension set, this method will tell if the level can be continued using the MadLevel.Continue() method. More... | |
static void | Continue () |
When game is currently in a level with an extension set, this method will load the next scene defined by that extension (if exists). Remember to always check if there is a possibility of continuation using MadLevel.CanContinue() More... | |
static AsyncOperation | ContinueAsync () |
When game is currently in a level with an extension set, this method will load the next scene defined by that extension (if exists). Remember to always check if there is a possibility of continuation using MadLevel.CanContinue(). This is an async operation and will return AsyncOperation object. More... | |
static string[] | GetAllLevelNames (string group=null) |
Gets the all defined level names. More... | |
static string[] | GetAllLevelNames (MadLevel.Type type, string group=null) |
Gets the all defined level names of given type. More... | |
static string | FindFirstCompletedLevelName () |
Finds the first completed level (in the order). More... | |
static string | FindFirstCompletedLevelName (string groupName) |
Finds the first completed level (in the order). More... | |
static string | FindLastCompletedLevelName () |
Finds the last completed level (in the order). More... | |
static string | FindLastCompletedLevelName (string groupName) |
Finds the last completed level (in the order). More... | |
static string | FindFirstLockedLevelName () |
Finds the first locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindFirstLockedLevelName (string groupName) |
Finds the first locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindLastLockedLevelName () |
Finds the last locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindLastLockedLevelName (string groupName) |
Finds the last locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindFirstUnlockedLevelName () |
Finds the first unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindFirstUnlockedLevelName (string groupName) |
Finds the first unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindLastUnlockedLevelName () |
Finds the last unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindLastUnlockedLevelName (string groupName) |
Finds the last unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time. More... | |
static string | FindFirstLevelName (string groupName, LevelPredicate predicate) |
Finds the first name of the level, that predicate returns More... | |
static string | FindFirstLevelName (LevelPredicate predicate) |
Finds the first name of the level, that predicate returns More... | |
static string | FindFirstLevelName (MadLevel.Type levelType, string groupName) |
Finds the first name of the level of given More... | |
static string | FindFirstLevelName (MadLevel.Type levelType) |
Finds the first name of the level of given More... | |
static string | FindLastLevelName (string groupName, LevelPredicate predicate) |
Finds the last name of the level, that predicate returns More... | |
static string | FindLastLevelName (LevelPredicate predicate) |
Finds the last name of the level, that predicate returns More... | |
static string | FindLastLevelName (MadLevel.Type levelType, string groupName) |
Finds the last name of the level of given More... | |
static string | FindLastLevelName (MadLevel.Type levelType) |
Finds the last name of the level of given More... | |
static string | GetPreviousLevelName () |
Gets the name of the previous level. More... | |
static string | GetPreviousLevelName (MadLevel.Type type) |
Gets the name of the previous level of given type. More... | |
static string | GetPreviousLevelNameTo (string levelName) |
Gets the name of a level that exists before given level. More... | |
static string | GetPreviousLevelNameTo (string levelName, MadLevel.Type type) |
Gets the name of a level (with given type) that exists before given level. More... | |
static string | GetNextLevelName () |
Gets the name of the next level. More... | |
static string | GetNextLevelName (MadLevel.Type type) |
Gets the name of the next level of given type. More... | |
static string | GetNextLevelNameTo (string levelName) |
Gets the name of a level that exists after given level. More... | |
static string | GetNextLevelNameTo (string levelName, MadLevel.Type type) |
Gets the name of a level (with given type) that exists after given level. More... | |
Properties | |
static string | defaultGroupName [get] |
static MadLevelConfiguration | activeConfiguration [get] |
Gets the active configuration. More... | |
static bool | hasActiveConfiguration [get] |
Gets a value indicating whether application has active configuration. More... | |
static string | arguments [get, set] |
Gets or sets this level arguments. More... | |
static string | currentLevelName [get, set] |
Gets the name of the current level. More... | |
static string | currentGroupName [get] |
static bool | hasExtension [get] |
static MadLevelExtension | currentExtension [get, set] |
static int | currentExtensionProgress [get, set] |
static string | lastLevelName [get, set] |
static string | lastPlayedLevelName [get, set] |
Gets or sets the name of the last visited level (of any type). More... | |
Level access & loading routines.
|
static |
When game is currently in a level with an extension set, this method will tell if the level can be continued using the MadLevel.Continue() method.
|
static |
When game is currently in a level with an extension set, this method will load the next scene defined by that extension (if exists). Remember to always check if there is a possibility of continuation using MadLevel.CanContinue()
|
static |
When game is currently in a level with an extension set, this method will load the next scene defined by that extension (if exists). Remember to always check if there is a possibility of continuation using MadLevel.CanContinue(). This is an async operation and will return AsyncOperation object.
|
static |
Finds the first completed level (in the order).
null
if there's no level that is marked as completed.
|
static |
Finds the first completed level (in the order).
null
if there's no level that is marked as completed.
|
static |
Finds the first name of the level, that predicate returns
true
value.
null if not found.
predicate |
|
|
static |
Finds the first name of the level, that predicate returns
true
value.
null if not found.
predicate |
|
|
static |
Finds the first name of the level of given
type
.
null if not found.
levelType |
|
|
static |
Finds the first name of the level of given
type
.
null if not found.
levelType |
|
|
static |
Finds the first locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the first locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the first unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the first unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the last completed level (in the order).
null
if there's no level that is marked as completed.
|
static |
Finds the last completed level (in the order).
null
if there's no level that is marked as completed.
|
static |
Finds the last name of the level, that predicate returns
true
value.
null if not found.
predicate |
|
|
static |
Finds the last name of the level, that predicate returns
true
value.
null if not found.
predicate |
|
|
static |
Finds the last name of the level of given
type
.
null if not found.
levelType |
|
|
static |
Finds the last name of the level of given
type
.
null if not found.
levelType |
|
|
static |
Finds the last locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the last locked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the last unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Finds the last unlocked level (in the order). Be aware that locked flag in the new game is set when the player visits level select screen for the first time.
null
if there's no level that is marked as locked.
|
static |
Gets the all defined level names.
|
static |
Gets the all defined level names of given type.
|
static |
Gets the name of the next level.
null
if not found.
|
static |
Gets the name of the next level of given type.
null
if not found.type | Level type. |
|
static |
Gets the name of a level that exists after given level.
null
if not found.levelName | Level name. |
|
static |
Gets the name of a level (with given type) that exists after given level.
null
if not found.levelName | Level name. |
type | Type of previous level. |
|
static |
Gets the name of the previous level.
null if not found.
|
static |
Gets the name of the previous level of given type.
null
if not found.type | Level type. |
|
static |
Gets the name of a level that exists before given level.
null
if not found.levelName | Level name. |
|
static |
Gets the name of a level (with given type) that exists before given level.
null
if not found.levelName | Level name. |
type | Type of previous level. |
|
static |
Tells if there is at least one level set in active level configuration.
true
if there is at least one level configured; otherwise, false
.
|
static |
Tells if there is at least one level of type
levelType
set in active level configuration.
levelType | Level type to find. |
true
if there is at least one level of given type configured; otherwise, false
.
|
static |
Tells if there is at least one level set in current group.
groupName | Name of a group. |
true
if there is at least one level configured; otherwise, false
.
|
static |
Tells if there is at least one level set in active level configuration group.
groupName | Name of a group. |
true
if there is at least one level configured; otherwise, false
.
|
static |
Tells if there is at least one level of type
levelType
set in current group.
levelType | Level type to find. |
true
if there is at least one level of given type configured; otherwise, false
.
|
static |
Tells if there is at least one level of type
levelType
set in active level configuration group.
levelType | Level type to find. |
true
if there is at least one level of given type configured; otherwise, false
.
|
static |
Determines whether there is next level present in level configuration (are there any other levels further ahead?)
true
if next level is available; otherwise, false
.
|
static |
Determines whether there is next level present of the specified levelType in level configuration (are there any other levels further ahead?)
true
if next level is present; otherwise, false
. levelType | Type of next level to look after. |
|
static |
Determines whether there is next level present in level configuration group (are there any other levels further ahead?)
true
if next level is available; otherwise, false
.
|
static |
Determines whether there is next level present of the specified levelType in level configuration group (are there any other levels further ahead?)
true
if next level is present; otherwise, false
. levelType | Type of next level to look after. |
|
static |
Determines whether there is previous level present in level configuration (are there any other levels before this one?)
true
if previous level is available; otherwise, false
.
|
static |
Determines whether there is previous level present of the specified levelType in level configuration (are there any other levels further ahead?)
true
if previous level is present; otherwise, false
. levelType | Type of previous level to look after. |
|
static |
Determines whether there is previous level present in current level configuration group (are there any other levels before this one?)
true
if previous level is available; otherwise, false
.
|
static |
Determines whether there is previous level present of the specified levelType in level configuration group (are there any other levels further ahead?)
true
if previous level is present; otherwise, false
. levelType | Type of previous level to look after. |
|
static |
Loads the first level set in level configuration.
|
static |
Loads the first level of type
levelType
set in level configuration.
levelType | Level type. |
|
static |
Loads the first level set in level configuration asynchronously in the background. This function requires Unity Pro.
|
static |
Loads the first level of type
levelType
set in level configuration asynchronously in the background. This function requires Unity Pro.
levelType | Level type. |
|
static |
Loads the first level set in current group.
|
static |
Loads the first level set in level configuration group.
|
static |
Loads the first level of type
levelType
set in current group.
levelType | Level type. |
|
static |
Loads the first level of type
levelType
set in level configuration group.
levelType | Level type. |
|
static |
Loads the first level set in current group asynchronously in the background. This function requires Unity Pro.
|
static |
Loads the first level set in level configuration group asynchronously in the background. This function requires Unity Pro.
|
static |
Loads the first level of type
levelType
set in current group in the background. This function requires Unity Pro.
levelType | Level type. |
|
static |
Loads the first level of type
levelType
set in level configuration group asynchronously in the background. This function requires Unity Pro.
levelType | Level type. |
|
static |
Loads level by its name defined in level configuration.
levelName | Level name. |
|
static |
Loads level by its name defined in level configuration asynchronously in the background. This function requires Unity Pro.
levelName | Level name. |
|
static |
Loads next level defined in level configuration.
|
static |
Loads first level with type
levelType
found after current level in level configuration.
levelType | Level type to load. |
|
static |
Loads next level defined in level configuration asynchronously in the background. This function requires Unity Pro.
|
static |
Loads first level with type
levelType
found after current level in level configuration asynchronously in the background. This function requires Unity Pro.
levelType | Level type to load. |
|
static |
Loads next level defined in level configuration group.
|
static |
Loads first level with type
levelType
found after current level in level configuration group.
levelType | Level type to load. |
|
static |
Loads next level defined in level configuration group asynchronously in the background. This function requires Unity Pro.
|
static |
Loads first level with type
levelType
found after current level in level configuration group asynchronously in the background. This function requires Unity Pro.
levelType | Level type to load. |
|
static |
Loads previous level defined in level configuration.
|
static |
Loads first level with type
levelType
found before current level in level configuration.
levelType | Level type to load. |
|
static |
Loads previous level defined in level configuration asynchronously in the background. This function requires Unity Pro.
|
static |
Loads first level with type
levelType
found before current level in level configuration asynchronously in the background. This function requires Unity Pro.
levelType | Level type to load. |
|
static |
Loads previous level defined in level configuration group.
|
static |
Loads first level with type
levelType
found before current level in level configuration group.
levelType | Level type to load. |
|
static |
Loads previous level defined in level configuration group asynchronously in the background. This function requires Unity Pro.
|
static |
Loads first level with type
levelType
found before current level in level configuration group asynchronously in the background. This function requires Unity Pro.
levelType | Level type to load. |
|
static |
Reloads current level. If this level has an extension, it will load first scene of its extension.
|
static |
Reloads the current level asynchronously in the background. This function requires Unity Pro.
|
staticget |
Gets the active configuration.
The active configuration.
|
staticgetset |
Gets or sets this level arguments.
The arguments.
|
staticgetset |
Gets the name of the current level.
The name of the current level.
|
staticget |
Gets a value indicating whether application has active configuration.
true
if has active configuration; otherwise, false
.
|
staticgetset |
Gets or sets the name of the last visited level (of any type).
The name of the last visited level.