@rpg-engine/shared 0.4.20 → 0.4.23

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.
Files changed (109) hide show
  1. package/README.md +29 -29
  2. package/dist/constants/date.constants.d.ts +2 -2
  3. package/dist/constants/date.constants.js +5 -5
  4. package/dist/constants/npc.constants.d.ts +1 -1
  5. package/dist/constants/npc.constants.js +4 -4
  6. package/dist/constants/socket.constants.d.ts +2 -2
  7. package/dist/constants/socket.constants.js +6 -6
  8. package/dist/constants/world.constants.d.ts +10 -10
  9. package/dist/constants/world.constants.js +13 -13
  10. package/dist/helpers/skillHelpers.d.ts +4 -4
  11. package/dist/helpers/skillHelpers.js +25 -25
  12. package/dist/index.d.ts +41 -41
  13. package/dist/index.js +57 -57
  14. package/dist/libs/GridHelper.d.ts +11 -11
  15. package/dist/libs/GridHelper.js +37 -37
  16. package/dist/libs/MathHelper.d.ts +16 -16
  17. package/dist/libs/MathHelper.js +14 -14
  18. package/dist/libs/SocketHelper.d.ts +2 -2
  19. package/dist/libs/SocketHelper.js +14 -14
  20. package/dist/libs/TextHelper.d.ts +7 -7
  21. package/dist/libs/TextHelper.js +21 -21
  22. package/dist/libs/TypeHelper.d.ts +3 -3
  23. package/dist/libs/TypeHelper.js +16 -16
  24. package/dist/translations/app-rate.lang.json +38 -38
  25. package/dist/translations/assets.lang.json +82 -82
  26. package/dist/translations/auth.lang.json +182 -182
  27. package/dist/translations/email.lang.json +70 -70
  28. package/dist/translations/error.lang.json +18 -18
  29. package/dist/translations/form.lang.json +94 -94
  30. package/dist/translations/global.lang.json +90 -90
  31. package/dist/translations/logs.lang.json +6 -6
  32. package/dist/translations/onboarding.lang.d.ts +10 -10
  33. package/dist/translations/onboarding.lang.js +21 -21
  34. package/dist/translations/onboarding.lang.json +50 -50
  35. package/dist/translations/order.lang.json +90 -90
  36. package/dist/translations/search.lang.json +50 -50
  37. package/dist/translations/settings.lang.json +14 -14
  38. package/dist/translations/tabs.lang.json +22 -22
  39. package/dist/translations/users.lang.json +22 -22
  40. package/dist/translations/validation.lang.json +86 -86
  41. package/dist/types/animation.types.d.ts +16 -16
  42. package/dist/types/animation.types.js +2 -2
  43. package/dist/types/api.types.d.ts +21 -21
  44. package/dist/types/api.types.js +20 -20
  45. package/dist/types/asset.types.d.ts +6 -6
  46. package/dist/types/asset.types.js +2 -2
  47. package/dist/types/auth.types.d.ts +7 -7
  48. package/dist/types/auth.types.js +2 -2
  49. package/dist/types/battle.types.d.ts +38 -38
  50. package/dist/types/battle.types.js +18 -18
  51. package/dist/types/character.types.d.ts +151 -150
  52. package/dist/types/character.types.d.ts.map +1 -1
  53. package/dist/types/character.types.js +30 -30
  54. package/dist/types/chat.types.d.ts +30 -30
  55. package/dist/types/chat.types.js +14 -14
  56. package/dist/types/device.types.d.ts +24 -24
  57. package/dist/types/device.types.js +7 -7
  58. package/dist/types/entity.types.d.ts +21 -21
  59. package/dist/types/entity.types.js +15 -15
  60. package/dist/types/env.types.d.ts +5 -5
  61. package/dist/types/env.types.js +9 -9
  62. package/dist/types/equipment.types.d.ts +35 -35
  63. package/dist/types/equipment.types.js +18 -18
  64. package/dist/types/googleOAuth.types.d.ts +47 -47
  65. package/dist/types/googleOAuth.types.js +2 -2
  66. package/dist/types/inventory.types.d.ts +7 -7
  67. package/dist/types/inventory.types.js +2 -2
  68. package/dist/types/item.types.d.ts +186 -186
  69. package/dist/types/item.types.js +107 -107
  70. package/dist/types/itemContainer.types.d.ts +67 -66
  71. package/dist/types/itemContainer.types.d.ts.map +1 -1
  72. package/dist/types/itemContainer.types.js +10 -10
  73. package/dist/types/maps.types.d.ts +44 -43
  74. package/dist/types/maps.types.d.ts.map +1 -1
  75. package/dist/types/maps.types.js +47 -46
  76. package/dist/types/maps.types.js.map +1 -1
  77. package/dist/types/notification.types.d.ts +14 -14
  78. package/dist/types/notification.types.js +2 -2
  79. package/dist/types/npc.types.d.ts +117 -117
  80. package/dist/types/npc.types.js +35 -35
  81. package/dist/types/pagination.types.d.ts +13 -13
  82. package/dist/types/pagination.types.js +2 -2
  83. package/dist/types/places.types.d.ts +16 -16
  84. package/dist/types/places.types.js +9 -9
  85. package/dist/types/preloadScene.types.d.ts +4 -4
  86. package/dist/types/preloadScene.types.js +7 -7
  87. package/dist/types/quest.types.d.ts +67 -67
  88. package/dist/types/quest.types.js +21 -21
  89. package/dist/types/resource.types.d.ts +5 -5
  90. package/dist/types/resource.types.js +2 -2
  91. package/dist/types/scene.types.d.ts +8 -8
  92. package/dist/types/scene.types.js +8 -8
  93. package/dist/types/skills.types.d.ts +58 -58
  94. package/dist/types/skills.types.js +23 -23
  95. package/dist/types/socket.types.d.ts +17 -17
  96. package/dist/types/socket.types.js +8 -8
  97. package/dist/types/tiled.types.d.ts +119 -119
  98. package/dist/types/tiled.types.js +7 -7
  99. package/dist/types/translation.types.d.ts +5 -5
  100. package/dist/types/translation.types.js +8 -8
  101. package/dist/types/ui.types.d.ts +8 -8
  102. package/dist/types/ui.types.js +7 -7
  103. package/dist/types/user.types.d.ts +101 -101
  104. package/dist/types/user.types.js +38 -38
  105. package/dist/types/validation.types.d.ts +9 -9
  106. package/dist/types/validation.types.js +2 -2
  107. package/dist/types/view.types.d.ts +14 -14
  108. package/dist/types/view.types.js +7 -7
  109. package/package.json +41 -41
