battlecore::storage

The storage module provides persistent key/value storage on the device. Include its declarations with include "./battlecore/storage.bst";.

getKey

Returns the stored value for the given key.

native any battlecore::storage.getKey (string key);

setKey

Stores a value under the given key.

native void battlecore::storage.setKey (string key, any newVal);