Class engine.PlayerProfile
Handles the player profile, possibly online
Local Functions
engine.PlayerProfile.basicSerialize (o)
some simple serialization stuff
Methods
engine.PlayerProfile:loadGenericProfile ()
Loads profile generic profile from disk Generic profile is always read from the "online" profile
engine.PlayerProfile:filterLoadData (online, field)
Check if we can load this field from this profile
engine.PlayerProfile:filterSaveData (field)
Return if we should save this field in the online or offline profile
engine.PlayerProfile:loadModuleProfile (short_name, mod_def)
Loads profile module profile from disk
engine.PlayerProfile:saveGenericProfile (name, data, nosync, nowrite)
Saves a profile data
engine.PlayerProfile:saveModuleProfile (name, data, nosync, nowrite)
Saves a module profile data
engine.PlayerProfile:popEvent (specific)
Events from the profile thread
engine.PlayerProfile:handleEvent (e)
Got an event from the profile thread
engine.PlayerProfile:getNews (callback, steam)
Orders for the profile thread
engine.PlayerProfile:checkSaveID (module, uuid, savename, md5)
check if our save is valid
Local Functions
MethodsMethods
- engine.PlayerProfile:loadGenericProfile ()
- Loads profile generic profile from disk Generic profile is always read from the "online" profile
- engine.PlayerProfile:filterLoadData (online, field)
-
Check if we can load this field from this profile
Parameters:
- online
- field
- engine.PlayerProfile:filterSaveData (field)
-
Return if we should save this field in the online or offline profile
Parameters:
- field
- engine.PlayerProfile:loadModuleProfile (short_name, mod_def)
-
Loads profile module profile from disk
Parameters:
- short_name
- mod_def
- engine.PlayerProfile:saveGenericProfile (name, data, nosync, nowrite)
-
Saves a profile data
Parameters:
- name
- data
- nosync
- nowrite Delay when we are currently saving
- engine.PlayerProfile:saveModuleProfile (name, data, nosync, nowrite)
-
Saves a module profile data
Parameters:
- name
- data
- nosync
- nowrite
- engine.PlayerProfile:popEvent (specific)
-
Events from the profile thread
Parameters:
- specific
- engine.PlayerProfile:handleEvent (e)
-
Got an event from the profile thread
Parameters:
- e
- engine.PlayerProfile:getNews (callback, steam)
-
Orders for the profile thread
Parameters:
- callback
- steam
- engine.PlayerProfile:checkSaveID (module, uuid, savename, md5)
-
check if our save is valid
Parameters:
- module
- uuid
- savename
- md5