Mad Level Manager
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Types | Public Member Functions | Static Public Member Functions | Properties | List of all members
MadLevelManager.MadLevel Class Reference

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 CanStreamedLevelBeLoaded (string levelName)
 Tells if the streamed level can be loaded. More...
 
static float GetStreamProgressForLevel (string levelName)
 Returns the progress of level streaming. 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...
 
static int GetOrdeal (string levelName, Type type)
 

Properties

static bool extensionDefined [get]
 
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...
 

Detailed Description

Level access & loading routines.

Member Function Documentation

static bool MadLevelManager.MadLevel.CanContinue ( )
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.

Returns
static bool MadLevelManager.MadLevel.CanStreamedLevelBeLoaded ( string  levelName)
static

Tells if the streamed level can be loaded.

Parameters
levelName
Returns
static void MadLevelManager.MadLevel.Continue ( )
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 AsyncOperation MadLevelManager.MadLevel.ContinueAsync ( )
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 string MadLevelManager.MadLevel.FindFirstCompletedLevelName ( )
static

Finds the first completed level (in the order).

Returns
The first completed level name or null if there's no level that is marked as completed.
static string MadLevelManager.MadLevel.FindFirstCompletedLevelName ( string  groupName)
static

Finds the first completed level (in the order).

Returns
The first completed level name or null if there's no level that is marked as completed.
static string MadLevelManager.MadLevel.FindFirstLevelName ( string  groupName,
LevelPredicate  predicate 
)
static

Finds the first name of the level, that predicate returns

true value.

Returns
The first found level or null if not found.
Parameters
predicateThe predicate.
static string MadLevelManager.MadLevel.FindFirstLevelName ( LevelPredicate  predicate)
static

Finds the first name of the level, that predicate returns

true value.

Returns
The first found level or null if not found.
Parameters
predicateThe predicate.
static string MadLevelManager.MadLevel.FindFirstLevelName ( MadLevel.Type  levelType,
string  groupName 
)
static

Finds the first name of the level of given

type.

Returns
The first found level or null if not found.
Parameters
levelTypeThe level type.
static string MadLevelManager.MadLevel.FindFirstLevelName ( MadLevel.Type  levelType)
static

Finds the first name of the level of given

type.

Returns
The first found level or null if not found.
Parameters
levelTypeThe level type.
static string MadLevelManager.MadLevel.FindFirstLockedLevelName ( )
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.

Returns
The first locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindFirstLockedLevelName ( string  groupName)
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.

Returns
The first locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindFirstUnlockedLevelName ( )
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.

Returns
The first locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindFirstUnlockedLevelName ( string  groupName)
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.

Returns
The first locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindLastCompletedLevelName ( )
static

Finds the last completed level (in the order).

Returns
The last completed level name or null if there's no level that is marked as completed.
static string MadLevelManager.MadLevel.FindLastCompletedLevelName ( string  groupName)
static

Finds the last completed level (in the order).

Returns
The last completed level name or null if there's no level that is marked as completed.
static string MadLevelManager.MadLevel.FindLastLevelName ( string  groupName,
LevelPredicate  predicate 
)
static

Finds the last name of the level, that predicate returns

true value.

Returns
The last found level or null if not found.
Parameters
predicateThe predicate.
static string MadLevelManager.MadLevel.FindLastLevelName ( LevelPredicate  predicate)
static

Finds the last name of the level, that predicate returns

true value.

Returns
The last found level or null if not found.
Parameters
predicateThe predicate.
static string MadLevelManager.MadLevel.FindLastLevelName ( MadLevel.Type  levelType,
string  groupName 
)
static

Finds the last name of the level of given

type.

Returns
The last found level or null if not found.
Parameters
levelTypeThe level type.
static string MadLevelManager.MadLevel.FindLastLevelName ( MadLevel.Type  levelType)
static

Finds the last name of the level of given

type.

Returns
The last found level or null if not found.
Parameters
levelTypeThe level type.
static string MadLevelManager.MadLevel.FindLastLockedLevelName ( )
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.

Returns
The last locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindLastLockedLevelName ( string  groupName)
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.

Returns
The last locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindLastUnlockedLevelName ( )
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.

Returns
The first locked level name or null if there's no level that is marked as locked.
static string MadLevelManager.MadLevel.FindLastUnlockedLevelName ( string  groupName)
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.

Returns
The first locked level name or null if there's no level that is marked as locked.
static string [] MadLevelManager.MadLevel.GetAllLevelNames ( string  group = null)
static

Gets the all defined level names.

Returns
The all defined level names.
static string [] MadLevelManager.MadLevel.GetAllLevelNames ( MadLevel.Type  type,
string  group = null 
)
static

Gets the all defined level names of given type.

Returns
The all defined level names of given type.
static string MadLevelManager.MadLevel.GetNextLevelName ( )
static

Gets the name of the next level.

Returns
The next level name or null if not found.
static string MadLevelManager.MadLevel.GetNextLevelName ( MadLevel.Type  type)
static