@@ -1,67 +1,68 @@
1
- import { IItem, ItemType } from "./item.types";
2
- import { IResource } from "./resource.types";
3
- interface IItemContainerSlots {
4
- [slot: number]: IItem;
5
- }
6
- export interface IItemContainer extends IResource {
7
- owner?: string;
8
- isOwnerRestricted?: boolean;
9
- parentItem: string | IItem;
10
- name?: string;
11
- slotQty: number;
12
- slots: IItemContainerSlots;
13
- allowedItemTypes?: ItemType[];
14
- isEmpty: boolean;
15
- totalItemsQty?: number;
16
- itemIds?: string[];
17
- emptySlotsQty?: number;
18
- firstAvailableSlot?: IItem | null;
19
- firstAvailableSlotId?: number | null;
20
- }
21
- export declare enum ItemContainerType {
22
- Inventory = "Inventory",
23
- Equipment = "Equipment",
24
- Loot = "Loot",
25
- MapContainer = "MapContainer"
26
- }
27
- export interface IItemContainerOpen {
28
- itemId: string;
29
- }
30
- export interface IItemTransfer {
31
- itemId: string;
32
- fromContainerId: string;
33
- toContainerId: string;
34
- }
35
- export interface IItemPickup {
36
- itemId: string;
37
- x: number;
38
- y: number;
39
- scene: string;
40
- toContainerId: string;
41
- }
42
- export interface IItemDrop {
43
- itemId: string;
44
- x: number;
45
- y: number;
46
- scene: string;
47
- fromContainerId: string;
48
- fromEquipmentSet: boolean;
49
- toPosition: {
50
- x: number;
51
- y: number;
52
- scene: string;
53
- };
54
- }
55
- export interface IItemContainerRead {
56
- itemContainer: IItemContainer;
57
- type: ItemContainerType;
58
- }
59
- export interface IItemContainerProps {
60
- openedContainers: Set<string>;
61
- containersData: {
62
- [key: string]: IItemContainer;
63
- };
64
- onMouseOverElement: (element: any) => void;
65
- }
66
- export {};
1
+ import { IItem, ItemType } from "./item.types";
2
+ import { IResource } from "./resource.types";
3
+ interface IItemContainerSlots {
4
+ [slot: number]: IItem;
5
+ }
6
+ export interface IItemContainer extends IResource {
7
+ owner?: string;
8
+ isOwnerRestricted?: boolean;
9
+ parentItem: string | IItem;
10
+ name?: string;
11
+ slotQty: number;
12
+ slots: IItemContainerSlots;
13
+ allowedItemTypes?: ItemType[];
14
+ isEmpty: boolean;
15
+ totalItemsQty?: number;
16
+ itemIds?: string[];
17
+ emptySlotsQty?: number;
18
+ firstAvailableSlot?: IItem | null;
19
+ firstAvailableSlotId?: number | null;
20
+ }
21
+ export declare enum ItemContainerType {
22
+ Inventory = "Inventory",
23
+ Equipment = "Equipment",
24
+ Loot = "Loot",
25
+ MapContainer = "MapContainer"
26
+ }
27
+ export interface IItemContainerOpen {
28
+ itemId: string;
29
+ }
30
+ export interface IItemTransfer {
31
+ itemId: string;
32
+ fromContainerId: string;
33
+ toContainerId: string;
34
+ }
35
+ export interface IItemPickup {
36
+ itemId: string;
37
+ x: number;
38
+ y: number;
39
+ scene: string;
40
+ toContainerId: string;
41
+ fromContainerId: string;
42
+ }
43
+ export interface IItemDrop {
44
+ itemId: string;
45
+ x: number;
46
+ y: number;
47
+ scene: string;
48
+ fromContainerId: string;
49
+ fromEquipmentSet: boolean;
50
+ toPosition: {
51
+ x: number;
52
+ y: number;
53
+ scene: string;
54
+ };
55
+ }
56
+ export interface IItemContainerRead {
57
+ itemContainer: IItemContainer;
58
+ type: ItemContainerType;
59
+ }
60
+ export interface IItemContainerProps {
61
+ openedContainers: Set<string>;
62
+ containersData: {
63
+ [key: string]: IItemContainer;
64
+ };
65
+ onMouseOverElement: (element: any) => void;
66
+ }
67
+ export {};
67
68
  //# sourceMappingURL=itemContainer.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"itemContainer.types.d.ts","sourceRoot":"","sources":["../../src/types/itemContainer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,UAAU,mBAAmB;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;CACvB;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,YAAY,iBAAiB;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,cAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,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"}
