@abextm/cache2
Version:
Utilities for reading OSRS "caches"
22 lines • 1.05 kB
TypeScript
import { CacheProvider } from "../Cache.js";
import { Loadable } from "../Loadable.js";
import { Reader } from "../Reader.js";
import { Typed } from "../reflect.js";
import { GameValID } from "../types.js";
export declare class GameVal extends Loadable {
gameValID: GameValID;
otherID: number;
constructor(gameValID: GameValID, otherID: number);
[Typed.type]: Typed.Any;
static readonly index = 24;
name: string;
files?: Map<number, string>;
static loadData(cache: CacheProvider, gameValID: GameValID, otherID: number): Promise<Reader | undefined>;
static nameFor(cache: CacheProvider | Promise<CacheProvider>, obj: {
id: number;
}): Promise<string | undefined>;
static decode(r: Reader, gameValID: GameValID, otherID: number): GameVal;
static all(cache: CacheProvider | Promise<CacheProvider>): Promise<Map<GameValID, Map<number, GameVal>>>;
static all(cache: CacheProvider | Promise<CacheProvider>, id: GameValID): Promise<Map<number, GameVal>>;
}
//# sourceMappingURL=GameVal.d.ts.map