* Creates a new number storage bucket for persistent storage. * * This is the same as createStorageJson except that this bucket can only store number values, the upside of this is that it can be sorted. * * An example use case could be storing the scores of users in a l
(namespace: string)
| 143 | * See {@link createStorageJson} for more general info on storage buckets |
| 144 | */ |
| 145 | createStorageNumber(namespace: string) { |
| 146 | let bucket = new Storage.NumberBucket(namespace, this.storagePluginId()); |
| 147 | this.storageBuckets.push(bucket); |
| 148 | |
| 149 | return bucket; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Create a new persistent variable. |
no test coverage detected