quake2ts 0.0.652 → 0.0.653
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/package.json +1 -1
- package/packages/test-utils/dist/index.cjs +5 -2
- package/packages/test-utils/dist/index.cjs.map +1 -1
- package/packages/test-utils/dist/index.d.cts +2 -2
- package/packages/test-utils/dist/index.d.ts +2 -2
- package/packages/test-utils/dist/index.js +5 -2
- package/packages/test-utils/dist/index.js.map +1 -1
|
@@ -4,7 +4,7 @@ import { Vec3, CollisionPlane, CollisionBrush, CollisionNode, CollisionLeaf, Col
|
|
|
4
4
|
export { intersects, ladderTrace, stairTrace } from '@quake2ts/shared';
|
|
5
5
|
import { Vec3 as Vec3$1, Bounds3 } from '@quake2ts/shared/math/vec3';
|
|
6
6
|
import { TraceResult, CollisionPlane as CollisionPlane$1 } from '@quake2ts/shared/bsp/collision';
|
|
7
|
-
import { ConfigStringEntry, Cvar, AudioNodeLike, AudioBufferSourceNodeLike, AudioBufferLike, AudioParamLike, GainNodeLike, DynamicsCompressorNodeLike, PannerNodeLike, BiquadFilterNodeLike, AudioDestinationNodeLike, AudioContextLike, Renderer, FrameRenderer, BspSurfacePipeline, Md2Pipeline, Md3Pipeline, SpriteRenderer, SkyboxPipeline, AssetManager, PreparedTexture, Md2Model, Md3Model, BspMap, Camera, FrameRenderStats, EntityState as EntityState$1, ProtocolPlayerState as ProtocolPlayerState$1, FrameData, DamageIndicator, FogData } from '@quake2ts/engine';
|
|
7
|
+
import { ConfigStringEntry, Cvar, BspModel, AudioNodeLike, AudioBufferSourceNodeLike, AudioBufferLike, AudioParamLike, GainNodeLike, DynamicsCompressorNodeLike, PannerNodeLike, BiquadFilterNodeLike, AudioDestinationNodeLike, AudioContextLike, Renderer, FrameRenderer, BspSurfacePipeline, Md2Pipeline, Md3Pipeline, SpriteRenderer, SkyboxPipeline, AssetManager, PreparedTexture, Md2Model, Md3Model, BspMap, Camera, FrameRenderStats, EntityState as EntityState$1, ProtocolPlayerState as ProtocolPlayerState$1, FrameData, DamageIndicator, FogData } from '@quake2ts/engine';
|
|
8
8
|
export { ConfigStringEntry, Cvar } from '@quake2ts/engine';
|
|
9
9
|
import { GameStateSnapshot, Entity, ScriptHookRegistry, SpawnContext, EntitySystem, SpawnRegistry, MonsterMove, DamageMod, PlayerInventory, BaseItem, WeaponId, WeaponItem, HealthItem, ArmorItem, AmmoItemId, PowerupItem, GameExports, PlayerClient } from '@quake2ts/game';
|
|
10
10
|
import { NetworkTransport, Server, ServerStatic, Client, ClientState as ClientState$1, ClientFrame } from '@quake2ts/server';
|
|
@@ -370,7 +370,7 @@ declare function createTestContext(options?: {
|
|
|
370
370
|
}): TestContext;
|
|
371
371
|
declare function createSpawnTestContext(mapName?: string): TestContext;
|
|
372
372
|
declare function createCombatTestContext(): TestContext;
|
|
373
|
-
declare function createPhysicsTestContext(): TestContext;
|
|
373
|
+
declare function createPhysicsTestContext(bspModel?: BspModel): TestContext;
|
|
374
374
|
declare function createEntity(): Entity;
|
|
375
375
|
/**
|
|
376
376
|
* Creates mock imports and engine for use with createGame() from @quake2ts/game.
|
|
@@ -4,7 +4,7 @@ import { Vec3, CollisionPlane, CollisionBrush, CollisionNode, CollisionLeaf, Col
|
|
|
4
4
|
export { intersects, ladderTrace, stairTrace } from '@quake2ts/shared';
|
|
5
5
|
import { Vec3 as Vec3$1, Bounds3 } from '@quake2ts/shared/math/vec3';
|
|
6
6
|
import { TraceResult, CollisionPlane as CollisionPlane$1 } from '@quake2ts/shared/bsp/collision';
|
|
7
|
-
import { ConfigStringEntry, Cvar, AudioNodeLike, AudioBufferSourceNodeLike, AudioBufferLike, AudioParamLike, GainNodeLike, DynamicsCompressorNodeLike, PannerNodeLike, BiquadFilterNodeLike, AudioDestinationNodeLike, AudioContextLike, Renderer, FrameRenderer, BspSurfacePipeline, Md2Pipeline, Md3Pipeline, SpriteRenderer, SkyboxPipeline, AssetManager, PreparedTexture, Md2Model, Md3Model, BspMap, Camera, FrameRenderStats, EntityState as EntityState$1, ProtocolPlayerState as ProtocolPlayerState$1, FrameData, DamageIndicator, FogData } from '@quake2ts/engine';
|
|
7
|
+
import { ConfigStringEntry, Cvar, BspModel, AudioNodeLike, AudioBufferSourceNodeLike, AudioBufferLike, AudioParamLike, GainNodeLike, DynamicsCompressorNodeLike, PannerNodeLike, BiquadFilterNodeLike, AudioDestinationNodeLike, AudioContextLike, Renderer, FrameRenderer, BspSurfacePipeline, Md2Pipeline, Md3Pipeline, SpriteRenderer, SkyboxPipeline, AssetManager, PreparedTexture, Md2Model, Md3Model, BspMap, Camera, FrameRenderStats, EntityState as EntityState$1, ProtocolPlayerState as ProtocolPlayerState$1, FrameData, DamageIndicator, FogData } from '@quake2ts/engine';
|
|
8
8
|
export { ConfigStringEntry, Cvar } from '@quake2ts/engine';
|
|
9
9
|
import { GameStateSnapshot, Entity, ScriptHookRegistry, SpawnContext, EntitySystem, SpawnRegistry, MonsterMove, DamageMod, PlayerInventory, BaseItem, WeaponId, WeaponItem, HealthItem, ArmorItem, AmmoItemId, PowerupItem, GameExports, PlayerClient } from '@quake2ts/game';
|
|
10
10
|
import { NetworkTransport, Server, ServerStatic, Client, ClientState as ClientState$1, ClientFrame } from '@quake2ts/server';
|
|
@@ -370,7 +370,7 @@ declare function createTestContext(options?: {
|
|
|
370
370
|
}): TestContext;
|
|
371
371
|
declare function createSpawnTestContext(mapName?: string): TestContext;
|
|
372
372
|
declare function createCombatTestContext(): TestContext;
|
|
373
|
-
declare function createPhysicsTestContext(): TestContext;
|
|
373
|
+
declare function createPhysicsTestContext(bspModel?: BspModel): TestContext;
|
|
374
374
|
declare function createEntity(): Entity;
|
|
375
375
|
/**
|
|
376
376
|
* Creates mock imports and engine for use with createGame() from @quake2ts/game.
|
|
@@ -574,8 +574,11 @@ function createSpawnTestContext(mapName) {
|
|
|
574
574
|
function createCombatTestContext() {
|
|
575
575
|
return createTestContext();
|
|
576
576
|
}
|
|
577
|
-
function createPhysicsTestContext() {
|
|
578
|
-
|
|
577
|
+
function createPhysicsTestContext(bspModel) {
|
|
578
|
+
const context = createTestContext();
|
|
579
|
+
if (bspModel) {
|
|
580
|
+
}
|
|
581
|
+
return context;
|
|
579
582
|
}
|
|
580
583
|
function createEntity() {
|
|
581
584
|
return new Entity2(1);
|