-
Notifications
You must be signed in to change notification settings - Fork 1
Per Room Data Recording and Modification
Damon Getsman edited this page Mar 14, 2015
·
5 revisions
This particular block is to be used for holding informational record schema and routines used for accessing data such as each room's particular 'i'nfo field, lists of users' zapped rooms, etc.
See also: JSON Room/User Record Structure
-
userDir
- directory for all of our configuration files -
roomSettingsFilename
- file for JSON blobs regarding the settings for individual rooms -
maxInfoLines
- total number of lines allowed for room info -
userRoomSettingsFilename
- file for JSON blobs regarding per-room settings per-user (ie 'z'apped rooms list, etc)
-
defaultSettings()
- ripe for the filling
-
defaultSettings()
- ripe for the filling, as well
####### Properties
roomRecFilename
userZapRecFilename
####### Methods
-
saveRoomInfo()
- saves the text array passed as the new room info -
stripNRead()
- strips comments/headers from JSON blob to read from -
snagRoomInfoBlob()
- opens, parses the JSON once stripped, returns the appropriate object -
snagUserZappedRooms()
- self-explanatory, returning the correct blob, etc