@rpg-engine/shared 0.7.90 → 0.7.92

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 (138) 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/deviceHelpers.d.ts +2 -2
  11. package/dist/helpers/deviceHelpers.js +16 -16
  12. package/dist/helpers/itemSlotHelper.d.ts +7 -7
  13. package/dist/helpers/itemSlotHelper.js +27 -27
  14. package/dist/helpers/skillHelpers.d.ts +4 -4
  15. package/dist/helpers/skillHelpers.js +25 -25
  16. package/dist/helpers/weightHelper.d.ts +1 -1
  17. package/dist/helpers/weightHelper.js +14 -14
  18. package/dist/index.d.ts +53 -52
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +69 -68
  21. package/dist/index.js.map +1 -1
  22. package/dist/libs/GridHelper.d.ts +11 -11
  23. package/dist/libs/GridHelper.js +37 -37
  24. package/dist/libs/MathHelper.d.ts +16 -16
  25. package/dist/libs/MathHelper.js +14 -14
  26. package/dist/libs/SocketHelper.d.ts +2 -2
  27. package/dist/libs/SocketHelper.js +14 -14
  28. package/dist/libs/TextHelper.d.ts +7 -7
  29. package/dist/libs/TextHelper.js +21 -21
  30. package/dist/libs/TypeHelper.d.ts +3 -3
  31. package/dist/libs/TypeHelper.js +16 -16
  32. package/dist/translations/app-rate.lang.json +38 -38
  33. package/dist/translations/assets.lang.json +82 -82
  34. package/dist/translations/auth.lang.json +182 -182
  35. package/dist/translations/email.lang.json +70 -70
  36. package/dist/translations/error.lang.json +18 -18
  37. package/dist/translations/form.lang.json +94 -94
  38. package/dist/translations/global.lang.json +90 -90
  39. package/dist/translations/logs.lang.json +6 -6
  40. package/dist/translations/onboarding.lang.d.ts +10 -10
  41. package/dist/translations/onboarding.lang.js +21 -21
  42. package/dist/translations/onboarding.lang.json +50 -50
  43. package/dist/translations/order.lang.json +90 -90
  44. package/dist/translations/search.lang.json +50 -50
  45. package/dist/translations/settings.lang.json +14 -14
  46. package/dist/translations/tabs.lang.json +22 -22
  47. package/dist/translations/users.lang.json +22 -22
  48. package/dist/translations/validation.lang.json +86 -86
  49. package/dist/types/animation.types.d.ts +68 -68
  50. package/dist/types/animation.types.js +45 -45
  51. package/dist/types/api.types.d.ts +21 -21
  52. package/dist/types/api.types.js +20 -20
  53. package/dist/types/asset.types.d.ts +6 -6
  54. package/dist/types/asset.types.js +2 -2
  55. package/dist/types/auth.types.d.ts +7 -7
  56. package/dist/types/auth.types.js +2 -2
  57. package/dist/types/battle.types.d.ts +41 -40
  58. package/dist/types/battle.types.d.ts.map +1 -1
  59. package/dist/types/battle.types.js +18 -18
  60. package/dist/types/buff.types.d.ts +37 -37
  61. package/dist/types/buff.types.js +13 -13
  62. package/dist/types/character.types.d.ts +206 -206
  63. package/dist/types/character.types.js +53 -53
  64. package/dist/types/chat.types.d.ts +30 -30
  65. package/dist/types/chat.types.js +14 -14
  66. package/dist/types/depot.types.d.ts +18 -18
  67. package/dist/types/depot.types.js +9 -9
  68. package/dist/types/device.types.d.ts +24 -24
  69. package/dist/types/device.types.js +7 -7
  70. package/dist/types/displayText.types.d.ts +11 -0
  71. package/dist/types/displayText.types.d.ts.map +1 -0
  72. package/dist/types/displayText.types.js +8 -0
  73. package/dist/types/displayText.types.js.map +1 -0
  74. package/dist/types/entity.types.d.ts +22 -30
  75. package/dist/types/entity.types.d.ts.map +1 -1
  76. package/dist/types/entity.types.js +16 -20
  77. package/dist/types/entity.types.js.map +1 -1
  78. package/dist/types/env.types.d.ts +5 -5
  79. package/dist/types/env.types.js +9 -9
  80. package/dist/types/equipment.types.d.ts +35 -35
  81. package/dist/types/equipment.types.js +18 -18
  82. package/dist/types/googleOAuth.types.d.ts +47 -47
  83. package/dist/types/googleOAuth.types.js +2 -2
  84. package/dist/types/inventory.types.d.ts +7 -7
  85. package/dist/types/inventory.types.js +2 -2
  86. package/dist/types/item.types.d.ts +367 -367
  87. package/dist/types/item.types.js +155 -155
  88. package/dist/types/itemContainer.types.d.ts +83 -83
  89. package/dist/types/itemContainer.types.js +11 -11
  90. package/dist/types/macro.types.d.ts +8 -8
  91. package/dist/types/macro.types.js +12 -12
  92. package/dist/types/maps.types.d.ts +82 -82
  93. package/dist/types/maps.types.js +81 -81
  94. package/dist/types/notification.types.d.ts +14 -14
  95. package/dist/types/notification.types.js +2 -2
  96. package/dist/types/npc.types.d.ts +152 -152
  97. package/dist/types/npc.types.js +48 -48
  98. package/dist/types/pagination.types.d.ts +13 -13
  99. package/dist/types/pagination.types.js +2 -2
  100. package/dist/types/places.types.d.ts +16 -16
  101. package/dist/types/places.types.js +9 -9
  102. package/dist/types/preloadScene.types.d.ts +4 -4
  103. package/dist/types/preloadScene.types.js +7 -7
  104. package/dist/types/quest.types.d.ts +74 -74
  105. package/dist/types/quest.types.js +21 -21
  106. package/dist/types/resource.types.d.ts +5 -5
  107. package/dist/types/resource.types.js +2 -2
  108. package/dist/types/scene.types.d.ts +8 -8
  109. package/dist/types/scene.types.js +8 -8
  110. package/dist/types/shortcut.types.d.ts +11 -11
  111. package/dist/types/shortcut.types.js +9 -9
  112. package/dist/types/skills.types.d.ts +142 -143
  113. package/dist/types/skills.types.d.ts.map +1 -1
  114. package/dist/types/skills.types.js +105 -106
  115. package/dist/types/skills.types.js.map +1 -1
  116. package/dist/types/socket.types.d.ts +17 -17
  117. package/dist/types/socket.types.js +8 -8
  118. package/dist/types/spell.types.d.ts +100 -98
  119. package/dist/types/spell.types.d.ts.map +1 -1
  120. package/dist/types/spell.types.js +65 -63
  121. package/dist/types/spell.types.js.map +1 -1
  122. package/dist/types/tiled.types.d.ts +119 -119
  123. package/dist/types/tiled.types.js +7 -7
  124. package/dist/types/trade.types.d.ts +65 -65
  125. package/dist/types/trade.types.js +15 -15
  126. package/dist/types/translation.types.d.ts +5 -5
  127. package/dist/types/translation.types.js +8 -8
  128. package/dist/types/ui.types.d.ts +8 -8
  129. package/dist/types/ui.types.js +7 -7
  130. package/dist/types/useWith.types.d.ts +25 -25
  131. package/dist/types/useWith.types.js +9 -9
  132. package/dist/types/user.types.d.ts +101 -101
  133. package/dist/types/user.types.js +38 -38
  134. package/dist/types/validation.types.d.ts +9 -9
  135. package/dist/types/validation.types.js +2 -2
  136. package/dist/types/view.types.d.ts +15 -15
  137. package/dist/types/view.types.js +7 -7
  138. package/package.json +43 -43
