Adds an easy way to store and watch for updates to a value [[
utils.global |
utils.event |
expcore.common |
utils.token |
Store.is_registered(location) | Check for if a location is registered |
Store.uid_location() | Returns a unique name that can be used for a store |
Store.register([location][, synced][, callback]) | Registers a new location with an update callback which is triggered when the value updates |
Store.get(location[, child][, allow_unregistered=false]) | Gets the value stored at a location, this location must be registered |
Store.set(location[, child], value[, from_sync]) | Sets the value at a location, this location must be registered |
Store.clear(location[, child][, from_sync]) | Sets the value at a location to nil, this location must be registered |
Store.get_children(location) | Gets all non nil children at a location, children can be added and removed during runtime this is similar to Store.get but will always return a table even if it is empty |
Check for if a location is registered
Parameters:Returns a unique name that can be used for a store
Returns:Registers a new location with an update callback which is triggered when the value updates
Parameters:Gets the value stored at a location, this location must be registered
Parameters:Sets the value at a location, this location must be registered
Parameters:Sets the value at a location to nil, this location must be registered
Parameters: