UNPKG

@abextm/cache2

Version:

Utilities for reading OSRS "caches"

159 lines 6.63 kB
declare const NewTypeType: unique symbol; export type NewType<T, Name extends string> = T & { readonly [Tag in `~tag ${Name}`]: typeof NewTypeType; }; export type AliasType<T, Name extends string> = T | NewType<T, Name>; type TypedArray = Uint8Array | Int8Array | Uint8ClampedArray | Uint16Array | Int16Array | Uint32Array | Int32Array | BigUint64Array | BigInt64Array | Float32Array | Float64Array; export type PrimitiveArray<T extends A[0], A extends TypedArray> = A & { [index: number]: T; }; export declare enum CompressionType { NONE = 0, BZ2 = 1, GZIP = 2 } export type XTEAKey = [number, number, number, number]; export type WearPos = NewType<number, "WearPos">; export type ScriptVarChar = NewType<number, "ScriptVarChar">; export type ScriptVarID = NewType<number, "ScriptVarID">; export type AnimationID = NewType<number, "AnimationID">; export type CategoryID = NewType<number, "CategoryID">; export type DBRowID = NewType<number, "DBRowID">; export type DBTableID = NewType<number, "DBTableID">; export type DBColumnID = NewType<number, "DBColumnID">; export type EnumID = NewType<number, "EnumID">; export type FontID = NewType<number, "FontID">; export type GameValID = NewType<number, "GameValID">; export type HealthBarID = NewType<number, "HealthBaID">; export type HitsplatID = NewType<number, "HitsplatID">; export type ItemID = NewType<number, "ItemID">; export type KitID = NewType<number, "KitID">; export type MapElementID = NewType<number, "MapElementID">; export type MapSceneIconID = NewType<number, "MapSceneIconID">; export type ModelID = NewType<number, "ModelID">; export type NPCID = NewType<number, "NPCID">; export type ObjID = NewType<number, "ObjID">; export type ParamID = NewType<number, "ParamID">; export type PoseID = NewType<number, "PoseID">; export type SkeletonID = NewType<number, "SkeletonID">; export type SoundEffectID = NewType<number, "SoundEffectID">; export type SpriteID = NewType<number, "SpriteID">; export type StructID = NewType<number, "StructID">; export type TextureID = NewType<number, "TextureID">; export type UnderlayID = NewType<number, "UnderlayID">; export type VarbitID = NewType<number, "VarbitID">; export type VarPID = NewType<number, "VarPID">; export type HSL = AliasType<number, "HSL">; export type RGB = AliasType<number, "RGB">; export type WorldPoint = NewType<number, "WorldPoint">; export type ObjType = NewType<number, "ObjType">; export type PreAnimMoveMode = NewType<number, "PreAnimMoveMode">; export type PostAnimMoveMode = NewType<number, "PostAnimMoveMode">; export type AnimRestartMode = NewType<number, "AnimRestartMode">; export type AmbientSoundCurve = NewType<number, "AmbientSoundCurve">; export type AnimMayaID = NewType<number, "AnimMayaID">; export declare class Params extends Map<ParamID, string | number> { } export type KitOrItem = { kit: KitID; } | { item: ItemID; } | undefined; export declare namespace WearPos { const Head: WearPos; const Cape: WearPos; const Amulet: WearPos; const Weapon: WearPos; const Torso: WearPos; const Shield: WearPos; const Arms: WearPos; const Legs: WearPos; const Hair: WearPos; const Hands: WearPos; const Boots: WearPos; const Jaw: WearPos; const Ring: WearPos; const Ammo: WearPos; const byID: (this: object, id: WearPos) => string | undefined; } export declare namespace ObjType { const WallStraight: ObjType; const WallDiagonalCorner: ObjType; const WallCorner: ObjType; const WallSquareCorner: ObjType; const WallDecorStraightNoOffset: ObjType; const WallDecorStraightOffset: ObjType; const WallDecorDiagonalOffset: ObjType; const WallDecorDiagonalNoOffset: ObjType; const WallDecorDiagonalBoth: ObjType; const WallDiagonal: ObjType; const CentrepieceStraight: ObjType; const CentrepieceDiagonal: ObjType; const RoofStraight: ObjType; const RoofDiagonalWithRoofEdge: ObjType; const RoofDiagonal: ObjType; const RoofCornerConcave: ObjType; const RoofCornerConvex: ObjType; const RoofFlat: ObjType; const RoofEdgeStraight: ObjType; const RoofEdgeDiagonalCorner: ObjType; const RoofEdgeCorner: ObjType; const RoofEdgeSquarecorner: ObjType; const GroundDecor: ObjType; const byID: (this: object, id: ObjType) => string | undefined; } export declare namespace PreAnimMoveMode { const DelayMove: PreAnimMoveMode; const DelayAnim: PreAnimMoveMode; const Merge: PreAnimMoveMode; const byID: (this: object, id: PreAnimMoveMode) => string | undefined; } export declare namespace PostAnimMoveMode { const DelayMove: PostAnimMoveMode; const AbortAnim: PostAnimMoveMode; const Merge: PostAnimMoveMode; const byID: (this: object, id: PostAnimMoveMode) => string | undefined; } export declare namespace AnimRestartMode { const Continue: AnimRestartMode; const Restart: AnimRestartMode; const ResetLoops: AnimRestartMode; const byID: (this: object, id: AnimRestartMode) => string | undefined; } export declare namespace AmbientSoundCurve { const Linear: AmbientSoundCurve; const EaseInSine: AmbientSoundCurve; const EaseOutSine: AmbientSoundCurve; const EaseInOutSine: AmbientSoundCurve; const EaseInQuad: AmbientSoundCurve; const EaseOutQuad: AmbientSoundCurve; const EaseInOutQuad: AmbientSoundCurve; const EaseInCubic: AmbientSoundCurve; const EaseOutCubic: AmbientSoundCurve; const EaseInOutCubic: AmbientSoundCurve; const EaseInQuart: AmbientSoundCurve; const EaseOutQuart: AmbientSoundCurve; const EaseInOutQuart: AmbientSoundCurve; const EaseInQuint: AmbientSoundCurve; const EaseOutQuint: AmbientSoundCurve; const EaseInOutQuint: AmbientSoundCurve; const EaseInExpo: AmbientSoundCurve; const EaseOutExpo: AmbientSoundCurve; const EaseInOutExpo: AmbientSoundCurve; const EaseInCirc: AmbientSoundCurve; const EaseOutCirc: AmbientSoundCurve; const EaseInOutCirc: AmbientSoundCurve; const EaseInBack: AmbientSoundCurve; const EaseOutBack: AmbientSoundCurve; const EaseInOutBack: AmbientSoundCurve; const EaseInElastic: AmbientSoundCurve; const EaseOutElastic: AmbientSoundCurve; const EaseInOutElastic: AmbientSoundCurve; const byID: (this: object, id: AmbientSoundCurve) => string | undefined; } export declare namespace DBColumnID { function pack(table: DBTableID, column: number, tupleIndex?: number): DBColumnID; function unpack(c: DBColumnID): [table: DBTableID, column: number, tupleIndex: number]; } export {}; //# sourceMappingURL=types.d.ts.map