@@ -1,31 +1,31 @@
1
- import { IResource } from "./resource.types";
2
- export declare enum ChatMessageType {
3
- Global = "Global",
4
- Private = "Private"
5
- }
6
- export declare enum ChatSocketEvents {
7
- GlobalChatMessageCreate = "GlobalChatMessageCreate",
8
- GlobalChatMessageRead = "GlobalChatMessageRead",
9
- PrivateChatMessage = "PrivateChatMessage"
10
- }
11
- export interface IChatMessage extends IResource {
12
- emitter: {
13
- _id: string;
14
- name: string;
15
- };
16
- message: string;
17
- type: ChatMessageType;
18
- }
19
- export interface IChatMessageCreatePayload {
20
- emitter: {
21
- _id: string;
22
- name: string;
23
- };
24
- message: string;
25
- type: ChatMessageType;
26
- limit: number;
27
- }
28
- export interface IChatMessageReadPayload {
29
- messages: IChatMessage[];
30
- }
1
+ import { IResource } from "./resource.types";
2
+ export declare enum ChatMessageType {
3
+ Global = "Global",
4
+ Private = "Private"
5
+ }
6
+ export declare enum ChatSocketEvents {
7
+ GlobalChatMessageCreate = "GlobalChatMessageCreate",
8
+ GlobalChatMessageRead = "GlobalChatMessageRead",
9
+ PrivateChatMessage = "PrivateChatMessage"
10
+ }
11
+ export interface IChatMessage extends IResource {
12
+ emitter: {
13
+ _id: string;
14
+ name: string;
15
+ };
16
+ message: string;
17
+ type: ChatMessageType;
18
+ }
19
+ export interface IChatMessageCreatePayload {
20
+ emitter: {
21
+ _id: string;
22
+ name: string;
23
+ };
24
+ message: string;
25
+ type: ChatMessageType;
26
+ limit: number;
27
+ }
28
+ export interface IChatMessageReadPayload {
29
+ messages: IChatMessage[];
30
+ }
31
31
  //# sourceMappingURL=chat.types.d.ts.map
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatSocketEvents = exports.ChatMessageType = void 0;
4
- var ChatMessageType;
5
- (function (ChatMessageType) {
6
- ChatMessageType["Global"] = "Global";
7
- ChatMessageType["Private"] = "Private";
8
- })(ChatMessageType = exports.ChatMessageType || (exports.ChatMessageType = {}));
9
- var ChatSocketEvents;
10
- (function (ChatSocketEvents) {
11
- ChatSocketEvents["GlobalChatMessageCreate"] = "GlobalChatMessageCreate";
12
- ChatSocketEvents["GlobalChatMessageRead"] = "GlobalChatMessageRead";
13
- ChatSocketEvents["PrivateChatMessage"] = "PrivateChatMessage";
14
- })(ChatSocketEvents = exports.ChatSocketEvents || (exports.ChatSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatSocketEvents = exports.ChatMessageType = void 0;
4
+ var ChatMessageType;
5
+ (function (ChatMessageType) {
6
+ ChatMessageType["Global"] = "Global";
7
+ ChatMessageType["Private"] = "Private";
8
+ })(ChatMessageType = exports.ChatMessageType || (exports.ChatMessageType = {}));
9
+ var ChatSocketEvents;
10
+ (function (ChatSocketEvents) {
11
+ ChatSocketEvents["GlobalChatMessageCreate"] = "GlobalChatMessageCreate";
12
+ ChatSocketEvents["GlobalChatMessageRead"] = "GlobalChatMessageRead";
13
+ ChatSocketEvents["PrivateChatMessage"] = "PrivateChatMessage";
14
+ })(ChatSocketEvents = exports.ChatSocketEvents || (exports.ChatSocketEvents = {}));
15
15
  //# sourceMappingURL=chat.types.js.map
@@ -1,19 +1,19 @@
1
- export interface IDepotContainerOpen {
2
- npcId: string;
3
- }
4
- export interface IDepotContainerWithdraw {
5
- itemId: string;
6
- npcId: string;
7
- toContainerId: string;
8
- }
9
- export interface IDepotDepositItem {
10
- itemId: string;
11
- npcId: string;
12
- fromContainerId?: string;
13
- }
14
- export declare enum DepotSocketEvents {
15
- OpenContainer = "OpenContainer",
16
- Deposit = "Deposit",
17
- Withdraw = "Withdraw"
18
- }
1
+ export interface IDepotContainerOpen {
2
+ npcId: string;
3
+ }
4
+ export interface IDepotContainerWithdraw {
5
+ itemId: string;
6
+ npcId: string;
7
+ toContainerId: string;
8
+ }
9
+ export interface IDepotDepositItem {
10
+ itemId: string;
11
+ npcId: string;
12
+ fromContainerId?: string;
13
+ }
14
+ export declare enum DepotSocketEvents {
15
+ OpenContainer = "OpenContainer",
16
+ Deposit = "Deposit",
17
+ Withdraw = "Withdraw"
18
+ }
19
19
  //# sourceMappingURL=depot.types.d.ts.map
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DepotSocketEvents = void 0;
4
- var DepotSocketEvents;
5
- (function (DepotSocketEvents) {
6
- DepotSocketEvents["OpenContainer"] = "OpenContainer";
7
- DepotSocketEvents["Deposit"] = "Deposit";
8
- DepotSocketEvents["Withdraw"] = "Withdraw";
9
- })(DepotSocketEvents = exports.DepotSocketEvents || (exports.DepotSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DepotSocketEvents = void 0;
4
+ var DepotSocketEvents;
5
+ (function (DepotSocketEvents) {
6
+ DepotSocketEvents["OpenContainer"] = "OpenContainer";
7
+ DepotSocketEvents["Deposit"] = "Deposit";
8
+ DepotSocketEvents["Withdraw"] = "Withdraw";
9
+ })(DepotSocketEvents = exports.DepotSocketEvents || (exports.DepotSocketEvents = {}));
10
10
  //# sourceMappingURL=depot.types.js.map
@@ -1,25 +1,25 @@
1
- import { Languages } from "./translation.types";
2
- interface IDeviceDetailedInfo {
3
- isVirtual: boolean;
4
- manufacturer: string;
5
- model: string;
6
- operatingSystem: string;
7
- osVersion: string;
8
- platform: string;
9
- }
10
- export interface IDeviceInfo {
11
- info: IDeviceDetailedInfo | null;
12
- screenOrientation: "landscape" | "portrait" | null;
13
- isAssetScreen: boolean | null;
14
- language: Languages | null;
15
- }
16
- export declare enum DeviceInfoActionTypes {
17
- updateDeviceInfo = "updateDeviceInfo"
18
- }
19
- export interface IDispatchUpdateDeviceInfo {
20
- type: DeviceInfoActionTypes.updateDeviceInfo;
21
- payload: IDeviceInfo;
22
- }
23
- export declare type DeviceAction = IDispatchUpdateDeviceInfo;
24
- export {};
1
+ import { Languages } from "./translation.types";
2
+ interface IDeviceDetailedInfo {
3
+ isVirtual: boolean;
4
+ manufacturer: string;
5
+ model: string;
6
+ operatingSystem: string;
7
+ osVersion: string;
8
+ platform: string;
9
+ }
10
+ export interface IDeviceInfo {
11
+ info: IDeviceDetailedInfo | null;
12
+ screenOrientation: "landscape" | "portrait" | null;
13
+ isAssetScreen: boolean | null;
14
+ language: Languages | null;
15
+ }
16
+ export declare enum DeviceInfoActionTypes {
17
+ updateDeviceInfo = "updateDeviceInfo"
18
+ }
19
+ export interface IDispatchUpdateDeviceInfo {
20
+ type: DeviceInfoActionTypes.updateDeviceInfo;
21
+ payload: IDeviceInfo;
22
+ }
23
+ export declare type DeviceAction = IDispatchUpdateDeviceInfo;
24
+ export {};
25
25
  //# sourceMappingURL=device.types.d.ts.map
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeviceInfoActionTypes = void 0;
4
- var DeviceInfoActionTypes;
5
- (function (DeviceInfoActionTypes) {
6
- DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
7
- })(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceInfoActionTypes = void 0;
4
+ var DeviceInfoActionTypes;
5
+ (function (DeviceInfoActionTypes) {
6
+ DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
7
+ })(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
8
8
  //# sourceMappingURL=device.types.js.map
@@ -0,0 +1,11 @@
1
+ export interface IDisplayTextEvent {
2
+ value: string | number;
3
+ targetId: string;
4
+ prefix?: string;
5
+ color?: string;
6
+ fontSize?: number;
7
+ }
8
+ export declare enum DisplayTextSocketEvents {
9
+ DisplayText = "DisplayText"
10
+ }
11
+ //# sourceMappingURL=displayText.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"displayText.types.d.ts","sourceRoot":"","sources":["../../src/types/displayText.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,uBAAuB;IACjC,WAAW,gBAAgB;CAC5B"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisplayTextSocketEvents = void 0;
4
+ var DisplayTextSocketEvents;
5
+ (function (DisplayTextSocketEvents) {
6
+ DisplayTextSocketEvents["DisplayText"] = "DisplayText";
7
+ })(DisplayTextSocketEvents = exports.DisplayTextSocketEvents || (exports.DisplayTextSocketEvents = {}));
8
+ //# sourceMappingURL=displayText.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"displayText.types.js","sourceRoot":"","sources":["../../src/types/displayText.types.ts"],"names":[],"mappings":";;;AAQA,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,sDAA2B,CAAA;AAC7B,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC"}
@@ -1,31 +1,23 @@
1
- export declare enum EntityType {
2
- Character = "Character",
3
- NPC = "NPC",
4
- Item = "Item"
5
- }
6
- export declare enum EntityAttackType {
7
- Melee = "Melee",
8
- Ranged = "Ranged",
9
- None = "None",
10
- MeleeRanged = "MeleeRanged"
11
- }
12
- export interface IEntitiesInView {
13
- [id: string]: IEntityInViewBasicInfo;
14
- }
15
- export interface IEntityInViewBasicInfo {
16
- id: string;
17
- type?: EntityType;
18
- name?: string;
19
- x?: number;
20
- y?: number;
21
- direction?: string;
22
- }
23
- export interface IEntityEffectEvent {
24
- targetId: string;
25
- targetType: EntityType;
26
- value: number;
27
- }
28
- export declare enum EffectsSocketEvents {
29
- EntityEffect = "EntityEffect"
30
- }
1
+ export declare enum EntityType {
2
+ Character = "Character",
3
+ NPC = "NPC",
4
+ Item = "Item"
5
+ }
6
+ export declare enum EntityAttackType {
7
+ Melee = "Melee",
8
+ Ranged = "Ranged",
9
+ None = "None",
10
+ MeleeRanged = "MeleeRanged"
11
+ }
12
+ export interface IEntitiesInView {
13
+ [id: string]: IEntityInViewBasicInfo;
14
+ }
15
+ export interface IEntityInViewBasicInfo {
16
+ id: string;
17
+ type?: EntityType;
18
+ name?: string;
19
+ x?: number;
20
+ y?: number;
21
+ direction?: string;
22
+ }
31
23
  //# sourceMappingURL=entity.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity.types.d.ts","sourceRoot":"","sources":["../../src/types/entity.types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,EAAE,MAAM,GAAG,sBAAsB,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,mBAAmB;IAC7B,YAAY,iBAAiB;CAC9B"}
1
+ {"version":3,"file":"entity.types.d.ts","sourceRoot":"","sources":["../../src/types/entity.types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,EAAE,MAAM,GAAG,sBAAsB,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,21 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EffectsSocketEvents = exports.EntityAttackType = exports.EntityType = void 0;
4
- var EntityType;
5
- (function (EntityType) {
6
- EntityType["Character"] = "Character";
7
- EntityType["NPC"] = "NPC";
8
- EntityType["Item"] = "Item";
9
- })(EntityType = exports.EntityType || (exports.EntityType = {}));
10
- var EntityAttackType;
11
- (function (EntityAttackType) {
12
- EntityAttackType["Melee"] = "Melee";
13
- EntityAttackType["Ranged"] = "Ranged";
14
- EntityAttackType["None"] = "None";
15
- EntityAttackType["MeleeRanged"] = "MeleeRanged";
16
- })(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
17
- var EffectsSocketEvents;
18
- (function (EffectsSocketEvents) {
19
- EffectsSocketEvents["EntityEffect"] = "EntityEffect";
20
- })(EffectsSocketEvents = exports.EffectsSocketEvents || (exports.EffectsSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityAttackType = exports.EntityType = void 0;
4
+ var EntityType;
5
+ (function (EntityType) {
6
+ EntityType["Character"] = "Character";
7
+ EntityType["NPC"] = "NPC";
8
+ EntityType["Item"] = "Item";
9
+ })(EntityType = exports.EntityType || (exports.EntityType = {}));
10
+ var EntityAttackType;
11
+ (function (EntityAttackType) {
12
+ EntityAttackType["Melee"] = "Melee";
13
+ EntityAttackType["Ranged"] = "Ranged";
14
+ EntityAttackType["None"] = "None";
15
+ EntityAttackType["MeleeRanged"] = "MeleeRanged";
16
+ })(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
21
17
  //# sourceMappingURL=entity.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity.types.js","sourceRoot":"","sources":["../../src/types/entity.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,yBAAW,CAAA;IACX,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,+CAA2B,CAAA;AAC7B,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AAqBD,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;AAC/B,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B"}
1
+ {"version":3,"file":"entity.types.js","sourceRoot":"","sources":["../../src/types/entity.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,yBAAW,CAAA;IACX,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,+CAA2B,CAAA;AAC7B,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
@@ -1,6 +1,6 @@
1
- export declare enum EnvType {
2
- Development = "Development",
3
- Staging = "Staging",
4
- Production = "Production"
5
- }
1
+ export declare enum EnvType {
2
+ Development = "Development",
3
+ Staging = "Staging",
4
+ Production = "Production"
5
+ }
6
6
  //# sourceMappingURL=env.types.d.ts.map
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnvType = void 0;
4
- var EnvType;
5
- (function (EnvType) {
6
- EnvType["Development"] = "Development";
7
- EnvType["Staging"] = "Staging";
8
- EnvType["Production"] = "Production";
9
- })(EnvType = exports.EnvType || (exports.EnvType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnvType = void 0;
4
+ var EnvType;
5
+ (function (EnvType) {
6
+ EnvType["Development"] = "Development";
7
+ EnvType["Staging"] = "Staging";
8
+ EnvType["Production"] = "Production";
9
+ })(EnvType = exports.EnvType || (exports.EnvType = {}));
10
10
  //# sourceMappingURL=env.types.js.map
@@ -1,36 +1,36 @@
1
- import { ICharacter } from "./character.types";
2
- import { IItem } from "./item.types";
3
- import { IResource } from "./resource.types";
4
- export interface IEquipmentSet extends IResource {
5
- owner?: ICharacter | string;
6
- ownerRef?: string;
7
- head?: IItem | string;
8
- neck?: IItem | string;
9
- leftHand?: IItem | string;
10
- rightHand?: IItem | string;
11
- ring?: IItem | string;
12
- legs?: IItem | string;
13
- boot?: IItem | string;
14
- armor?: IItem | string;
15
- accessory?: IItem | string;
16
- inventory?: IItem | string;
17
- totalEquippedAttack?: Promise<number>;
18
- totalEquippedDefense?: Promise<number>;
19
- }
20
- export declare enum EquipmentSocketEvents {
21
- Unequip = "Unequip",
22
- ContainerOpen = "EquipmentOpen",
23
- ContainerRead = "EquipmentRead",
24
- GetEquipmentInfo = "GetEquipmentInfo",
25
- ReadEquipmentInfo = "ReadEquipmentInfo",
26
- EquipmentUpdate = "EquipmentUpdate"
27
- }
28
- export interface IEquipmentRead {
29
- equipment: IEquipmentSet;
30
- }
31
- interface IStringIndex {
32
- [key: string]: any;
33
- }
34
- export declare const EquipmentSocketEventsDisplayLabels: IStringIndex;
35
- export {};
1
+ import { ICharacter } from "./character.types";
2
+ import { IItem } from "./item.types";
3
+ import { IResource } from "./resource.types";
4
+ export interface IEquipmentSet extends IResource {
5
+ owner?: ICharacter | string;
6
+ ownerRef?: string;
7
+ head?: IItem | string;
8
+ neck?: IItem | string;
9
+ leftHand?: IItem | string;
10
+ rightHand?: IItem | string;
11
+ ring?: IItem | string;
12
+ legs?: IItem | string;
13
+ boot?: IItem | string;
14
+ armor?: IItem | string;
15
+ accessory?: IItem | string;
16
+ inventory?: IItem | string;
17
+ totalEquippedAttack?: Promise<number>;
18
+ totalEquippedDefense?: Promise<number>;
19
+ }
20
+ export declare enum EquipmentSocketEvents {
21
+ Unequip = "Unequip",
22
+ ContainerOpen = "EquipmentOpen",
23
+ ContainerRead = "EquipmentRead",
24
+ GetEquipmentInfo = "GetEquipmentInfo",
25
+ ReadEquipmentInfo = "ReadEquipmentInfo",
26
+ EquipmentUpdate = "EquipmentUpdate"
27
+ }
28
+ export interface IEquipmentRead {
29
+ equipment: IEquipmentSet;
30
+ }
31
+ interface IStringIndex {
32
+ [key: string]: any;
33
+ }
34
+ export declare const EquipmentSocketEventsDisplayLabels: IStringIndex;
35
+ export {};
36
36
  //# sourceMappingURL=equipment.types.d.ts.map
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EquipmentSocketEventsDisplayLabels = exports.EquipmentSocketEvents = void 0;
4
- var EquipmentSocketEvents;
5
- (function (EquipmentSocketEvents) {
6
- EquipmentSocketEvents["Unequip"] = "Unequip";
7
- EquipmentSocketEvents["ContainerOpen"] = "EquipmentOpen";
8
- EquipmentSocketEvents["ContainerRead"] = "EquipmentRead";
9
- EquipmentSocketEvents["GetEquipmentInfo"] = "GetEquipmentInfo";
10
- EquipmentSocketEvents["ReadEquipmentInfo"] = "ReadEquipmentInfo";
11
- EquipmentSocketEvents["EquipmentUpdate"] = "EquipmentUpdate";
12
- })(EquipmentSocketEvents = exports.EquipmentSocketEvents || (exports.EquipmentSocketEvents = {}));
13
- exports.EquipmentSocketEventsDisplayLabels = {
14
- [EquipmentSocketEvents.Unequip]: "Unequip",
15
- [EquipmentSocketEvents.GetEquipmentInfo]: "Look",
16
- [EquipmentSocketEvents.ContainerOpen]: "Open",
17
- [EquipmentSocketEvents.ContainerRead]: "Read",
18
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EquipmentSocketEventsDisplayLabels = exports.EquipmentSocketEvents = void 0;
4
+ var EquipmentSocketEvents;
5
+ (function (EquipmentSocketEvents) {
6
+ EquipmentSocketEvents["Unequip"] = "Unequip";
7
+ EquipmentSocketEvents["ContainerOpen"] = "EquipmentOpen";
8
+ EquipmentSocketEvents["ContainerRead"] = "EquipmentRead";
9
+ EquipmentSocketEvents["GetEquipmentInfo"] = "GetEquipmentInfo";
10
+ EquipmentSocketEvents["ReadEquipmentInfo"] = "ReadEquipmentInfo";
11
+ EquipmentSocketEvents["EquipmentUpdate"] = "EquipmentUpdate";
12
+ })(EquipmentSocketEvents = exports.EquipmentSocketEvents || (exports.EquipmentSocketEvents = {}));
13
+ exports.EquipmentSocketEventsDisplayLabels = {
14
+ [EquipmentSocketEvents.Unequip]: "Unequip",
15
+ [EquipmentSocketEvents.GetEquipmentInfo]: "Look",
16
+ [EquipmentSocketEvents.ContainerOpen]: "Open",
17
+ [EquipmentSocketEvents.ContainerRead]: "Read",
18
+ };
19
19
  //# sourceMappingURL=equipment.types.js.map
@@ -1,48 +1,48 @@
1
- export interface IGoogleConfig {
2
- clientID: string;
3
- clientSecret: string;
4
- redirectURI: string;
5
- }
6
- export interface IGoogleOAuthUrlResponse {
7
- googleOAuthUrl: string;
8
- }
9
- export interface IGoogleOAuthTokenPayload {
10
- access_token: string;
11
- id_token: string;
12
- expires_in: string;
13
- token_type: string;
14
- refresh_token: string;
15
- }
16
- export interface IGoogleOAuthUserInfoResponse {
17
- id: string;
18
- email: string;
19
- verified_email: boolean;
20
- name: string;
21
- given_name: string;
22
- family_name: string;
23
- picture: string;
24
- locale: string;
25
- }
26
- export interface IGoogleCapacitorOAuthResponse {
27
- email: string;
28
- familyName: string;
29
- givenName: string;
30
- id: string;
31
- imageUrl: string;
32
- name: string;
33
- authentication: IAuthentication;
34
- serverAuthCode: string;
35
- }
36
- export interface IAuthentication {
37
- accessToken: string;
38
- idToken: string;
39
- }
40
- export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
41
- iss: string;
42
- sub: string;
43
- azp: string;
44
- aud: string;
45
- iat: string;
46
- exp: string;
47
- }
1
+ export interface IGoogleConfig {
2
+ clientID: string;
3
+ clientSecret: string;
4
+ redirectURI: string;
5
+ }
6
+ export interface IGoogleOAuthUrlResponse {
7
+ googleOAuthUrl: string;
8
+ }
9
+ export interface IGoogleOAuthTokenPayload {
10
+ access_token: string;
11
+ id_token: string;
12
+ expires_in: string;
13
+ token_type: string;
14
+ refresh_token: string;
15
+ }
16
+ export interface IGoogleOAuthUserInfoResponse {
17
+ id: string;
18
+ email: string;
19
+ verified_email: boolean;
20
+ name: string;
21
+ given_name: string;
22
+ family_name: string;
23
+ picture: string;
24
+ locale: string;
25
+ }
26
+ export interface IGoogleCapacitorOAuthResponse {
27
+ email: string;
28
+ familyName: string;
29
+ givenName: string;
30
+ id: string;
31
+ imageUrl: string;
32
+ name: string;
33
+ authentication: IAuthentication;
34
+ serverAuthCode: string;
35
+ }
36
+ export interface IAuthentication {
37
+ accessToken: string;
38
+ idToken: string;
39
+ }
40
+ export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
41
+ iss: string;
42
+ sub: string;
43
+ azp: string;
44
+ aud: string;
45
+ iat: string;
46
+ exp: string;
47
+ }
48
48
  //# sourceMappingURL=googleOAuth.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=googleOAuth.types.js.map
@@ -1,8 +1,8 @@
1
- import { IItemContainer } from "./itemContainer.types";
2
- export interface IInventoryContainerOpen {
3
- inventoryId: string;
4
- }
5
- export interface IInventoryRead {
6
- inventory: IItemContainer;
7
- }
1
+ import { IItemContainer } from "./itemContainer.types";
2
+ export interface IInventoryContainerOpen {
3
+ inventoryId: string;
4
+ }
5
+ export interface IInventoryRead {
6
+ inventory: IItemContainer;
7
+ }
8
8
  //# sourceMappingURL=inventory.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=inventory.types.js.map