@rpg-engine/shared 0.5.58 → 0.5.59

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.
@@ -0,0 +1,3 @@
1
+ import { IItem } from "../types/item.types";
2
+ export declare const getItemTextureKeyPath: (itemToRender: IItem, atlasJSON: any) => string;
3
+ //# sourceMappingURL=itemSlotHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemSlotHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/itemSlotHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,eAAO,MAAM,qBAAqB,iBAAkB,KAAK,aAAa,GAAG,WAkBxE,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getItemTextureKeyPath = void 0;
4
+ const getItemTextureKeyPath = (itemToRender, atlasJSON) => {
5
+ var _a;
6
+ const stackQty = (_a = itemToRender === null || itemToRender === void 0 ? void 0 : itemToRender.stackQty) !== null && _a !== void 0 ? _a : 0;
7
+ const itemTexturePath = itemToRender.texturePath;
8
+ if (itemToRender && stackQty >= 1) {
9
+ const idx = stackQty >= 5 ? "5" : stackQty;
10
+ const textureBreakPath = itemTexturePath.split(".");
11
+ const txtPrefix = textureBreakPath[0];
12
+ const txtExtension = textureBreakPath[1];
13
+ const newTexturePath = `${txtPrefix}-qty-${idx}.${txtExtension}`;
14
+ const spriteData = atlasJSON.frames[newTexturePath];
15
+ if (spriteData !== undefined) {
16
+ return newTexturePath;
17
+ }
18
+ }
19
+ return itemTexturePath;
20
+ };
21
+ exports.getItemTextureKeyPath = getItemTextureKeyPath;
22
+ //# sourceMappingURL=itemSlotHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemSlotHelper.js","sourceRoot":"","sources":["../../src/helpers/itemSlotHelper.ts"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,GAAG,CAAC,YAAmB,EAAE,SAAc,EAAE,EAAE;;IAC3E,MAAM,QAAQ,GAAG,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,mCAAI,CAAC,CAAC;IAC7C,MAAM,eAAe,GAAG,YAAY,CAAC,WAAW,CAAC;IAEjD,IAAI,YAAY,IAAI,QAAQ,IAAI,CAAC,EAAE;QACjC,MAAM,GAAG,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;QAE3C,MAAM,gBAAgB,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpD,MAAM,SAAS,GAAW,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC9C,MAAM,YAAY,GAAW,gBAAgB,CAAC,CAAC,CAAC,CAAC;QACjD,MAAM,cAAc,GAAG,GAAG,SAAS,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;QACjE,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAEpD,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,OAAO,cAAc,CAAC;SACvB;KACF;IACD,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAlBW,QAAA,qBAAqB,yBAkBhC"}
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./constants/date.constants";
2
2
  export * from "./constants/npc.constants";
3
3
  export * from "./constants/socket.constants";
4
4
  export * from "./constants/world.constants";
5
+ export * from "./helpers/itemSlotHelper";
5
6
  export * from "./helpers/skillHelpers";
6
7
  export * from "./libs/GridHelper";
7
8
  export * from "./libs/MathHelper";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ __exportStar(require("./constants/date.constants"), exports);
18
18
  __exportStar(require("./constants/npc.constants"), exports);
19
19
  __exportStar(require("./constants/socket.constants"), exports);
20
20
  __exportStar(require("./constants/world.constants"), exports);
21
+ __exportStar(require("./helpers/itemSlotHelper"), exports);
21
22
  __exportStar(require("./helpers/skillHelpers"), exports);
22
23
  __exportStar(require("./libs/GridHelper"), exports);