1
+ {"version":3,"file":"itemContainer.types.d.ts","sourceRoot":"","sources":["../../src/types/itemContainer.types.ts"],"names":[],"mappings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;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,cAAc,CAAC;IAC9B,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,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"}
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ItemContainerType = void 0;
4
- var ItemContainerType;
5
- (function (ItemContainerType) {
6
- ItemContainerType["Inventory"] = "Inventory";
7
- ItemContainerType["Equipment"] = "Equipment";
8
- ItemContainerType["Loot"] = "Loot";
9
- ItemContainerType["MapContainer"] = "MapContainer";
10
- })(ItemContainerType = exports.ItemContainerType || (exports.ItemContainerType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemContainerType = void 0;
4
+ var ItemContainerType;
5
+ (function (ItemContainerType) {
6
+ ItemContainerType["Inventory"] = "Inventory";
7
+ ItemContainerType["Equipment"] = "Equipment";
8
+ ItemContainerType["Loot"] = "Loot";
9
+ ItemContainerType["MapContainer"] = "MapContainer";
10
+ })(ItemContainerType = exports.ItemContainerType || (exports.ItemContainerType = {}));
11
11
  //# sourceMappingURL=itemContainer.types.js.map
@@ -1,44 +1,45 @@
1
- export declare enum MapLayers {
2
- Ground = 0,
3
- OverGround = 1,
4
- Decoration = 2,
5
- Character = 3,
6
- OverCharacter = 4,
7
- Roof = 5
8
- }
9
- export declare const TiledLayerNames: {
10
- 0: string;
11
- 1: string;
12
- 2: string;
13
- 3: string;
14
- 4: string;
15
- 5: string;
16
- };
17
- export declare const MAP_OBJECT_LAYERS: string[];
18
- export declare const MAP_LAYERS: string[];
19
- export declare const MAP_LAYERS_TO_ID: {
20
- ground: number;
21
- "over-ground": number;
22
- decoration: number;
23
- character: number;
24
- "over-character": number;
25
- roof: number;
26
- };
27
- export declare const MAP_REQUIRED_LAYERS: string[];
28
- export interface IMapMetadataTileset {
29
- name: string;
30
- }
31
- export interface IMapMetaData {
32
- name: string;
33
- hash: string;
34
- layers: string[];
35
- tileWidth: number;
36
- tileHeight: number;
37
- tilesets: IMapMetadataTileset[];
38
- width: number;
39
- height: number;
40
- }
41
- export declare enum MapSocketEvents {
42
- ChangeMap = "ChangeMap"
43
- }
1
+ export declare enum MapLayers {
2
+ Ground = 0,
3
+ OverGround = 1,
4
+ Decoration = 2,
5
+ Character = 3,
6
+ OverCharacter = 4,
7
+ Roof = 5
8
+ }
9
+ export declare const TiledLayerNames: {
10
+ 0: string;
11
+ 1: string;
12
+ 2: string;
13
+ 3: string;
14
+ 4: string;
15
+ 5: string;
16
+ };
17
+ export declare const MAP_OBJECT_LAYERS: string[];
18
+ export declare const MAP_LAYERS: string[];
19
+ export declare const MAP_LAYERS_TO_ID: {
20
+ ground: number;
21
+ "over-ground": number;
22
+ decoration: number;
23
+ character: number;
24
+ "over-character": number;
25
+ roof: number;
26
+ };
27
+ export declare const MAP_REQUIRED_LAYERS: string[];
28
+ export interface IMapMetadataTileset {
29
+ name: string;
30
+ }
31
+ export interface IMapMetaData {
32
+ name: string;
33
+ hash: string;
34
+ layers: string[];
35
+ tileWidth: number;
36
+ tileHeight: number;
37
+ tilesets: IMapMetadataTileset[];
38
+ width: number;
39
+ height: number;
40
+ }
41
+ export declare enum MapSocketEvents {
42
+ ChangeMap = "ChangeMap",
43
+ NonPVPZone = "NonPVPZone"
44
+ }
44
45
  //# sourceMappingURL=maps.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"maps.types.d.ts","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,UAAU,IAAI;IACd,UAAU,IAAI;IACd,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,IAAI,IAAI;CACT;AAED,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAA4C,CAAC;AAE3E,eAAO,MAAM,UAAU,UAAiF,CAAC;AAEzG,eAAO,MAAM,gBAAgB;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAW/B,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,eAAe;IACzB,SAAS,cAAc;CACxB"}
1
+ {"version":3,"file":"maps.types.d.ts","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,UAAU,IAAI;IACd,UAAU,IAAI;IACd,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,IAAI,IAAI;CACT;AAED,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAA4C,CAAC;AAE3E,eAAO,MAAM,UAAU,UAAiF,CAAC;AAEzG,eAAO,MAAM,gBAAgB;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAW/B,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,eAAe;IACzB,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B"}
@@ -1,47 +1,48 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MapSocketEvents = exports.MAP_REQUIRED_LAYERS = exports.MAP_LAYERS_TO_ID = exports.MAP_LAYERS = exports.MAP_OBJECT_LAYERS = exports.TiledLayerNames = exports.MapLayers = void 0;
4
- var MapLayers;
5
- (function (MapLayers) {
6
- MapLayers[MapLayers["Ground"] = 0] = "Ground";
7
- MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
8
- MapLayers[MapLayers["Decoration"] = 2] = "Decoration";
9
- MapLayers[MapLayers["Character"] = 3] = "Character";
10
- MapLayers[MapLayers["OverCharacter"] = 4] = "OverCharacter";
11
- MapLayers[MapLayers["Roof"] = 5] = "Roof";
12
- })(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
13
- exports.TiledLayerNames = {
14
- 0: "ground",
15
- 1: "over-ground",
16
- 2: "decoration",
17
- 3: "character",
18
- 4: "over-character",
19
- 5: "roof",
20
- };
21
- exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
22
- exports.MAP_LAYERS = ["ground", "over-ground", "decoration", "character", "over-character", "roof"];
23
- exports.MAP_LAYERS_TO_ID = {
24
- ground: 0,
25
- "over-ground": 1,
26
- decoration: 2,
27
- character: 3,
28
- "over-character": 4,
29
- roof: 5,
30
- };
31
- exports.MAP_REQUIRED_LAYERS = [
32
- "Roofs",
33
- "roof",
34
- "over-character",
35
- "NPCs",
36
- "Transitions",
37
- "character",
38
- "Items",
39
- "decoration",
40
- "over-ground",
41
- "ground",
42
- ];
43
- var MapSocketEvents;
44
- (function (MapSocketEvents) {
45
- MapSocketEvents["ChangeMap"] = "ChangeMap";
46
- })(MapSocketEvents = exports.MapSocketEvents || (exports.MapSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MapSocketEvents = exports.MAP_REQUIRED_LAYERS = exports.MAP_LAYERS_TO_ID = exports.MAP_LAYERS = exports.MAP_OBJECT_LAYERS = exports.TiledLayerNames = exports.MapLayers = void 0;
4
+ var MapLayers;
5
+ (function (MapLayers) {
6
+ MapLayers[MapLayers["Ground"] = 0] = "Ground";
7
+ MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
8
+ MapLayers[MapLayers["Decoration"] = 2] = "Decoration";
9
+ MapLayers[MapLayers["Character"] = 3] = "Character";
10
+ MapLayers[MapLayers["OverCharacter"] = 4] = "OverCharacter";
11
+ MapLayers[MapLayers["Roof"] = 5] = "Roof";
12
+ })(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
13
+ exports.TiledLayerNames = {
14
+ 0: "ground",
15
+ 1: "over-ground",
16
+ 2: "decoration",
17
+ 3: "character",
18
+ 4: "over-character",
19
+ 5: "roof",
20
+ };
21
+ exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
22
+ exports.MAP_LAYERS = ["ground", "over-ground", "decoration", "character", "over-character", "roof"];
23
+ exports.MAP_LAYERS_TO_ID = {
24
+ ground: 0,
25
+ "over-ground": 1,
26
+ decoration: 2,
27
+ character: 3,
28
+ "over-character": 4,
29
+ roof: 5,
30
+ };
31
+ exports.MAP_REQUIRED_LAYERS = [
32
+ "Roofs",
33
+ "roof",
34
+ "over-character",
35
+ "NPCs",
36
+ "Transitions",
37
+ "character",
38
+ "Items",
39
+ "decoration",
40
+ "over-ground",
41
+ "ground",
42
+ ];
43
+ var MapSocketEvents;
44
+ (function (MapSocketEvents) {
45
+ MapSocketEvents["ChangeMap"] = "ChangeMap";
46
+ MapSocketEvents["NonPVPZone"] = "NonPVPZone";
47
+ })(MapSocketEvents = exports.MapSocketEvents || (exports.MapSocketEvents = {}));
47
48
  //# sourceMappingURL=maps.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"maps.types.js","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,6CAAU,CAAA;IACV,qDAAc,CAAA;IACd,qDAAc,CAAA;IACd,mDAAa,CAAA;IACb,2DAAiB,CAAA;IACjB,yCAAQ,CAAA;AACV,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAEY,QAAA,eAAe,GAAG;IAC7B,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,YAAY;IACf,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,gBAAgB;IACnB,CAAC,EAAE,MAAM;CACV,CAAC;AAEW,QAAA,iBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAE9D,QAAA,UAAU,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;AAE5F,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,CAAC;IACT,aAAa,EAAE,CAAC;IAChB,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,CAAC;IACn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IACb,WAAW;IACX,OAAO;IACP,YAAY;IACZ,aAAa;IACb,QAAQ;CACT,CAAC;AAiBF,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,4CAAyB,CAAA;AAC3B,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
@@ -1,15 +1,15 @@
1
- export interface IShowPromptOption {
2
- label: string;
3
- color?: string;
4
- action: (label: string) => void;
5
- }
6
- export interface IShowPrompt {
7
- question: string;
8
- options: IShowPromptOption[];
9
- addDefaultCancelOption?: boolean;
10
- }
11
- export interface INotification {
12
- variant: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
13
- message: string;
14
- }
1
+ export interface IShowPromptOption {
2
+ label: string;
3
+ color?: string;
4
+ action: (label: string) => void;
5
+ }
6
+ export interface IShowPrompt {
7
+ question: string;
8
+ options: IShowPromptOption[];
9
+ addDefaultCancelOption?: boolean;
10
+ }
11
+ export interface INotification {
12
+ variant: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
13
+ message: string;
14
+ }
15
15
  //# sourceMappingURL=notification.types.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=notification.types.js.map
@@ -1,118 +1,118 @@
1
- import { AnimationDirection } from "./animation.types";
2
- import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
3
- import { EntityAttackType } from "./entity.types";
4
- import { MapLayers } from "./maps.types";
5
- import { IResource } from "./resource.types";
6
- import { ISkill } from "./skills.types";
7
- export interface INPC extends IResource {
8
- tiledId?: number;
9
- key: string;
10
- textureKey: string;
11
- name: string;
12
- health: number;
13
- maxHealth: number;
14
- mana: number;
15
- maxMana: number;
16
- alignment: NPCAlignment;
17
- targetType: NPCTargetType;
18
- targetCharacter?: ICharacter | null;
19
- x: number;
20
- y: number;
21
- initialX: number;
22
- initialY: number;
23
- direction: AnimationDirection;
24
- scene: string;
25
- class: CharacterClass;
26
- gender: CharacterGender;
27
- layer: MapLayers;
28
- attackType: EntityAttackType;
29
- originalMovementType: NPCMovementType;
30
- currentMovementType: NPCMovementType;
31
- maxRangeInGridCells?: number;
32
- maxRangedDistanceInGridCells?: number;
33
- pathOrientation?: NPCPathOrientation;
34
- fixedPath?: {
35
- endGridX: number;
36
- endGridY: number;
37
- };
38
- pm2InstanceManager: number;
39
- speed: number;
40
- dialogText: string;
41
- skills: ISkill | string;
42
- spawnIntervalMin: number;
43
- nextSpawnTime: Date;
44
- fleeOnLowHealth: boolean;
45
- experience?: number;
46
- xpToRelease?: {
47
- charId: number;
48
- xp: number;
49
- }[];
50
- loots?: INPCLoot[];
51
- hasQuest?: boolean;
52
- }
53
- export declare enum NPCTargetType {
54
- Default = "Default",
55
- Talking = "Talking"
56
- }
57
- export declare enum NPCAlignment {
58
- Friendly = "Friendly",
59
- Neutral = "Neutral",
60
- Hostile = "Hostile"
61
- }
62
- export declare enum NPCPathOrientation {
63
- Forward = "Forward",
64
- Backward = "Backward"
65
- }
66
- export declare enum NPCMovementType {
67
- Random = "Random",
68
- FixedPath = "FixedPath",
69
- Stopped = "Stopped",
70
- MoveAway = "MoveAway",
71
- MoveTowards = "MoveTowards"
72
- }
73
- export declare enum NPCSocketEvents {
74
- NPCDataUpdate = "NPCDataUpdate",
75
- NPCPositionUpdate = "NPCPositionUpdate",
76
- NPCTalkToNPC = "NPCTalkToNPC",
77
- NPCStartDialogNPC = "NPCStartDialogNPC",
78
- NPCStopDialogNPC = "NPCStopDialogNPC"
79
- }
80
- export interface INPCPositionUpdatePayload {
81
- id: string;
82
- name: string;
83
- x: number;
84
- y: number;
85
- direction: string;
86
- key: string;
87
- layer: MapLayers;
88
- textureKey: string;
89
- scene: string;
90
- speed: number;
91
- alignment: NPCAlignment;
92
- health: number;
93
- maxHealth: number;
94
- mana: number;
95
- maxMana: number;
96
- hasQuest: boolean;
97
- }
98
- export interface INPCDataUpdatePayload {
99
- [key: string]: any;
100
- }
101
- export interface INPCGetInfoEmitterClient {
102
- npcId: string;
103
- }
104
- export interface INPCGetInfoEmitterServer extends INPC {
105
- }
106
- export interface INPCStartDialog {
107
- npcId: string;
108
- dialogText: string;
109
- }
110
- export interface INPCStopDialog {
111
- npcId: string;
112
- }
113
- export interface INPCLoot {
114
- itemBlueprintKey: string;
115
- chance: number;
116
- quantityRange?: number[];
117
- }
1
+ import { AnimationDirection } from "./animation.types";
2
+ import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
3
+ import { EntityAttackType } from "./entity.types";
4
+ import { MapLayers } from "./maps.types";
5
+ import { IResource } from "./resource.types";
6
+ import { ISkill } from "./skills.types";
7
+ export interface INPC extends IResource {
8
+ tiledId?: number;
9
+ key: string;
10
+ textureKey: string;
11
+ name: string;
12
+ health: number;
13
+ maxHealth: number;
14
+ mana: number;
15
+ maxMana: number;
16
+ alignment: NPCAlignment;
17
+ targetType: NPCTargetType;
18
+ targetCharacter?: ICharacter | null;
19
+ x: number;
20
+ y: number;
21
+ initialX: number;
22
+ initialY: number;
23
+ direction: AnimationDirection;
24
+ scene: string;
25
+ class: CharacterClass;
26
+ gender: CharacterGender;
27
+ layer: MapLayers;
28
+ attackType: EntityAttackType;
29
+ originalMovementType: NPCMovementType;
30
+ currentMovementType: NPCMovementType;
31
+ maxRangeInGridCells?: number;
32
+ maxRangedDistanceInGridCells?: number;
33
+ pathOrientation?: NPCPathOrientation;
34
+ fixedPath?: {
35
+ endGridX: number;
36
+ endGridY: number;
37
+ };
38
+ pm2InstanceManager: number;
39
+ speed: number;
40
+ dialogText: string;
41
+ skills: ISkill | string;
42
+ spawnIntervalMin: number;
43
+ nextSpawnTime: Date;
44
+ fleeOnLowHealth: boolean;
45
+ experience?: number;
46
+ xpToRelease?: {
47
+ charId: number;
48
+ xp: number;
49
+ }[];
50
+ loots?: INPCLoot[];
51
+ hasQuest?: boolean;
52
+ }
53
+ export declare enum NPCTargetType {
54
+ Default = "Default",
55
+ Talking = "Talking"
56
+ }
57
+ export declare enum NPCAlignment {
58
+ Friendly = "Friendly",
59
+ Neutral = "Neutral",
60
+ Hostile = "Hostile"
61
+ }
62
+ export declare enum NPCPathOrientation {
63
+ Forward = "Forward",
64
+ Backward = "Backward"
65
+ }
66
+ export declare enum NPCMovementType {
67
+ Random = "Random",
68
+ FixedPath = "FixedPath",
69
+ Stopped = "Stopped",
70
+ MoveAway = "MoveAway",
71
+ MoveTowards = "MoveTowards"
72
+ }
73
+ export declare enum NPCSocketEvents {
74
+ NPCDataUpdate = "NPCDataUpdate",
75
+ NPCPositionUpdate = "NPCPositionUpdate",
76
+ NPCTalkToNPC = "NPCTalkToNPC",
77
+ NPCStartDialogNPC = "NPCStartDialogNPC",
78
+ NPCStopDialogNPC = "NPCStopDialogNPC"
79
+ }
80
+ export interface INPCPositionUpdatePayload {
81
+ id: string;
82
+ name: string;
83
+ x: number;
84
+ y: number;
85
+ direction: string;
86
+ key: string;
87
+ layer: MapLayers;
88
+ textureKey: string;
89
+ scene: string;
90
+ speed: number;
91
+ alignment: NPCAlignment;
92
+ health: number;
93
+ maxHealth: number;
94
+ mana: number;
95
+ maxMana: number;
96
+ hasQuest: boolean;
97
+ }
98
+ export interface INPCDataUpdatePayload {
99
+ [key: string]: any;
100
+ }
101
+ export interface INPCGetInfoEmitterClient {
102
+ npcId: string;
103
+ }
104
+ export interface INPCGetInfoEmitterServer extends INPC {
105
+ }
106
+ export interface INPCStartDialog {
107
+ npcId: string;
108
+ dialogText: string;
109
+ }
110
+ export interface INPCStopDialog {
111
+ npcId: string;
112
+ }
113
+ export interface INPCLoot {
114
+ itemBlueprintKey: string;
115
+ chance: number;
116
+ quantityRange?: number[];
117
+ }
118
118
  //# sourceMappingURL=npc.types.d.ts.map