Gets the name of the next level of given type.

Returns
The next level name or null if not found.
Parameters
typeLevel type.
static string MadLevelManager.MadLevel.GetNextLevelNameTo ( string  levelName)
static

Gets the name of a level that exists after given level.

Returns
The name of next level or null if not found.
Parameters
levelNameLevel name.
static string MadLevelManager.MadLevel.GetNextLevelNameTo ( string  levelName,
MadLevel.Type  type 
)
static

Gets the name of a level (with given type) that exists after given level.

Returns
The name of next level or null if not found.
Parameters
levelNameLevel name.
typeType of previous level.
static string MadLevelManager.MadLevel.GetPreviousLevelName ( )
static

Gets the name of the previous level.

Returns
The previous level name or null if not found.
static string MadLevelManager.MadLevel.GetPreviousLevelName ( MadLevel.Type  type)
static

Gets the name of the previous level of given type.

Returns
The previous level name or null if not found.
Parameters
typeLevel type.
static string MadLevelManager.MadLevel.GetPreviousLevelNameTo ( string  levelName)
static

Gets the name of a level that exists before given level.

Returns
The name of previous level or null if not found.
Parameters
levelNameLevel name.
static string MadLevelManager.MadLevel.GetPreviousLevelNameTo ( string  levelName,
MadLevel.Type  type 
)
static

Gets the name of a level (with given type) that exists before given level.

Returns
The name of previous level or null if not found.
Parameters
levelNameLevel name.
typeType of previous level.
static float MadLevelManager.MadLevel.GetStreamProgressForLevel ( string  levelName)
static

Returns the progress of level streaming.

Parameters
levelName
Returns
static bool MadLevelManager.MadLevel.HasFirst ( )
static

Tells if there is at least one level set in active level configuration.

Returns
true if there is at least one level configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasFirst ( Type  levelType)
static

Tells if there is at least one level of type

levelType set in active level configuration.

Parameters
levelTypeLevel type to find.
Returns
true if there is at least one level of given type configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasFirstInGroup ( )
static

Tells if there is at least one level set in current group.

Parameters
groupNameName of a group.
Returns
true if there is at least one level configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasFirstInGroup ( string  groupName)
static

Tells if there is at least one level set in active level configuration group.

Parameters
groupNameName of a group.
Returns
true if there is at least one level configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasFirstInGroup ( Type  levelType)
static

Tells if there is at least one level of type

levelType set in current group.

Parameters
levelTypeLevel type to find.
Returns
true if there is at least one level of given type configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasFirstInGroup ( Type  levelType,
string  groupName 
)
static

Tells if there is at least one level of type

levelType set in active level configuration group.

Parameters
levelTypeLevel type to find.
Returns
true if there is at least one level of given type configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasNext ( )
static

Determines whether there is next level present in level configuration (are there any other levels further ahead?)

Returns
true if next level is available; otherwise, false.
static bool MadLevelManager.MadLevel.HasNext ( Type  levelType)
static

Determines whether there is next level present of the specified levelType in level configuration (are there any other levels further ahead?)

Returns
true if next level is present; otherwise, false.
Parameters
levelTypeType of next level to look after.
static bool MadLevelManager.MadLevel.HasNextInGroup ( )
static

Determines whether there is next level present in level configuration group (are there any other levels further ahead?)

Returns
true if next level is available; otherwise, false.
static bool MadLevelManager.MadLevel.HasNextInGroup ( Type  levelType)
static

Determines whether there is next level present of the specified levelType in level configuration group (are there any other levels further ahead?)

Returns
true if next level is present; otherwise, false.
Parameters
levelTypeType of next level to look after.
static bool MadLevelManager.MadLevel.HasPrevious ( )
static

Determines whether there is previous level present in level configuration (are there any other levels before this one?)

Returns
true if previous level is available; otherwise, false.
static bool MadLevelManager.MadLevel.HasPrevious ( Type  levelType)
static

Determines whether there is previous level present of the specified levelType in level configuration (are there any other levels further ahead?)

Returns
true if previous level is present; otherwise, false.
Parameters
levelTypeType of previous level to look after.
static bool MadLevelManager.MadLevel.HasPreviousInGroup ( )
static

Determines whether there is previous level present in current level configuration group (are there any other levels before this one?)

Returns
true if previous level is available; otherwise, false.
static bool MadLevelManager.MadLevel.HasPreviousInGroup ( Type  levelType)
static

Determines whether there is previous level present of the specified levelType in level configuration group (are there any other levels further ahead?)

Returns
true if previous level is present; otherwise, false.
Parameters
levelTypeType of previous level to look after.
static void MadLevelManager.MadLevel.LoadFirst ( )
static

Loads the first level set in level configuration.

static void MadLevelManager.MadLevel.LoadFirst ( Type  levelType)
static

Loads the first level of type

levelType set in level configuration.

Parameters
levelTypeLevel type.
static AsyncOperation MadLevelManager.MadLevel.LoadFirstAsync ( )
static