23
24
  __exportStar(require("./libs/MathHelper"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,0DAAwC;AACxC,qDAAmC;AACnC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,0DAAwC;AACxC,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,wDAAsC;AACtC,2DAAyC;AACzC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,0DAAwC;AACxC,qDAAmC;AACnC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,0DAAwC;AACxC,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,wDAAsC;AACtC,2DAAyC;AACzC,qDAAmC"}
@@ -0,0 +1,2 @@
1
+ export declare const createZipMap: (mapName: string, mapObject: object, pathToSave: string) => Promise<void>;
2
+ //# sourceMappingURL=MapZipHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapZipHelper.d.ts","sourceRoot":"","sources":["../../src/libs/MapZipHelper.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,YAAmB,MAAM,aAAa,MAAM,cAAc,MAAM,KAAG,QAAQ,IAAI,CAMvG,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.createZipMap = void 0;
16
+ const compress_json_1 = require("compress-json");
17
+ const fs_extra_1 = __importDefault(require("fs-extra"));
18
+ const jszip_1 = __importDefault(require("jszip"));
19
+ const createZipMap = (mapName, mapObject, pathToSave) => __awaiter(void 0, void 0, void 0, function* () {
20
+ const data = (0, compress_json_1.compress)(mapObject);
21
+ const zip = new jszip_1.default();
22
+ zip.file(`${mapName}.txt`, JSON.stringify(data));
23
+ const buffer = yield zip.generateAsync({ type: "uint8array" });
24
+ yield fs_extra_1.default.createWriteStream(`${pathToSave}/${mapName}.zip`).write(buffer);
25
+ });
26
+ exports.createZipMap = createZipMap;
27
+ //# sourceMappingURL=MapZipHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapZipHelper.js","sourceRoot":"","sources":["../../src/libs/MapZipHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAAyC;AACzC,wDAA0B;AAC1B,kDAA0B;AAEnB,MAAM,YAAY,GAAG,CAAO,OAAe,EAAE,SAAiB,EAAE,UAAkB,EAAiB,EAAE;IAC1G,MAAM,IAAI,GAAG,IAAA,wBAAQ,EAAC,SAAS,CAAC,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,eAAK,EAAE,CAAC;IACxB,GAAG,CAAC,IAAI,CAAC,GAAG,OAAO,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/D,MAAM,kBAAE,CAAC,iBAAiB,CAAC,GAAG,UAAU,IAAI,OAAO,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC3E,CAAC,CAAA,CAAC;AANW,QAAA,YAAY,gBAMvB"}
@@ -0,0 +1,9 @@
1
+ import { IItemContainer } from "./item.types";
2
+ export interface IContainersProps {
3
+ openedContainers: Set<string>;
4
+ containersData: {
5
+ [key: string]: IItemContainer;
6
+ };
7
+ onMouseOverElement: (element: any) => void;
8
+ }
9
+ //# sourceMappingURL=container.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.types.d.ts","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=container.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.types.js","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { INPC } from "./npc.types";
2
+ interface INPCMetaData extends Omit<INPC, "_id"> {
3
+ key: string;
4
+ }
5
+ export declare const NPCMetaData: INPCMetaData[];
6
+ export {};
7
+ //# sourceMappingURL=npcMetadata.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npcMetadata.types.d.ts","sourceRoot":"","sources":["../../src/types/npcMetadata.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,UAAU,YAAa,SAAQ,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;IAC9C,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,EAYrC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NPCMetaData = void 0;
4
+ const GridHelper_1 = require("../libs/GridHelper");
5
+ const character_types_1 = require("./character.types");
6
+ const maps_types_1 = require("./maps.types");
7
+ exports.NPCMetaData = [
8
+ {
9
+ key: "alice",
10
+ name: "Alice",
11
+ x: (0, GridHelper_1.FromGridX)(22),
12
+ y: (0, GridHelper_1.FromGridY)(12),
13
+ direction: "down",
14
+ scene: "MainScene",
15
+ class: character_types_1.CharacterClass.Cleric,
16
+ gender: character_types_1.CharacterGender.Female,
17
+ layer: maps_types_1.MapLayers.Player,
18
+ },
19
+ ];
20
+ //# sourceMappingURL=npcMetadata.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npcMetadata.types.js","sourceRoot":"","sources":["../../src/types/npcMetadata.types.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAC1D,uDAAoE;AACpE,6CAAyC;AAO5B,QAAA,WAAW,GAAmB;IACzC;QACE,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE,OAAO;QACb,CAAC,EAAE,IAAA,sBAAS,EAAC,EAAE,CAAC;QAChB,CAAC,EAAE,IAAA,sBAAS,EAAC,EAAE,CAAC;QAChB,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,gCAAc,CAAC,MAAM;QAC5B,MAAM,EAAE,iCAAe,CAAC,MAAM;QAC9B,KAAK,EAAE,sBAAS,CAAC,MAAM;KACxB;CACF,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { IEntityBasicInfo } from "./entity.types";
2
+ export declare enum PlayerSocketEvents {
3
+ PlayerCreate = "PlayerCreate",
4
+ PlayerPositionUpdate = "PlayerPositionUpdate",
5
+ PlayerPositionUpdateConfirm = "PlayerPositionUpdateConfirm",
6
+ PlayerLogout = "PlayerLogout",
7
+ PlayerPrivateMessage = "PlayerPrivateMessage",
8
+ PlayerPing = "PlayerPing",
9
+ PlayerForceDisconnect = "PlayerForceDisconnect"
10
+ }
11
+ export interface IPlayerPing {
12
+ id: string;
13
+ }
14
+ export interface IPlayerPositionUpdateConfirm {
15
+ id: string;
16
+ direction: string;
17
+ isValid: boolean;
18
+ }
19
+ export declare type Events = PlayerSocketEvents;
20
+ export interface IConnectedPlayer {
21
+ id: string;
22
+ name: string;
23
+ x: number;
24
+ y: number;
25
+ channelId: string;
26
+ direction?: string;
27
+ isMoving?: boolean;
28
+ cameraCoordinates: ICameraCoordinates;
29
+ otherEntitiesInView: IEntitiesInView;
30
+ }
31
+ export interface IEntitiesInView {
32
+ [id: string]: IEntityBasicInfo;
33
+ }
34
+ export interface IConnectedPlayers {
35
+ [id: string]: IConnectedPlayer;
36
+ }
37
+ export interface PlayerLogoutPayload {
38
+ id: string;
39
+ }
40
+ export interface ICameraCoordinates {
41
+ x: number;
42
+ y: number;
43
+ width: number;
44
+ height: number;
45
+ }
46
+ export interface IPlayerForceDisconnect {
47
+ reason: string;
48
+ }
49
+ //# sourceMappingURL=player.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player.types.d.ts","sourceRoot":"","sources":["../../src/types/player.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,oBAAY,kBAAkB;IAC5B,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,2BAA2B,gCAAgC;IAC3D,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,qBAAqB,0BAA0B;CAChD;AAED,MAAM,WAAW,WAAW;IAE1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,oBAAY,MAAM,GAAG,kBAAkB,CAAC;AAExC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,mBAAmB,EAAE,eAAe,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ //# sourceMappingURL=player.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player.types.js","sourceRoot":"","sources":["../../src/types/player.types.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;IAC7C,iFAA2D,CAAA;IAC3D,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;IAC7C,+CAAyB,CAAA;IACzB,qEAA+C,CAAA;AACjD,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/shared",
3
- "version": "0.5.58",
3
+ "version": "0.5.59",
4
4
  "description": "Types shared across our API and client",
5
5
  "author": "Definya Team",
6
6
  "homepage": "",