@abextm/cache2
Version:
Utilities for reading OSRS "caches"
65 lines • 2.02 kB
TypeScript
import { PerFileLoadable } from "../Loadable.js";
import { Reader } from "../Reader.js";
import { Typed } from "../reflect.js";
import { AnimationID, CategoryID, HSL, ModelID, NPCID, Params, SpriteID, TextureID, VarbitID, VarPID } from "../types.js";
export declare class NPC extends PerFileLoadable {
id: NPCID;
constructor(id: NPCID);
[Typed.type]: Typed.Any;
static readonly index = 2;
static readonly archive = 9;
static readonly gameval = 1;
models: ModelID[];
name: string;
size: number;
standingAnimation: AnimationID;
walkingAnimation: AnimationID;
idleRotateLeftAnimation: AnimationID;
idleRotateRightAnimation: AnimationID;
rotate180Animation: AnimationID;
rotateLeftAnimation: AnimationID;
rotateRightAnimation: AnimationID;
category: CategoryID;
actions: (string | null)[];
recolorFrom: HSL[];
recolorTo: HSL[];
retextureFrom: TextureID[];
retextureTo: TextureID[];
chatheadModels: ModelID[];
isMinimapVisible: boolean;
combatLevel: number;
widthScale: number;
heightScale: number;
isVisible: boolean;
ambient: number;
contrast: number;
headIconArchive: SpriteID[];
headIconSpriteIndex: number[];
rotationSpeed: number;
varbit: VarbitID;
varp: VarPID;
multiChildren: NPCID[];
oobChild: NPCID;
isInteractible: boolean;
isClickable: boolean;
isFollower: boolean;
lowPriorityOps: boolean;
runAnimation: AnimationID;
runRotate180Animation: AnimationID;
runRotateLeftAnimation: AnimationID;
runRotateRightAnimation: AnimationID;
crawlAnimation: AnimationID;
crawlRotate180Animation: AnimationID;
crawlRotateLeftAnimation: AnimationID;
crawlRotateRightAnimation: AnimationID;
attack: number;
defence: number;
strength: number;
hitpoints: number;
ranged: number;
magic: number;
height: number;
params: Params;
static decode(r: Reader, id: NPCID): NPC;
}
//# sourceMappingURL=NPC.d.ts.map