Module ...
Handles the player profile, possibly online
Functions
_M:filterLoadData (online, field) | Check if we can load this field from this profile |
_M:filterSaveData (field) | Return if we should save this field in the online or offline profile |
_M:getNews (callback) | Orders for the profile thread |
_M:handleEvent (e) | Got an event from the profile thread |
_M:loadGenericProfile () | Loads profile generic profile from disk Generic profile is always read from the "online" profile |
_M:loadModuleProfile (short_name, mod_def) | Loads profile module profile from disk |
_M:popEvent (specific) | Events from the profile thread |
_M:saveGenericProfile (name, data, nosync, nowrite) | Saves a profile data |
_M:saveModuleProfile (name, data, nosync, nowrite) | Saves a module profile data |
basicSerialize (o) | some simple serialization stuff |
Functions
- _M:filterLoadData (online, field)
-
Check if we can load this field from this profile
Parameters
- online:
- field:
- _M:filterSaveData (field)
-
Return if we should save this field in the online or offline profile
Parameters
- field:
- _M:getNews (callback)
-
Orders for the profile thread
Parameters
- callback:
- _M:handleEvent (e)
-
Got an event from the profile thread
Parameters
- e:
- _M:loadGenericProfile ()
- Loads profile generic profile from disk Generic profile is always read from the "online" profile
- _M:loadModuleProfile (short_name, mod_def)
-
Loads profile module profile from disk
Parameters
- short_name:
- mod_def:
- _M:popEvent (specific)
-
Events from the profile thread
Parameters
- specific:
- _M:saveGenericProfile (name, data, nosync, nowrite)
-
Saves a profile data
Parameters
- name:
- data:
- nosync:
- nowrite:
- _M:saveModuleProfile (name, data, nosync, nowrite)
-
Saves a module profile data
Parameters
- name:
- data:
- nosync:
- nowrite:
- basicSerialize (o)
-
some simple serialization stuff
Parameters
- o: