@rpg-engine/shared 0.1.21 → 0.1.24
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/npc.types.d.ts +13 -0
- package/dist/types/npc.types.d.ts.map +1 -0
- package/dist/types/npc.types.js +3 -0
- package/dist/types/npc.types.js.map +1 -0
- package/dist/types/player.types.d.ts +2 -2
- package/dist/types/player.types.js +11 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./types/env.types";
|
|
|
10
10
|
export * from "./types/googleOAuth.types";
|
|
11
11
|
export * from "./types/maps.types";
|
|
12
12
|
export * from "./types/notification.types";
|
|
13
|
+
export * from "./types/npc.types";
|
|
13
14
|
export * from "./types/pagination.types";
|
|
14
15
|
export * from "./types/places.types";
|
|
15
16
|
export * from "./types/player.types";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./types/env.types"), exports);
|
|
|
22
22
|
__exportStar(require("./types/googleOAuth.types"), exports);
|
|
23
23
|
__exportStar(require("./types/maps.types"), exports);
|
|
24
24
|
__exportStar(require("./types/notification.types"), exports);
|
|
25
|
+
__exportStar(require("./types/npc.types"), exports);
|
|
25
26
|
__exportStar(require("./types/pagination.types"), exports);
|
|
26
27
|
__exportStar(require("./types/places.types"), exports);
|
|
27
28
|
__exportStar(require("./types/player.types"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnimationDirection } from "./animation.types";
|
|
2
|
+
import { CharacterClass, CharacterGender } from "./character.types";
|
|
3
|
+
export interface INPC {
|
|
4
|
+
name: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
direction: AnimationDirection;
|
|
8
|
+
scene: string;
|
|
9
|
+
class: CharacterClass;
|
|
10
|
+
gender: CharacterGender;
|
|
11
|
+
texture: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=npc.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npc.types.d.ts","sourceRoot":"","sources":["../../src/types/npc.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpE,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,kBAAkB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npc.types.js","sourceRoot":"","sources":["../../src/types/npc.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum PlayerSocketEvents {
|
|
2
2
|
PlayerCreate = "PlayerCreate",
|
|
3
3
|
PlayerPositionUpdate = "PlayerPositionUpdate",
|
|
4
4
|
PlayerPositionUpdateConfirm = "PlayerPositionUpdateConfirm",
|
|
@@ -15,7 +15,7 @@ export interface IPlayerPositionUpdateConfirm {
|
|
|
15
15
|
direction: string;
|
|
16
16
|
isValid: boolean;
|
|
17
17
|
}
|
|
18
|
-
export declare type Events =
|
|
18
|
+
export declare type Events = PlayerSocketEvents;
|
|
19
19
|
export interface IConnectedPlayer {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})(
|
|
3
|
+
exports.PlayerSocketEvents = void 0;
|
|
4
|
+
var PlayerSocketEvents;
|
|
5
|
+
(function (PlayerSocketEvents) {
|
|
6
|
+
PlayerSocketEvents["PlayerCreate"] = "PlayerCreate";
|
|
7
|
+
PlayerSocketEvents["PlayerPositionUpdate"] = "PlayerPositionUpdate";
|
|
8
|
+
PlayerSocketEvents["PlayerPositionUpdateConfirm"] = "PlayerPositionUpdateConfirm";
|
|
9
|
+
PlayerSocketEvents["PlayerLogout"] = "PlayerLogout";
|
|
10
|
+
PlayerSocketEvents["PlayerPrivateMessage"] = "PlayerPrivateMessage";
|
|
11
|
+
PlayerSocketEvents["PlayerPing"] = "PlayerPing";
|
|
12
|
+
PlayerSocketEvents["PlayerForceDisconnect"] = "PlayerForceDisconnect";
|
|
13
|
+
})(PlayerSocketEvents = exports.PlayerSocketEvents || (exports.PlayerSocketEvents = {}));
|
|
14
14
|
//# sourceMappingURL=player.types.js.map
|