Loads the first level set in level configuration asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadFirstAsync ( Type  levelType)
static

Loads the first level of type

levelType set in level configuration asynchronously in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.LoadFirstInGroup ( )
static

Loads the first level set in current group.

static void MadLevelManager.MadLevel.LoadFirstInGroup ( string  groupName)
static

Loads the first level set in level configuration group.

static void MadLevelManager.MadLevel.LoadFirstInGroup ( Type  levelType)
static

Loads the first level of type

levelType set in current group.

Parameters
levelTypeLevel type.
static void MadLevelManager.MadLevel.LoadFirstInGroup ( Type  levelType,
string  groupName 
)
static

Loads the first level of type

levelType set in level configuration group.

Parameters
levelTypeLevel type.
static AsyncOperation MadLevelManager.MadLevel.LoadFirstInGroupAsync ( )
static

Loads the first level set in current group asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadFirstInGroupAsync ( string  groupName)
static

Loads the first level set in level configuration group asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadFirstInGroupAsync ( Type  levelType)
static

Loads the first level of type

levelType set in current group in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type.
Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadFirstInGroupAsync ( Type  levelType,
string  groupName 
)
static

Loads the first level of type

levelType set in level configuration group asynchronously in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.LoadLevelByName ( string  levelName)
static

Loads level by its name defined in level configuration.

Parameters
levelNameLevel name.
static AsyncOperation MadLevelManager.MadLevel.LoadLevelByNameAsync ( string  levelName)
static

Loads level by its name defined in level configuration asynchronously in the background. This function requires Unity Pro.

Parameters
levelNameLevel name.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.LoadNext ( )
static

Loads next level defined in level configuration.

static void MadLevelManager.MadLevel.LoadNext ( Type  levelType)
static

Loads first level with type

levelType found after current level in level configuration.

Parameters
levelTypeLevel type to load.
static AsyncOperation MadLevelManager.MadLevel.LoadNextAsync ( )
static

Loads next level defined in level configuration asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadNextAsync ( Type  levelType)
static

Loads first level with type

levelType found after current level in level configuration asynchronously in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type to load.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.LoadNextInGroup ( )
static

Loads next level defined in level configuration group.

static void MadLevelManager.MadLevel.LoadNextInGroup ( Type  levelType)
static

Loads first level with type

levelType found after current level in level configuration group.

Parameters
levelTypeLevel type to load.
static AsyncOperation MadLevelManager.MadLevel.LoadNextInGroupAsync ( )
static

Loads next level defined in level configuration group asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadNextInGroupAsync ( Type  levelType)
static

Loads first level with type

levelType found after current level in level configuration group asynchronously in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type to load.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.LoadPrevious ( )
static

Loads previous level defined in level configuration.

static void MadLevelManager.MadLevel.LoadPrevious ( Type  levelType)
static

Loads first level with type

levelType found before current level in level configuration.

Parameters
levelTypeLevel type to load.
static AsyncOperation MadLevelManager.MadLevel.LoadPreviousAsync ( )
static

Loads previous level defined in level configuration asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadPreviousAsync ( Type  levelType)
static

Loads first level with type

levelType found before current level in level configuration asynchronously in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type to load.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.LoadPreviousInGroup ( )
static

Loads previous level defined in level configuration group.

static void MadLevelManager.MadLevel.LoadPreviousInGroup ( Type  levelType)
static

Loads first level with type

levelType found before current level in level configuration group.

Parameters
levelTypeLevel type to load.
static AsyncOperation MadLevelManager.MadLevel.LoadPreviousInGroupAsync ( )
static

Loads previous level defined in level configuration group asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.
static AsyncOperation MadLevelManager.MadLevel.LoadPreviousInGroupAsync ( Type  levelType)
static

Loads first level with type

levelType found before current level in level configuration group asynchronously in the background. This function requires Unity Pro.

Parameters
levelTypeLevel type to load.
Returns
AsyncOperation object.
static void MadLevelManager.MadLevel.ReloadCurrent ( )
static

Reloads current level. If this level has an extension, it will load first scene of its extension.

static AsyncOperation MadLevelManager.MadLevel.ReloadCurrentAsync ( )
static

Reloads the current level asynchronously in the background. This function requires Unity Pro.

Returns
AsyncOperation object.

Property Documentation

MadLevelConfiguration MadLevelManager.MadLevel.activeConfiguration
staticget

Gets the active configuration.

The active configuration.

string MadLevelManager.MadLevel.arguments
staticgetset

Gets or sets this level arguments.

The arguments.

string MadLevelManager.MadLevel.currentLevelName
staticgetset

Gets the name of the current level.

The name of the current level.

bool MadLevelManager.MadLevel.hasActiveConfiguration
staticget

Gets a value indicating whether application has active configuration.

true if has active configuration; otherwise, false.

string MadLevelManager.MadLevel.lastPlayedLevelName
staticgetset

Gets or sets the name of the last visited level (of any type).

The name of the last visited level.


The documentation for this class was generated from the following file: