quake2ts 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/viewer/dist/browser/index.global.js +2 -0
- package/apps/viewer/dist/browser/index.global.js.map +1 -0
- package/apps/viewer/dist/cjs/index.cjs +1087 -0
- package/apps/viewer/dist/cjs/index.cjs.map +1 -0
- package/apps/viewer/dist/esm/index.js +1060 -0
- package/apps/viewer/dist/esm/index.js.map +1 -0
- package/apps/viewer/dist/tsconfig.tsbuildinfo +1 -0
- package/apps/viewer/dist/types/index.d.ts +7 -0
- package/apps/viewer/dist/types/index.d.ts.map +1 -0
- package/package.json +107 -0
- package/packages/client/dist/browser/index.global.js +2 -0
- package/packages/client/dist/browser/index.global.js.map +1 -0
- package/packages/client/dist/cjs/index.cjs +57 -0
- package/packages/client/dist/cjs/index.cjs.map +1 -0
- package/packages/client/dist/esm/index.js +32 -0
- package/packages/client/dist/esm/index.js.map +1 -0
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/client/dist/types/index.d.ts +14 -0
- package/packages/client/dist/types/index.d.ts.map +1 -0
- package/packages/engine/dist/browser/index.global.js +2 -0
- package/packages/engine/dist/browser/index.global.js.map +1 -0
- package/packages/engine/dist/cjs/index.cjs +1823 -0
- package/packages/engine/dist/cjs/index.cjs.map +1 -0
- package/packages/engine/dist/esm/index.js +1764 -0
- package/packages/engine/dist/esm/index.js.map +1 -0
- package/packages/engine/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/engine/dist/types/assets/browserIngestion.d.ts +7 -0
- package/packages/engine/dist/types/assets/browserIngestion.d.ts.map +1 -0
- package/packages/engine/dist/types/assets/bsp.d.ts +157 -0
- package/packages/engine/dist/types/assets/bsp.d.ts.map +1 -0
- package/packages/engine/dist/types/assets/cache.d.ts +17 -0
- package/packages/engine/dist/types/assets/cache.d.ts.map +1 -0
- package/packages/engine/dist/types/assets/ingestion.d.ts +31 -0
- package/packages/engine/dist/types/assets/ingestion.d.ts.map +1 -0
- package/packages/engine/dist/types/assets/md2.d.ts +73 -0
- package/packages/engine/dist/types/assets/md2.d.ts.map +1 -0
- package/packages/engine/dist/types/assets/pak.d.ts +28 -0
- package/packages/engine/dist/types/assets/pak.d.ts.map +1 -0
- package/packages/engine/dist/types/assets/vfs.d.ts +23 -0
- package/packages/engine/dist/types/assets/vfs.d.ts.map +1 -0
- package/packages/engine/dist/types/configstrings.d.ts +34 -0
- package/packages/engine/dist/types/configstrings.d.ts.map +1 -0
- package/packages/engine/dist/types/cvars.d.ts +43 -0
- package/packages/engine/dist/types/cvars.d.ts.map +1 -0
- package/packages/engine/dist/types/host.d.ts +42 -0
- package/packages/engine/dist/types/host.d.ts.map +1 -0
- package/packages/engine/dist/types/index.d.ts +37 -0
- package/packages/engine/dist/types/index.d.ts.map +1 -0
- package/packages/engine/dist/types/loop.d.ts +40 -0
- package/packages/engine/dist/types/loop.d.ts.map +1 -0
- package/packages/engine/dist/types/render/bsp.d.ts +49 -0
- package/packages/engine/dist/types/render/bsp.d.ts.map +1 -0
- package/packages/engine/dist/types/render/context.d.ts +36 -0
- package/packages/engine/dist/types/render/context.d.ts.map +1 -0
- package/packages/engine/dist/types/render/resources.d.ts +56 -0
- package/packages/engine/dist/types/render/resources.d.ts.map +1 -0
- package/packages/engine/dist/types/render/shaderProgram.d.ts +18 -0
- package/packages/engine/dist/types/render/shaderProgram.d.ts.map +1 -0
- package/packages/engine/dist/types/runtime.d.ts +15 -0
- package/packages/engine/dist/types/runtime.d.ts.map +1 -0
- package/packages/game/dist/browser/index.global.js +2 -0
- package/packages/game/dist/browser/index.global.js.map +1 -0
- package/packages/game/dist/cjs/index.cjs +758 -0
- package/packages/game/dist/cjs/index.cjs.map +1 -0
- package/packages/game/dist/esm/index.js +725 -0
- package/packages/game/dist/esm/index.js.map +1 -0
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/game/dist/types/entities/entity.d.ts +92 -0
- package/packages/game/dist/types/entities/entity.d.ts.map +1 -0
- package/packages/game/dist/types/entities/index.d.ts +3 -0
- package/packages/game/dist/types/entities/index.d.ts.map +1 -0
- package/packages/game/dist/types/entities/pool.d.ts +18 -0
- package/packages/game/dist/types/entities/pool.d.ts.map +1 -0
- package/packages/game/dist/types/entities/system.d.ts +18 -0
- package/packages/game/dist/types/entities/system.d.ts.map +1 -0
- package/packages/game/dist/types/entities/thinkScheduler.d.ts +8 -0
- package/packages/game/dist/types/entities/thinkScheduler.d.ts.map +1 -0
- package/packages/game/dist/types/index.d.ts +26 -0
- package/packages/game/dist/types/index.d.ts.map +1 -0
- package/packages/game/dist/types/level.d.ts +14 -0
- package/packages/game/dist/types/level.d.ts.map +1 -0
- package/packages/game/dist/types/loop.d.ts +29 -0
- package/packages/game/dist/types/loop.d.ts.map +1 -0
- package/packages/shared/dist/browser/index.global.js +2 -0
- package/packages/shared/dist/browser/index.global.js.map +1 -0
- package/packages/shared/dist/cjs/index.cjs +2793 -0
- package/packages/shared/dist/cjs/index.cjs.map +1 -0
- package/packages/shared/dist/esm/index.js +2594 -0
- package/packages/shared/dist/esm/index.js.map +1 -0
- package/packages/shared/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/shared/dist/types/bsp/collision.d.ts +112 -0
- package/packages/shared/dist/types/bsp/collision.d.ts.map +1 -0
- package/packages/shared/dist/types/bsp/contents.d.ts +71 -0
- package/packages/shared/dist/types/bsp/contents.d.ts.map +1 -0
- package/packages/shared/dist/types/index.d.ts +25 -0
- package/packages/shared/dist/types/index.d.ts.map +1 -0
- package/packages/shared/dist/types/math/angles.d.ts +17 -0
- package/packages/shared/dist/types/math/angles.d.ts.map +1 -0
- package/packages/shared/dist/types/math/color.d.ts +12 -0
- package/packages/shared/dist/types/math/color.d.ts.map +1 -0
- package/packages/shared/dist/types/math/random.d.ts +48 -0
- package/packages/shared/dist/types/math/random.d.ts.map +1 -0
- package/packages/shared/dist/types/math/vec3.d.ts +76 -0
- package/packages/shared/dist/types/math/vec3.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/categorize.d.ts +36 -0
- package/packages/shared/dist/types/pmove/categorize.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/constants.d.ts +75 -0
- package/packages/shared/dist/types/pmove/constants.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/currents.d.ts +58 -0
- package/packages/shared/dist/types/pmove/currents.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/dimensions.d.ts +14 -0
- package/packages/shared/dist/types/pmove/dimensions.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/duck.d.ts +39 -0
- package/packages/shared/dist/types/pmove/duck.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/fly.d.ts +34 -0
- package/packages/shared/dist/types/pmove/fly.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/jump.d.ts +26 -0
- package/packages/shared/dist/types/pmove/jump.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/move.d.ts +58 -0
- package/packages/shared/dist/types/pmove/move.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/pmove.d.ts +36 -0
- package/packages/shared/dist/types/pmove/pmove.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/slide.d.ts +63 -0
- package/packages/shared/dist/types/pmove/slide.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/snap.d.ts +40 -0
- package/packages/shared/dist/types/pmove/snap.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/special.d.ts +39 -0
- package/packages/shared/dist/types/pmove/special.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/stuck.d.ts +21 -0
- package/packages/shared/dist/types/pmove/stuck.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/types.d.ts +48 -0
- package/packages/shared/dist/types/pmove/types.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/view.d.ts +19 -0
- package/packages/shared/dist/types/pmove/view.d.ts.map +1 -0
- package/packages/shared/dist/types/pmove/water.d.ts +21 -0
- package/packages/shared/dist/types/pmove/water.d.ts.map +1 -0
- package/packages/shared/dist/types/protocol/configstrings.d.ts +51 -0
- package/packages/shared/dist/types/protocol/configstrings.d.ts.map +1 -0
- package/packages/shared/dist/types/protocol/cvar.d.ts +15 -0
- package/packages/shared/dist/types/protocol/cvar.d.ts.map +1 -0
- package/packages/tools/dist/browser/index.global.js +2 -0
- package/packages/tools/dist/browser/index.global.js.map +1 -0
- package/packages/tools/dist/cjs/index.cjs +33 -0
- package/packages/tools/dist/cjs/index.cjs.map +1 -0
- package/packages/tools/dist/esm/index.js +8 -0
- package/packages/tools/dist/esm/index.js.map +1 -0
- package/packages/tools/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/tools/dist/types/index.d.ts +7 -0
- package/packages/tools/dist/types/index.d.ts.map +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Vec3 } from '../math/vec3.js';
|
|
2
|
+
import { type StepSlideMoveOutcome } from './slide.js';
|
|
3
|
+
import type { PmoveCmd, PmoveTraceFn } from './types.js';
|
|
4
|
+
import { type PmFlags, PmType, WaterLevel } from './constants.js';
|
|
5
|
+
interface BaseMoveParams {
|
|
6
|
+
readonly origin: Vec3;
|
|
7
|
+
readonly velocity: Vec3;
|
|
8
|
+
readonly frametime: number;
|
|
9
|
+
readonly mins: Vec3;
|
|
10
|
+
readonly maxs: Vec3;
|
|
11
|
+
readonly trace: PmoveTraceFn;
|
|
12
|
+
readonly overbounce?: number;
|
|
13
|
+
readonly stepSize?: number;
|
|
14
|
+
readonly maxBumps?: number;
|
|
15
|
+
readonly maxClipPlanes?: number;
|
|
16
|
+
readonly hasTime?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface AirMoveParams extends BaseMoveParams {
|
|
19
|
+
readonly cmd: PmoveCmd;
|
|
20
|
+
readonly forward: Vec3;
|
|
21
|
+
readonly right: Vec3;
|
|
22
|
+
readonly pmFlags: PmFlags;
|
|
23
|
+
readonly onGround: boolean;
|
|
24
|
+
readonly gravity: number;
|
|
25
|
+
readonly pmType: PmType;
|
|
26
|
+
readonly pmAccelerate: number;
|
|
27
|
+
readonly pmAirAccelerate?: number;
|
|
28
|
+
readonly pmMaxSpeed: number;
|
|
29
|
+
readonly pmDuckSpeed: number;
|
|
30
|
+
readonly onLadder: boolean;
|
|
31
|
+
readonly waterlevel: WaterLevel;
|
|
32
|
+
readonly watertype: number;
|
|
33
|
+
readonly groundContents: number;
|
|
34
|
+
readonly viewPitch: number;
|
|
35
|
+
readonly ladderMod: number;
|
|
36
|
+
readonly pmWaterSpeed: number;
|
|
37
|
+
}
|
|
38
|
+
export interface WaterMoveParams extends BaseMoveParams {
|
|
39
|
+
readonly cmd: PmoveCmd;
|
|
40
|
+
readonly forward: Vec3;
|
|
41
|
+
readonly right: Vec3;
|
|
42
|
+
readonly pmFlags: PmFlags;
|
|
43
|
+
readonly onGround: boolean;
|
|
44
|
+
readonly pmMaxSpeed: number;
|
|
45
|
+
readonly pmDuckSpeed: number;
|
|
46
|
+
readonly pmWaterAccelerate: number;
|
|
47
|
+
readonly pmWaterSpeed: number;
|
|
48
|
+
readonly onLadder: boolean;
|
|
49
|
+
readonly watertype: number;
|
|
50
|
+
readonly groundContents: number;
|
|
51
|
+
readonly waterlevel: WaterLevel;
|
|
52
|
+
readonly viewPitch: number;
|
|
53
|
+
readonly ladderMod: number;
|
|
54
|
+
}
|
|
55
|
+
export declare function applyPmoveAirMove(params: AirMoveParams): StepSlideMoveOutcome;
|
|
56
|
+
export declare function applyPmoveWaterMove(params: WaterMoveParams): StepSlideMoveOutcome;
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../src/pmove/move.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK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veCmd, PmoveFrictionParams, PmoveWishParams, PmoveWishResult } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Pure version of PM_Friction from rerelease p_move.cpp.
|
|
5
|
+
* Handles ground and water friction and returns a new velocity.
|
|
6
|
+
*/
|
|
7
|
+
export declare function applyPmoveFriction(params: PmoveFrictionParams): Vec3;
|
|
8
|
+
/**
|
|
9
|
+
* Pure version of PM_Accelerate from rerelease p_move.cpp.
|
|
10
|
+
* Returns a new velocity with wishdir/wishspeed acceleration applied.
|
|
11
|
+
*/
|
|
12
|
+
export declare function applyPmoveAccelerate(params: PmoveAccelerateParams): Vec3;
|
|
13
|
+
/**
|
|
14
|
+
* Mirrors PM_AirAccelerate in rerelease `p_move.cpp` (lines ~612-636): wishspeed is clamped
|
|
15
|
+
* to 30 for the addspeed calculation but the acceleration magnitude still uses the full wishspeed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function applyPmoveAirAccelerate(params: PmoveAccelerateParams): Vec3;
|
|
18
|
+
/**
|
|
19
|
+
* Pure mirror of PM_CmdScale from rerelease `p_move.cpp`. Computes the scalar applied to
|
|
20
|
+
* the command directional inputs so that the resulting wish velocity caps at `maxSpeed`
|
|
21
|
+
* regardless of the directional mix.
|
|
22
|
+
*/
|
|
23
|
+
export declare function pmoveCmdScale(cmd: PmoveCmd, maxSpeed: number): number;
|
|
24
|
+
/**
|
|
25
|
+
* Computes wishdir/wishspeed for ground/air movement as done in PM_AirMove and
|
|
26
|
+
* PM_GroundMove. Z is forced to zero and wishspeed is clamped to maxSpeed, matching
|
|
27
|
+
* the rerelease p_move.cpp helpers before they call PM_Accelerate/PM_AirAccelerate.
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildAirGroundWish(params: PmoveWishParams): PmoveWishResult;
|
|
30
|
+
/**
|
|
31
|
+
* Computes the wishdir/wishspeed mix for water movement, matching PM_WaterMove in
|
|
32
|
+
* rerelease p_move.cpp: includes the upward bias when no strong upmove is requested,
|
|
33
|
+
* clamps wishspeed to maxSpeed, and halves the returned wishspeed before acceleration.
|
|
34
|
+
*/
|
|
35
|
+
export declare function buildWaterWish(params: PmoveWishParams): PmoveWishResult;
|
|
36
|
+
//# sourceMappingURL=pmove.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pmove.d.ts","sourceRoot":"","sources":["../../../src/pmove/pmove.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EACV,qBAAqB,EACrB,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CA6CpE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAoBxE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAqB3E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAYrE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAoB3E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CA8BvE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type Vec3 } from '../math/vec3.js';
|
|
2
|
+
import type { PmoveTraceFn } from './types.js';
|
|
3
|
+
export declare const SLIDEMOVE_BLOCKED_FLOOR = 1;
|
|
4
|
+
export declare const SLIDEMOVE_BLOCKED_WALL = 2;
|
|
5
|
+
export interface SlideMoveResult {
|
|
6
|
+
readonly velocity: Vec3;
|
|
7
|
+
readonly planes: readonly Vec3[];
|
|
8
|
+
readonly stopped: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface SlideMoveParams {
|
|
11
|
+
readonly origin: Vec3;
|
|
12
|
+
readonly velocity: Vec3;
|
|
13
|
+
readonly frametime: number;
|
|
14
|
+
readonly overbounce: number;
|
|
15
|
+
readonly trace: PmoveTraceFn;
|
|
16
|
+
readonly maxBumps?: number;
|
|
17
|
+
readonly maxClipPlanes?: number;
|
|
18
|
+
readonly mins?: Vec3;
|
|
19
|
+
readonly maxs?: Vec3;
|
|
20
|
+
/**
|
|
21
|
+
* Mirrors the pm->s.pm_time check in PM_StepSlideMove_Generic: if true, the
|
|
22
|
+
* returned velocity is reset to the primal velocity after collision
|
|
23
|
+
* resolution so time-based effects (like knockbacks) don't dampen.
|
|
24
|
+
*/
|
|
25
|
+
readonly hasTime?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface SlideMoveOutcome extends SlideMoveResult {
|
|
28
|
+
readonly origin: Vec3;
|
|
29
|
+
readonly blocked: number;
|
|
30
|
+
}
|
|
31
|
+
export interface StepSlideMoveParams extends SlideMoveParams {
|
|
32
|
+
readonly mins: Vec3;
|
|
33
|
+
readonly maxs: Vec3;
|
|
34
|
+
readonly stepSize?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface StepSlideMoveOutcome extends SlideMoveOutcome {
|
|
37
|
+
readonly stepped: boolean;
|
|
38
|
+
readonly stepHeight: number;
|
|
39
|
+
readonly stepNormal?: Vec3;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Resolves a sequence of collision planes against a primal velocity using the same
|
|
43
|
+
* plane iteration logic seen in PM_StepSlideMove_Generic (rerelease p_move.cpp).
|
|
44
|
+
* The incoming planes should be ordered as they were encountered during traces;
|
|
45
|
+
* the function will accumulate them, clip the velocity to be parallel to all planes,
|
|
46
|
+
* and return zero velocity when three planes form an unresolvable corner or when
|
|
47
|
+
* the adjusted velocity would oppose the primal direction.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveSlideMove(initialVelocity: Vec3, planesEncountered: readonly Vec3[], overbounce: number, maxClipPlanes?: number, primalVelocity?: Vec3): SlideMoveResult;
|
|
50
|
+
/**
|
|
51
|
+
* Pure mirror of PM_SlideMoveGeneric from rerelease `p_move.cpp` (minus gravity/step handling).
|
|
52
|
+
* Uses a caller-provided trace to collect collision planes, accumulates them through
|
|
53
|
+
* `resolveSlideMove`, and returns the resulting origin/velocity/blocking state.
|
|
54
|
+
*/
|
|
55
|
+
export declare function slideMove(params: SlideMoveParams): SlideMoveOutcome;
|
|
56
|
+
/**
|
|
57
|
+
* Mirrors PM_StepSlideMove (rerelease p_move.cpp) in a pure form: attempts a
|
|
58
|
+
* regular slide move, then retries from a stepped-up position when the first
|
|
59
|
+
* attempt was blocked. The function compares planar distance traveled and the
|
|
60
|
+
* steepness of the landing plane to decide whether to keep the step.
|
|
61
|
+
*/
|
|
62
|
+
export declare function stepSlideMove(params: StepSlideMoveParams): StepSlideMoveOutcome;
|
|
63
|
+
//# sourceMappingURL=slide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slide.d.ts","sourceRoot":"","sources":["../../../src/pmove/slide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACjH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO/C,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAA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
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Vec3 } from '../math/vec3.js';
|
|
2
|
+
import type { PmoveTraceFn } from './types.js';
|
|
3
|
+
export interface GoodPositionParams {
|
|
4
|
+
readonly origin: Vec3;
|
|
5
|
+
readonly mins: Vec3;
|
|
6
|
+
readonly maxs: Vec3;
|
|
7
|
+
readonly trace: PmoveTraceFn;
|
|
8
|
+
}
|
|
9
|
+
export declare function goodPosition(params: GoodPositionParams): boolean;
|
|
10
|
+
export type SnapResolution = 'unchanged' | 'fixed' | 'reverted';
|
|
11
|
+
export interface SnapPositionParams extends GoodPositionParams {
|
|
12
|
+
readonly velocity: Vec3;
|
|
13
|
+
readonly previousOrigin: Vec3;
|
|
14
|
+
}
|
|
15
|
+
export interface SnapPositionResult {
|
|
16
|
+
readonly origin: Vec3;
|
|
17
|
+
readonly velocity: Vec3;
|
|
18
|
+
readonly resolution: SnapResolution;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Pure translation of PM_SnapPosition from rerelease `p_move.cpp`.
|
|
22
|
+
* Attempts to keep the caller's origin in a valid location by first
|
|
23
|
+
* checking the current origin against collision traces, then falling
|
|
24
|
+
* back to the shared `fixStuckObjectGeneric` helper before finally
|
|
25
|
+
* reverting to the provided previous origin when no fix is possible.
|
|
26
|
+
*/
|
|
27
|
+
export declare function snapPosition(params: SnapPositionParams): SnapPositionResult;
|
|
28
|
+
export interface InitialSnapPositionParams extends GoodPositionParams {
|
|
29
|
+
}
|
|
30
|
+
export interface InitialSnapPositionResult {
|
|
31
|
+
readonly origin: Vec3;
|
|
32
|
+
readonly snapped: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Pure translation of PM_InitialSnapPosition from rerelease `p_move.cpp`.
|
|
36
|
+
* Tries a 3x3x3 grid of +/-1 unit offsets around the base origin to find
|
|
37
|
+
* a valid collision-free spot, mirroring the search order of the C++ code.
|
|
38
|
+
*/
|
|
39
|
+
export declare function initialSnapPosition(params: InitialSnapPositionParams): InitialSnapPositionResult;
|
|
40
|
+
//# sourceMappingURL=snap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snap.d.ts","sourceRoot":"","sources":["../../../src/pmove/snap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAIhE;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;CACrC;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAmB3E;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;CAAG;AAExE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,yBAAyB,CAgBhG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type Vec3 } from '../math/vec3.js';
|
|
2
|
+
import { type PmFlags, WaterLevel } from './constants.js';
|
|
3
|
+
import type { PmoveCmd, PmovePointContentsFn, PmoveTraceFn } from './types.js';
|
|
4
|
+
export interface SpecialMovementParams {
|
|
5
|
+
readonly pmFlags: PmFlags;
|
|
6
|
+
readonly pmTime: number;
|
|
7
|
+
readonly waterlevel: WaterLevel;
|
|
8
|
+
readonly watertype: number;
|
|
9
|
+
readonly gravity: number;
|
|
10
|
+
readonly cmd: PmoveCmd;
|
|
11
|
+
readonly forward: Vec3;
|
|
12
|
+
readonly origin: Vec3;
|
|
13
|
+
readonly velocity: Vec3;
|
|
14
|
+
readonly mins: Vec3;
|
|
15
|
+
readonly maxs: Vec3;
|
|
16
|
+
readonly viewheight: number;
|
|
17
|
+
readonly trace: PmoveTraceFn;
|
|
18
|
+
readonly pointContents: PmovePointContentsFn;
|
|
19
|
+
readonly onGround: boolean;
|
|
20
|
+
readonly overbounce?: number;
|
|
21
|
+
readonly stepSize?: number;
|
|
22
|
+
readonly maxBumps?: number;
|
|
23
|
+
readonly maxClipPlanes?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface SpecialMovementResult {
|
|
26
|
+
readonly pmFlags: PmFlags;
|
|
27
|
+
readonly pmTime: number;
|
|
28
|
+
readonly velocity: Vec3;
|
|
29
|
+
readonly performedWaterJump: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Mirrors the ladder detection and water-jump probing logic from
|
|
33
|
+
* `PM_CheckSpecialMovement` in `rerelease/p_move.cpp`. The helper clears and
|
|
34
|
+
* re-adds the ladder flag based on nearby CONTENTS_LADDER brushes, then
|
|
35
|
+
* simulates a potential water jump by firing the same 40-unit probe and
|
|
36
|
+
* step-slide loop the C++ uses before committing to the upward velocity.
|
|
37
|
+
*/
|
|
38
|
+
export declare function checkSpecialMovement(params: SpecialMovementParams): SpecialMovementResult;
|
|
39
|
+
//# sourceMappingURL=special.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"special.d.ts","sourceRoot":"","sources":["../../../src/pmove/special.ts"],"names":[],"mappings":"AACA,OAAO,EAAwD,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EAAwB,KAAK,OAAO,EAA2B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEzG,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgB/E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,GAAG,qBAAqB,CA0IzF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Vec3 } from '../math/vec3.js';
|
|
2
|
+
import type { PmoveTraceResult } from './types.js';
|
|
3
|
+
export interface FixStuckParams {
|
|
4
|
+
readonly origin: Vec3;
|
|
5
|
+
readonly mins: Vec3;
|
|
6
|
+
readonly maxs: Vec3;
|
|
7
|
+
readonly trace: FixStuckTraceFn;
|
|
8
|
+
}
|
|
9
|
+
export type FixStuckResult = 'good-position' | 'fixed' | 'no-good-position';
|
|
10
|
+
export interface FixStuckOutcome {
|
|
11
|
+
readonly result: FixStuckResult;
|
|
12
|
+
readonly origin: Vec3;
|
|
13
|
+
}
|
|
14
|
+
export type FixStuckTraceFn = (start: Vec3, mins: Vec3, maxs: Vec3, end: Vec3) => PmoveTraceResult;
|
|
15
|
+
/**
|
|
16
|
+
* TypeScript port of G_FixStuckObject_Generic from rerelease p_move.cpp. Attempts to
|
|
17
|
+
* nudge a stuck bounding box out of solid space by probing the faces of the box and
|
|
18
|
+
* moving towards the opposite side, keeping the smallest successful displacement.
|
|
19
|
+
*/
|
|
20
|
+
export declare function fixStuckObjectGeneric(params: FixStuckParams): FixStuckOutcome;
|
|
21
|
+
//# sourceMappingURL=stuck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stuck.d.ts","sourceRoot":"","sources":["../../../src/pmove/stuck.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAuBnD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;CACjC;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,OAAO,GAAG,kBAAkB,CAAC;AAE5E,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,CAC5B,KAAK,EAAE,IAAI,EACX,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,IAAI,KACN,gBAAgB,CAAC;AA2HtB;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,eAAe,CAgF7E"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ContentsFlag } from '../bsp/contents.js';
|
|
2
|
+
import type { Vec3 } from '../math/vec3.js';
|
|
3
|
+
export interface PmoveFrictionParams {
|
|
4
|
+
readonly velocity: Vec3;
|
|
5
|
+
readonly frametime: number;
|
|
6
|
+
readonly onGround: boolean;
|
|
7
|
+
readonly groundIsSlick: boolean;
|
|
8
|
+
readonly onLadder: boolean;
|
|
9
|
+
readonly waterlevel: number;
|
|
10
|
+
readonly pmFriction: number;
|
|
11
|
+
readonly pmStopSpeed: number;
|
|
12
|
+
readonly pmWaterFriction: number;
|
|
13
|
+
}
|
|
14
|
+
export interface PmoveAccelerateParams {
|
|
15
|
+
readonly velocity: Vec3;
|
|
16
|
+
readonly wishdir: Vec3;
|
|
17
|
+
readonly wishspeed: number;
|
|
18
|
+
readonly accel: number;
|
|
19
|
+
readonly frametime: number;
|
|
20
|
+
}
|
|
21
|
+
export interface PmoveCmd {
|
|
22
|
+
readonly forwardmove: number;
|
|
23
|
+
readonly sidemove: number;
|
|
24
|
+
readonly upmove: number;
|
|
25
|
+
readonly buttons?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface PmoveWishResult {
|
|
28
|
+
readonly wishdir: Vec3;
|
|
29
|
+
readonly wishspeed: number;
|
|
30
|
+
}
|
|
31
|
+
export interface PmoveWishParams {
|
|
32
|
+
readonly forward: Vec3;
|
|
33
|
+
readonly right: Vec3;
|
|
34
|
+
readonly cmd: PmoveCmd;
|
|
35
|
+
readonly maxSpeed: number;
|
|
36
|
+
}
|
|
37
|
+
export interface PmoveTraceResult {
|
|
38
|
+
readonly fraction: number;
|
|
39
|
+
readonly endpos: Vec3;
|
|
40
|
+
readonly planeNormal?: Vec3;
|
|
41
|
+
readonly allsolid: boolean;
|
|
42
|
+
readonly startsolid: boolean;
|
|
43
|
+
readonly contents?: ContentsFlag;
|
|
44
|
+
readonly surfaceFlags?: number;
|
|
45
|
+
}
|
|
46
|
+
export type PmoveTraceFn = (start: Vec3, end: Vec3, mins?: Vec3, maxs?: Vec3) => PmoveTraceResult;
|
|
47
|
+
export type PmovePointContentsFn = (point: Vec3) => ContentsFlag;
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/pmove/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,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I,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACjC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,gBAAgB,CAAC;AAElG,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Vec3 } from '../math/vec3.js';
|
|
2
|
+
import { type AngleVectorsResult } from '../math/angles.js';
|
|
3
|
+
import { type PmFlags } from './constants.js';
|
|
4
|
+
export interface ClampViewAnglesParams {
|
|
5
|
+
readonly pmFlags: PmFlags;
|
|
6
|
+
readonly cmdAngles: Vec3;
|
|
7
|
+
readonly deltaAngles: Vec3;
|
|
8
|
+
}
|
|
9
|
+
export interface ClampViewAnglesResult extends AngleVectorsResult {
|
|
10
|
+
readonly viewangles: Vec3;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Pure translation of `PM_ClampAngles` from `rerelease/p_move.cpp`. The helper
|
|
14
|
+
* fuses the latest command angles with the stored delta, applies the teleport
|
|
15
|
+
* pitch/roll reset, enforces the ±90° pitch window, and returns the resulting
|
|
16
|
+
* axis vectors that the C version stored in `pml.forward/right/up`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function clampViewAngles(params: ClampViewAnglesParams): ClampViewAnglesResult;
|
|
19
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/pmove/view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B;AAoBD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,qBAAqB,CAkBpF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ContentsFlag } from '../bsp/contents.js';
|
|
2
|
+
import type { Vec3 } from '../math/vec3.js';
|
|
3
|
+
import { WaterLevel } from './constants.js';
|
|
4
|
+
import type { PmovePointContentsFn } from './types.js';
|
|
5
|
+
export interface WaterLevelParams {
|
|
6
|
+
readonly origin: Vec3;
|
|
7
|
+
readonly mins: Vec3;
|
|
8
|
+
readonly viewheight: number;
|
|
9
|
+
readonly pointContents: PmovePointContentsFn;
|
|
10
|
+
}
|
|
11
|
+
export interface WaterLevelResult {
|
|
12
|
+
readonly waterlevel: WaterLevel;
|
|
13
|
+
readonly watertype: ContentsFlag;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Mirrors the rerelease `PM_GetWaterLevel` helper: probes the player's feet,
|
|
17
|
+
* waist, and viewheight to determine how submerged they are and returns both
|
|
18
|
+
* the enum level plus the contents bits encountered at the lowest sample.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getWaterLevel(params: WaterLevelParams): WaterLevelResult;
|
|
21
|
+
//# sourceMappingURL=water.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"water.d.ts","sourceRoot":"","sources":["../../../src/pmove/water.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;CAC9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CAiCxE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const MAX_STRING_CHARS = 1024;
|
|
2
|
+
export declare const MAX_STRING_TOKENS = 80;
|
|
3
|
+
export declare const MAX_TOKEN_CHARS = 512;
|
|
4
|
+
export declare const MAX_QPATH = 64;
|
|
5
|
+
export declare const MAX_OSPATH = 128;
|
|
6
|
+
export declare const MAX_CLIENTS = 256;
|
|
7
|
+
export declare const MAX_EDICTS = 8192;
|
|
8
|
+
export declare const MAX_LIGHTSTYLES = 256;
|
|
9
|
+
export declare const MAX_MODELS = 8192;
|
|
10
|
+
export declare const MAX_SOUNDS = 2048;
|
|
11
|
+
export declare const MAX_IMAGES = 512;
|
|
12
|
+
export declare const MAX_ITEMS = 256;
|
|
13
|
+
export declare const MAX_GENERAL: number;
|
|
14
|
+
export declare const MAX_SHADOW_LIGHTS = 256;
|
|
15
|
+
export declare const MAX_WHEEL_ITEMS = 32;
|
|
16
|
+
export declare const CS_MAX_STRING_LENGTH = 96;
|
|
17
|
+
export declare const CS_MAX_STRING_LENGTH_OLD = 64;
|
|
18
|
+
export declare enum ConfigStringIndex {
|
|
19
|
+
Name = 0,
|
|
20
|
+
CdTrack = 1,
|
|
21
|
+
Sky = 2,
|
|
22
|
+
SkyAxis = 3,
|
|
23
|
+
SkyRotate = 4,
|
|
24
|
+
StatusBar = 5,
|
|
25
|
+
AirAccel = 59,
|
|
26
|
+
MaxClients = 60,
|
|
27
|
+
MapChecksum = 61,
|
|
28
|
+
Models = 62,
|
|
29
|
+
Sounds = 8254,
|
|
30
|
+
Images = 10302,
|
|
31
|
+
Lights = 10814,
|
|
32
|
+
ShadowLights = 11070,
|
|
33
|
+
Items = 11326,
|
|
34
|
+
PlayerSkins = 11582,
|
|
35
|
+
General = 11838,
|
|
36
|
+
WheelWeapons = 12350,
|
|
37
|
+
WheelAmmo = 12382,
|
|
38
|
+
WheelPowerups = 12414,
|
|
39
|
+
CdLoopCount = 12446,
|
|
40
|
+
GameStyle = 12447,
|
|
41
|
+
MaxConfigStrings = 12448
|
|
42
|
+
}
|
|
43
|
+
export declare const MAX_CONFIGSTRINGS = ConfigStringIndex.MaxConfigStrings;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the maximum string length permitted for the given configstring index,
|
|
46
|
+
* mirroring the `CS_SIZE` helper in the rerelease. Statusbar and general ranges
|
|
47
|
+
* can legally occupy multiple 96-character slots; everything else is capped at
|
|
48
|
+
* `CS_MAX_STRING_LENGTH`.
|
|
49
|
+
*/
|
|
50
|
+
export declare function configStringSize(index: number): number;
|
|
51
|
+
//# sourceMappingURL=configstrings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configstrings.d.ts","sourceRoot":"","sources":["../../../src/protocol/configstrings.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAg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
|
|
1
|
+
export declare const enum CvarFlags {
|
|
2
|
+
None = 0,
|
|
3
|
+
Archive = 1,
|
|
4
|
+
UserInfo = 2,
|
|
5
|
+
ServerInfo = 4,
|
|
6
|
+
Latch = 8,
|
|
7
|
+
Cheat = 16
|
|
8
|
+
}
|
|
9
|
+
export interface CvarDefinition {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly defaultValue: string;
|
|
12
|
+
readonly description?: string;
|
|
13
|
+
readonly flags?: CvarFlags;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cvar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cvar.d.ts","sourceRoot":"","sources":["../../../src/protocol/cvar.ts"],"names":[],"mappings":"AAAA,0BAAkB,SAAS;IACzB,IAAI,IAAI;IACR,OAAO,IAAS;IAChB,QAAQ,IAAS;IACjB,UAAU,IAAS;IACnB,KAAK,IAAS;IACd,KAAK,KAAS;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAC5B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var Quake2Tools=(()=>{var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var s in e)n(r,s,{get:e[s],enumerable:!0})},u=(r,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of o(e))!m.call(r,t)&&t!==s&&n(r,t,{get:()=>e[t],enumerable:!(a=i(e,t))||a.enumerable});return r};var y=r=>u(n({},"__esModule",{value:!0}),r);var p={};c(p,{describeAsset:()=>d});function d(r,e){return{name:r,origin:e}}return y(p);})();
|
|
2
|
+
//# sourceMappingURL=index.global.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Vec3 } from '@quake2ts/shared';\n\nexport interface AssetSummary {\n readonly name: string;\n readonly origin?: Vec3;\n}\n\nexport function describeAsset(name: string, origin?: Vec3): AssetSummary {\n return { name, origin };\n}\n"],"mappings":"+bAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAOO,SAASA,EAAcC,EAAcC,EAA6B,CACvE,MAAO,CAAE,KAAAD,EAAM,OAAAC,CAAO,CACxB","names":["src_exports","__export","describeAsset","name","origin"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
describeAsset: () => describeAsset
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
function describeAsset(name, origin) {
|
|
27
|
+
return { name, origin };
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
describeAsset
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Vec3 } from '@quake2ts/shared';\n\nexport interface AssetSummary {\n readonly name: string;\n readonly origin?: Vec3;\n}\n\nexport function describeAsset(name: string, origin?: Vec3): AssetSummary {\n return { name, origin };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,SAAS,cAAc,MAAc,QAA6B;AACvE,SAAO,EAAE,MAAM,OAAO;AACxB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import type { Vec3 } from '@quake2ts/shared';\n\nexport interface AssetSummary {\n readonly name: string;\n readonly origin?: Vec3;\n}\n\nexport function describeAsset(name: string, origin?: Vec3): AssetSummary {\n return { name, origin };\n}\n"],"mappings":";AAOO,SAAS,cAAc,MAAc,QAA6B;AACvE,SAAO,EAAE,MAAM,OAAO;AACxB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../shared/dist/types/math/vec3.d.ts","../../shared/dist/types/math/angles.d.ts","../../shared/dist/types/math/color.d.ts","../../shared/dist/types/math/random.d.ts","../../shared/dist/types/bsp/contents.d.ts","../../shared/dist/types/bsp/collision.d.ts","../../shared/dist/types/protocol/cvar.d.ts","../../shared/dist/types/protocol/configstrings.d.ts","../../shared/dist/types/pmove/types.d.ts","../../shared/dist/types/pmove/constants.d.ts","../../shared/dist/types/pmove/pmove.d.ts","../../shared/dist/types/pmove/slide.d.ts","../../shared/dist/types/pmove/stuck.d.ts","../../shared/dist/types/pmove/currents.d.ts","../../shared/dist/types/pmove/fly.d.ts","../../shared/dist/types/pmove/water.d.ts","../../shared/dist/types/pmove/jump.d.ts","../../shared/dist/types/pmove/dimensions.d.ts","../../shared/dist/types/pmove/duck.d.ts","../../shared/dist/types/pmove/categorize.d.ts","../../shared/dist/types/pmove/move.d.ts","../../shared/dist/types/pmove/special.d.ts","../../shared/dist/types/pmove/snap.d.ts","../../shared/dist/types/pmove/view.d.ts","../../shared/dist/types/index.d.ts","../src/index.ts"],"fileIdsList":[[46],[46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69],[46,50,54,55],[46,55],[46,50,54,55,63],[46,54,57],[46,54,55,57],[46,54],[46,54,55],[46,50],[46,47,55],[70]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d49d5bc95370fd2ed354d3c9182b058203fff1c1b4970b9e16b2e6f5c9281dca","impliedFormat":99},{"version":"18e47b7615118f25f0c09d8a234177c0b48eaccd7ee81f7a7e755ac336790114","impliedFormat":99},{"version":"0a483508d8a864726671af5c9b2d7c78e6c12e1289bef65db7df48930113bd04","impliedFormat":99},{"version":"261013ab3c7adc50bd7be46881789753a25870ec5ef2f265f5aee15645f7ff82","impliedFormat":99},{"version":"db68eb9983dfee06a8f79ac7e0ff1d2f8b64adf8ddbd0d8340dfe075dfeeb62c","impliedFormat":99},{"version":"4b6aa0a5d7350ec05ef791934e4223b754d0062044a3d2e36e9d00e85caf8439","impliedFormat":99},{"version":"5791d843929b2794e757aac45a4791860a4542a163ef0fa062bff83cc4b2783d","impliedFormat":99},{"version":"c4df6bbc7e47590510a0d1874dbc655720cbff06c9cc1dc5f3b453d2efed5181","impliedFormat":99},{"version":"0663baa12462be4526fc70d40a0512d7c901546d3d2470571a4cecc2403b06b9","impliedFormat":99},{"version":"86a09575cc4f08dffb7d7fa70b00d855e7901da0247d2689ee2b5d68acd72300","impliedFormat":99},{"version":"966b5425870531e51598f864e5da23083ca0f2bc32055c451eff33b59ab1e42b","impliedFormat":99},{"version":"c003de6a72360c6dd4cafb689bd18b196910ec4a2ee299e6b6e7b30b7c976727","impliedFormat":99},{"version":"b74d298d1f2e7dd4b13653cd705f54dfeb0225192ce6adb419d118dc61db51ed","impliedFormat":99},{"version":"28faf4f79dfdb949104d0d954fed83a24c9cdfe98e9799c33e214d1fef29b1bd","impliedFormat":99},{"version":"210e8a5d5576c2902129050e62e4cc7acddd41b4e8be38552639c6d21ff3cee3","impliedFormat":99},{"version":"22e2e64285f7aaef481a744debc998006f8cf463a870cf28f281ee789195e9fb","impliedFormat":99},{"version":"76a9a8b405f17d7ff73b3cb22e7e6fc2832069f5d00dccf927a591bf4996bb01","impliedFormat":99},{"version":"a4e0607cf35a6c1503665e283169f069032fe5acb0f69d4f5ab7d6b328bd3641","impliedFormat":99},{"version":"d3ed5cdf9024e5b707499b95b2f3f36810f3b790e015cc53541ab97dad353ea6","impliedFormat":99},{"version":"f943bb60549649ccb78acc8105de10c1fc77bc4681dfaedfe5330ce6e87a1d9f","impliedFormat":99},{"version":"85c25880de81ca2db6235c99260550f40f2df78dab87b89751e43bfaaa2eae1d","impliedFormat":99},{"version":"df60f25f487e9772ebf83da13db422c038021a2ecdde25a51506e3cd5f5da5a4","impliedFormat":99},{"version":"44f7b5e80a9d42c45264f4c4eb4e300c5a44d9517b0d47aec04a14265a84969d","impliedFormat":99},{"version":"35526be13abff0b287aaec4d8af58a71c77fea57ec9bd1861aaa457284e326dd","impliedFormat":99},{"version":"20eba37a78e38989c7873bf9453830da9ed67bbdc852e5cc3e3feac932f90985","impliedFormat":99},{"version":"96049bc3e043a6dad59fd1d1477672b9c0a7bddc1b75147297201c1891981df5","signature":"0eb33fd4c30c51ee5dbf03e495746d16f092a30ffd4519285d5d4bc87ab56b6b","impliedFormat":99}],"root":[71],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":199,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"strict":true,"target":7},"referencedMap":[[51,1],[70,2],[47,1],[65,3],[59,3],[63,4],[64,5],[60,6],[62,4],[66,7],[56,8],[57,8],[68,8],[67,9],[58,8],[54,10],[69,11],[61,3],[71,12]],"latestChangedDtsFile":"./types/index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;CACxB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,GAAG,YAAY,CAEvE"}
|