Protected
constructorCallback function that gets called when the allowed storage limit has been passed. The store won't be saved if it is full, so if this is called make sure to remove data until back under the limit.
Clears all data stored in the General Data Store.
Static
createCreates a General Data Store.
Returns an array with all the keys in the store.
Returns a boolean value stored under the given key, or false if none exists.
Returns a boolean array being stored under the given key, or an empty array if none exists.
Returns a double precision floating point number stored under the given key, or 0 if none exists.
Returns a floating point value stored under the given key, or 0 if none exists.
Returns a floating point array being stored under the given key, or an empty array if none exists.
Returns an integer number stored under the given key, or 0 if none exists.
Returns an integer array being stored under the given key, or an empty array if none exists.
Returns a mat2 value stored under the given key, or a default mat2 if none exists.
Returns a mat2 array being stored under the given key, or an empty array if none exists.
Returns a mat3 array being stored under the given key, or an empty array if none exists.
Returns a mat4 value stored under the given key, or a default mat4 if none exists.
Returns a mat4 array being stored under the given key, or an empty array if none exists.
Returns the maximum total size allowed, in bytes, of all data stored in this General Data Store.
Returns a quat value stored under the given key, or a default quat if none exists.
Returns a quat array being stored under the given key, or an empty array if none exists.
If onStoreFull
has been set, this method returns the current total size, in bytes, of all data stored in this General Data Store. Otherwise, 0
is returned.
Returns a string value stored under the given key, or empty string if none exists.
Returns a string array being stored under the given key, or an empty array if none exists.
Returns the name of this object's type.
Returns a vec2 value stored under the given key, or a default vec2 if none exists.
Returns a vec2 array being stored under the given key, or an empty array if none exists.
Returns a vec3 value stored under the given key, or a default vec3 if none exists.
Returns a vec3 array being stored under the given key, or an empty array if none exists.
Returns a vec4 value stored under the given key, or a default vec4 if none exists.
Returns a vec4 array being stored under the given key, or an empty array if none exists.
Returns true if a value is being stored under the given key.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Stores a boolean value under the given key.
Stores a boolean array under the given key.
Stores a double precision floating point number under the given key.
Stores a floating point value under the given key.
Stores a floating point array under the given key.
Stores an integer number value under the given key.
Stores an integer array under the given key.
Stores a string value under the given key.
Stores a string array under the given key.
Removes the value being stored under the given key. If no value exists under the key, nothing will happen.
Class for storing and retrieving data based on keys. Used by PersistentStorageSystem. For more information, see the Persistent Storage guide.
Example