Mad Level Manager
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
MadLevelManager.IMadLevelProfileBackend Interface Reference

Interface of MadLevelProfile save system backend. Implement it and set as MadLevelProfile.backend to override default PlayerPrefs backend. More...

Inheritance diagram for MadLevelManager.IMadLevelProfileBackend:
MadLevelManager.MadLevelProfile.DefaultBackend MadLevelManager.MadLevelProfileBufferedBackend

Public Member Functions

void Start ()
 Executed at the start of lifetime. At this point all properties are set. More...
 
string LoadProfile (string profileName)
 Loads the profile string. It should be the same string from SaveProfile() or null if it is not available. More...
 
void SaveProfile (string profileName, string value)
 Requests the current profile value to be saved. This method will be called on each change, so it may be a good idea to buffer these calls. More...
 
void Flush ()
 Forces all the data to be saved immediately. More...
 
bool CanWorkInEditMode ()
 Should return true if this backend can be used in the edit mode (editor). More...
 

Detailed Description

Interface of MadLevelProfile save system backend. Implement it and set as MadLevelProfile.backend to override default PlayerPrefs backend.

Member Function Documentation

bool MadLevelManager.IMadLevelProfileBackend.CanWorkInEditMode ( )

Should return true if this backend can be used in the edit mode (editor).

Implemented in MadLevelManager.MadLevelProfile.DefaultBackend, and MadLevelManager.MadLevelProfileBufferedBackend.

void MadLevelManager.IMadLevelProfileBackend.Flush ( )

Forces all the data to be saved immediately.

Implemented in MadLevelManager.MadLevelProfile.DefaultBackend, and MadLevelManager.MadLevelProfileBufferedBackend.

string MadLevelManager.IMadLevelProfileBackend.LoadProfile ( string  profileName)

Loads the profile string. It should be the same string from SaveProfile() or null if it is not available.

Parameters
profileNameThe profile name.
Returns
Profile string.

Implemented in MadLevelManager.MadLevelProfile.DefaultBackend, and MadLevelManager.MadLevelProfileBufferedBackend.

void MadLevelManager.IMadLevelProfileBackend.SaveProfile ( string  profileName,
string  value 
)

Requests the current profile value to be saved. This method will be called on each change, so it may be a good idea to buffer these calls.

Parameters
profileNameThe profile name
valueProfile string.

Implemented in MadLevelManager.MadLevelProfileBufferedBackend.

void MadLevelManager.IMadLevelProfileBackend.Start ( )

Executed at the start of lifetime. At this point all properties are set.

Implemented in MadLevelManager.MadLevelProfile.DefaultBackend, and MadLevelManager.MadLevelProfileBufferedBackend.


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