FunnableStorage
LocalStorage helper that auto-namespaces keys per game id. Great for persisting cosmetics, tutorial progress, etc., without collisions when multiple Funnable games share the same domain.
FunnableStorage
LocalStorage helper that auto-namespaces keys per game id. Great for persisting cosmetics, tutorial progress, etc., without collisions when multiple Funnable games share the same domain.
Members
get
get<T = unknown>(key: string): T | nullReads and deserializes a JSON value. Falls back to the raw string.
set
set(key: string, value: unknown): voidStores a JSON-serializable value.
remove
remove(key: string): voidRemoves a single key scoped to the current game.
clear
clear(): voidClears every key created by this helper.