@rpgjs/server 5.0.0-alpha.23 → 5.0.0-alpha.25
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/dist/Player/BattleManager.d.ts +1 -1
- package/dist/Player/ClassManager.d.ts +1 -1
- package/dist/Player/ComponentManager.d.ts +1 -1
- package/dist/Player/EffectManager.d.ts +1 -1
- package/dist/Player/ElementManager.d.ts +1 -1
- package/dist/Player/GoldManager.d.ts +1 -1
- package/dist/Player/GuiManager.d.ts +1 -1
- package/dist/Player/ItemFixture.d.ts +1 -1
- package/dist/Player/ItemManager.d.ts +1 -1
- package/dist/Player/MoveManager.d.ts +1 -1
- package/dist/Player/ParameterManager.d.ts +1 -1
- package/dist/Player/Player.d.ts +1 -1
- package/dist/Player/SkillManager.d.ts +1 -1
- package/dist/Player/StateManager.d.ts +1 -1
- package/dist/Player/VariableManager.d.ts +1 -1
- package/dist/RpgServer.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7866 -9552
- package/dist/index.js.map +1 -1
- package/dist/rooms/map.d.ts +50 -6
- package/package.json +11 -9
- package/src/Player/ItemManager.ts +5 -1
- package/src/Player/ParameterManager.ts +6 -1
- package/src/Player/Player.ts +9 -19
- package/src/rooms/map.ts +81 -9
- package/tests/change-map.spec.ts +72 -0
- package/tests/item.spec.ts +577 -0
- package/tests/module.spec.ts +38 -0
- package/tests/player-param.spec.ts +28 -0
- package/tests/world-maps.spec.ts +852 -0
- package/vite.config.ts +16 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Constructor, RpgCommonPlayer } from '
|
|
1
|
+
import { Constructor, RpgCommonPlayer } from '../../../common/src';
|
|
2
2
|
import { ComponentInput, ComponentLayout } from './Components';
|
|
3
3
|
type ComponentPosition = 'top' | 'center' | 'bottom' | 'left' | 'right';
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ItemInstance } from '@rpgjs/database';
|
|
2
|
-
import { PlayerCtor } from '
|
|
2
|
+
import { PlayerCtor } from '../../../common/src';
|
|
3
3
|
export declare function WithItemFixture<TBase extends PlayerCtor>(Base: TBase): TBase;
|
|
4
4
|
export interface ItemFixture {
|
|
5
5
|
equipments: ItemInstance[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlayerCtor, ProjectileType, RpgCommonPlayer, Direction, MovementStrategy } from '
|
|
1
|
+
import { PlayerCtor, ProjectileType, RpgCommonPlayer, Direction, MovementStrategy } from '../../../common/src';
|
|
2
2
|
import { RpgPlayer } from './Player';
|
|
3
3
|
type CallbackTileMove = (player: RpgPlayer, map: any) => Direction[];
|
|
4
4
|
type CallbackTurnMove = (player: RpgPlayer, map: any) => string;
|
package/dist/Player/Player.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hooks, RpgCommonPlayer, Constructor, Direction, AttachShapeOptions, RpgShape } from '
|
|
1
|
+
import { Hooks, RpgCommonPlayer, Constructor, Direction, AttachShapeOptions, RpgShape } from '../../../common/src';
|
|
2
2
|
import { IComponentManager } from './ComponentManager';
|
|
3
3
|
import { RpgMap } from '../rooms/map';
|
|
4
4
|
import { Context } from '@signe/di';
|
package/dist/RpgServer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { MapOptions } from './decorators/map';
|
|
|
2
2
|
import { RpgPlayer, RpgEvent } from './Player/Player';
|
|
3
3
|
import { RpgMap } from './rooms/map';
|
|
4
4
|
import { RpgServerEngine } from './RpgServerEngine';
|
|
5
|
-
import { WorldMapConfig, RpgShape } from '
|
|
5
|
+
import { WorldMapConfig, RpgShape } from '../../common/src';
|
|
6
6
|
type RpgClassMap<T> = new () => T;
|
|
7
7
|
type RpgClassEvent<T> = RpgEvent;
|
|
8
8
|
type MatchMakerOption = any;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ export * from './rooms/map';
|
|
|
10
10
|
export * from './presets';
|
|
11
11
|
export * from '@signe/reactive';
|
|
12
12
|
export * from './Gui';
|
|
13
|
-
export { RpgShape, RpgModule } from '
|
|
13
|
+
export { RpgShape, RpgModule } from '../../common/src';
|
|
14
14
|
export * from './decorators/event';
|
|
15
15
|
export * from './decorators/map';
|