@rpg-engine/shared 0.7.49 → 0.7.50

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 (125) 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 +51 -51
  19. package/dist/index.js +67 -67
  20. package/dist/libs/GridHelper.d.ts +11 -11
  21. package/dist/libs/GridHelper.js +37 -37
  22. package/dist/libs/MathHelper.d.ts +16 -16
  23. package/dist/libs/MathHelper.js +14 -14
  24. package/dist/libs/SocketHelper.d.ts +2 -2
  25. package/dist/libs/SocketHelper.js +14 -14
  26. package/dist/libs/TextHelper.d.ts +7 -7
  27. package/dist/libs/TextHelper.js +21 -21
  28. package/dist/libs/TypeHelper.d.ts +3 -3
  29. package/dist/libs/TypeHelper.js +16 -16
  30. package/dist/translations/app-rate.lang.json +38 -38
  31. package/dist/translations/assets.lang.json +82 -82
  32. package/dist/translations/auth.lang.json +182 -182
  33. package/dist/translations/email.lang.json +70 -70
  34. package/dist/translations/error.lang.json +18 -18
  35. package/dist/translations/form.lang.json +94 -94
  36. package/dist/translations/global.lang.json +90 -90
  37. package/dist/translations/logs.lang.json +6 -6
  38. package/dist/translations/onboarding.lang.d.ts +10 -10
  39. package/dist/translations/onboarding.lang.js +21 -21
  40. package/dist/translations/onboarding.lang.json +50 -50
  41. package/dist/translations/order.lang.json +90 -90
  42. package/dist/translations/search.lang.json +50 -50
  43. package/dist/translations/settings.lang.json +14 -14
  44. package/dist/translations/tabs.lang.json +22 -22
  45. package/dist/translations/users.lang.json +22 -22
  46. package/dist/translations/validation.lang.json +86 -86
  47. package/dist/types/animation.types.d.ts +65 -65
  48. package/dist/types/animation.types.js +42 -42
  49. package/dist/types/api.types.d.ts +21 -21
  50. package/dist/types/api.types.js +20 -20
  51. package/dist/types/asset.types.d.ts +6 -6
  52. package/dist/types/asset.types.js +2 -2
  53. package/dist/types/auth.types.d.ts +7 -7
  54. package/dist/types/auth.types.js +2 -2
  55. package/dist/types/battle.types.d.ts +41 -41
  56. package/dist/types/battle.types.js +18 -18
  57. package/dist/types/character.types.d.ts +200 -200
  58. package/dist/types/character.types.js +52 -52
  59. package/dist/types/chat.types.d.ts +30 -30
  60. package/dist/types/chat.types.js +14 -14
  61. package/dist/types/depot.types.d.ts +18 -18
  62. package/dist/types/depot.types.js +9 -9
  63. package/dist/types/device.types.d.ts +24 -24
  64. package/dist/types/device.types.js +7 -7
  65. package/dist/types/entity.types.d.ts +30 -30
  66. package/dist/types/entity.types.js +20 -20
  67. package/dist/types/env.types.d.ts +5 -5
  68. package/dist/types/env.types.js +9 -9
  69. package/dist/types/equipment.types.d.ts +35 -35
  70. package/dist/types/equipment.types.js +18 -18
  71. package/dist/types/googleOAuth.types.d.ts +47 -47
  72. package/dist/types/googleOAuth.types.js +2 -2
  73. package/dist/types/inventory.types.d.ts +7 -7
  74. package/dist/types/inventory.types.js +2 -2
  75. package/dist/types/item.types.d.ts +347 -347
  76. package/dist/types/item.types.js +155 -155
  77. package/dist/types/itemContainer.types.d.ts +83 -83
  78. package/dist/types/itemContainer.types.js +11 -11
  79. package/dist/types/macro.types.d.ts +8 -8
  80. package/dist/types/macro.types.js +12 -12
  81. package/dist/types/maps.types.d.ts +82 -82
  82. package/dist/types/maps.types.js +81 -81
  83. package/dist/types/notification.types.d.ts +14 -14
  84. package/dist/types/notification.types.js +2 -2
  85. package/dist/types/npc.types.d.ts +152 -151
  86. package/dist/types/npc.types.d.ts.map +1 -1
  87. package/dist/types/npc.types.js +48 -48
  88. package/dist/types/npc.types.js.map +1 -1
  89. package/dist/types/pagination.types.d.ts +13 -13
  90. package/dist/types/pagination.types.js +2 -2
  91. package/dist/types/places.types.d.ts +16 -16
  92. package/dist/types/places.types.js +9 -9
  93. package/dist/types/preloadScene.types.d.ts +4 -4
  94. package/dist/types/preloadScene.types.js +7 -7
  95. package/dist/types/quest.types.d.ts +74 -74
  96. package/dist/types/quest.types.js +21 -21
  97. package/dist/types/resource.types.d.ts +5 -5
  98. package/dist/types/resource.types.js +2 -2
  99. package/dist/types/scene.types.d.ts +8 -8
  100. package/dist/types/scene.types.js +8 -8
  101. package/dist/types/shortcut.types.d.ts +11 -11
  102. package/dist/types/shortcut.types.js +9 -9
  103. package/dist/types/skills.types.d.ts +141 -141
  104. package/dist/types/skills.types.js +105 -105
  105. package/dist/types/socket.types.d.ts +17 -17
  106. package/dist/types/socket.types.js +8 -8
  107. package/dist/types/spell.types.d.ts +25 -25
  108. package/dist/types/spell.types.js +10 -10
  109. package/dist/types/tiled.types.d.ts +119 -119
  110. package/dist/types/tiled.types.js +7 -7
  111. package/dist/types/trade.types.d.ts +38 -38
  112. package/dist/types/trade.types.js +8 -8
  113. package/dist/types/translation.types.d.ts +5 -5
  114. package/dist/types/translation.types.js +8 -8
  115. package/dist/types/ui.types.d.ts +8 -8
  116. package/dist/types/ui.types.js +7 -7
  117. package/dist/types/useWith.types.d.ts +25 -25
  118. package/dist/types/useWith.types.js +9 -9
  119. package/dist/types/user.types.d.ts +101 -101
  120. package/dist/types/user.types.js +38 -38
  121. package/dist/types/validation.types.d.ts +9 -9
  122. package/dist/types/validation.types.js +2 -2
  123. package/dist/types/view.types.d.ts +14 -14
  124. package/dist/types/view.types.js +7 -7
  125. package/package.json +43 -43
@@ -1,66 +1,66 @@
1
- export interface IEntityAnimation {
2
- movement: IEntityMovementAnimation;
3
- death: IEntityDeathAnimation;
4
- }
5
- export declare type AnimationDirection = "down" | "up" | "left" | "right";
6
- export interface IEntityDeathAnimation {
7
- [direction: string]: {
8
- frames: number[];
9
- };
10
- }
11
- export interface IEntityMovementAnimation {
12
- [direction: string]: {
13
- walking: number[];
14
- standing: number | number[];
15
- };
16
- }
17
- export interface IAnimationEffect {
18
- targetId?: string;
19
- targetX?: number;
20
- targetY?: number;
21
- effectKey: string;
22
- }
23
- export interface IProjectileAnimationEffect {
24
- sourceId: string;
25
- targetId: string;
26
- projectileEffectKey: string;
27
- effectKey?: string;
28
- }
29
- export declare enum AnimationSocketEvents {
30
- ShowAnimation = "ShowAnimation",
31
- ShowProjectileAnimation = "ShowProjectileAnimation"
32
- }
33
- export declare enum AnimationEffectKeys {
34
- LevelUp = "level-up",
35
- LifeHeal = "life-heal",
36
- ManaHeal = "mana-heal",
37
- SkillLevelUp = "new-skill",
38
- Poison = "poison",
39
- Burn = "burn",
40
- Freeze = "freeze",
41
- Holy = "holy",
42
- Lifedrain = "lifedrain",
43
- Rooted = "rooted",
44
- HitEnergy = "hit-energy",
45
- MagicShield = "magic-shield",
46
- PhysicalShield = "physical-shield",
47
- HasteSpell = "haste",
48
- Execution = "execution",
49
- Hit = "hit",
50
- HitBlue = "hit-blue",
51
- HitDark = "hit-dark",
52
- HitFire = "hit-fire",
53
- HitHeal = "hit-heal",
54
- HitPoison = "hit-poison",
55
- HitCorruption = "hit-corruption",
56
- Blue = "blue",
57
- Green = "green",
58
- Red = "red",
59
- Energy = "energy",
60
- Dark = "dark",
61
- FireBall = "fireball",
62
- Arrow = "arrow",
63
- Heal = "heal",
64
- Corruption = "corruption"
65
- }
1
+ export interface IEntityAnimation {
2
+ movement: IEntityMovementAnimation;
3
+ death: IEntityDeathAnimation;
4
+ }
5
+ export declare type AnimationDirection = "down" | "up" | "left" | "right";
6
+ export interface IEntityDeathAnimation {
7
+ [direction: string]: {
8
+ frames: number[];
9
+ };
10
+ }
11
+ export interface IEntityMovementAnimation {
12
+ [direction: string]: {
13
+ walking: number[];
14
+ standing: number | number[];
15
+ };
16
+ }
17
+ export interface IAnimationEffect {
18
+ targetId?: string;
19
+ targetX?: number;
20
+ targetY?: number;
21
+ effectKey: string;
22
+ }
23
+ export interface IProjectileAnimationEffect {
24
+ sourceId: string;
25
+ targetId: string;
26
+ projectileEffectKey: string;
27
+ effectKey?: string;
28
+ }
29
+ export declare enum AnimationSocketEvents {
30
+ ShowAnimation = "ShowAnimation",
31
+ ShowProjectileAnimation = "ShowProjectileAnimation"
32
+ }
33
+ export declare enum AnimationEffectKeys {
34
+ LevelUp = "level-up",
35
+ LifeHeal = "life-heal",
36
+ ManaHeal = "mana-heal",
37
+ SkillLevelUp = "new-skill",
38
+ Poison = "poison",
39
+ Burn = "burn",
40
+ Freeze = "freeze",
41
+ Holy = "holy",
42
+ Lifedrain = "lifedrain",
43
+ Rooted = "rooted",
44
+ HitEnergy = "hit-energy",
45
+ MagicShield = "magic-shield",
46
+ PhysicalShield = "physical-shield",
47
+ HasteSpell = "haste",
48
+ Execution = "execution",
49
+ Hit = "hit",
50
+ HitBlue = "hit-blue",
51
+ HitDark = "hit-dark",
52
+ HitFire = "hit-fire",
53
+ HitHeal = "hit-heal",
54
+ HitPoison = "hit-poison",
55
+ HitCorruption = "hit-corruption",
56
+ Blue = "blue",
57
+ Green = "green",
58
+ Red = "red",
59
+ Energy = "energy",
60
+ Dark = "dark",
61
+ FireBall = "fireball",
62
+ Arrow = "arrow",
63
+ Heal = "heal",
64
+ Corruption = "corruption"
65
+ }
66
66
  //# sourceMappingURL=animation.types.d.ts.map
@@ -1,43 +1,43 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AnimationEffectKeys = exports.AnimationSocketEvents = void 0;
4
- var AnimationSocketEvents;
5
- (function (AnimationSocketEvents) {
6
- AnimationSocketEvents["ShowAnimation"] = "ShowAnimation";
7
- AnimationSocketEvents["ShowProjectileAnimation"] = "ShowProjectileAnimation";
8
- })(AnimationSocketEvents = exports.AnimationSocketEvents || (exports.AnimationSocketEvents = {}));
9
- var AnimationEffectKeys;
10
- (function (AnimationEffectKeys) {
11
- AnimationEffectKeys["LevelUp"] = "level-up";
12
- AnimationEffectKeys["LifeHeal"] = "life-heal";
13
- AnimationEffectKeys["ManaHeal"] = "mana-heal";
14
- AnimationEffectKeys["SkillLevelUp"] = "new-skill";
15
- AnimationEffectKeys["Poison"] = "poison";
16
- AnimationEffectKeys["Burn"] = "burn";
17
- AnimationEffectKeys["Freeze"] = "freeze";
18
- AnimationEffectKeys["Holy"] = "holy";
19
- AnimationEffectKeys["Lifedrain"] = "lifedrain";
20
- AnimationEffectKeys["Rooted"] = "rooted";
21
- AnimationEffectKeys["HitEnergy"] = "hit-energy";
22
- AnimationEffectKeys["MagicShield"] = "magic-shield";
23
- AnimationEffectKeys["PhysicalShield"] = "physical-shield";
24
- AnimationEffectKeys["HasteSpell"] = "haste";
25
- AnimationEffectKeys["Execution"] = "execution";
26
- AnimationEffectKeys["Hit"] = "hit";
27
- AnimationEffectKeys["HitBlue"] = "hit-blue";
28
- AnimationEffectKeys["HitDark"] = "hit-dark";
29
- AnimationEffectKeys["HitFire"] = "hit-fire";
30
- AnimationEffectKeys["HitHeal"] = "hit-heal";
31
- AnimationEffectKeys["HitPoison"] = "hit-poison";
32
- AnimationEffectKeys["HitCorruption"] = "hit-corruption";
33
- AnimationEffectKeys["Blue"] = "blue";
34
- AnimationEffectKeys["Green"] = "green";
35
- AnimationEffectKeys["Red"] = "red";
36
- AnimationEffectKeys["Energy"] = "energy";
37
- AnimationEffectKeys["Dark"] = "dark";
38
- AnimationEffectKeys["FireBall"] = "fireball";
39
- AnimationEffectKeys["Arrow"] = "arrow";
40
- AnimationEffectKeys["Heal"] = "heal";
41
- AnimationEffectKeys["Corruption"] = "corruption";
42
- })(AnimationEffectKeys = exports.AnimationEffectKeys || (exports.AnimationEffectKeys = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnimationEffectKeys = exports.AnimationSocketEvents = void 0;
4
+ var AnimationSocketEvents;
5
+ (function (AnimationSocketEvents) {
6
+ AnimationSocketEvents["ShowAnimation"] = "ShowAnimation";
7
+ AnimationSocketEvents["ShowProjectileAnimation"] = "ShowProjectileAnimation";
8
+ })(AnimationSocketEvents = exports.AnimationSocketEvents || (exports.AnimationSocketEvents = {}));
9
+ var AnimationEffectKeys;
10
+ (function (AnimationEffectKeys) {
11
+ AnimationEffectKeys["LevelUp"] = "level-up";
12
+ AnimationEffectKeys["LifeHeal"] = "life-heal";
13
+ AnimationEffectKeys["ManaHeal"] = "mana-heal";
14
+ AnimationEffectKeys["SkillLevelUp"] = "new-skill";
15
+ AnimationEffectKeys["Poison"] = "poison";
16
+ AnimationEffectKeys["Burn"] = "burn";
17
+ AnimationEffectKeys["Freeze"] = "freeze";
18
+ AnimationEffectKeys["Holy"] = "holy";
19
+ AnimationEffectKeys["Lifedrain"] = "lifedrain";
20
+ AnimationEffectKeys["Rooted"] = "rooted";
21
+ AnimationEffectKeys["HitEnergy"] = "hit-energy";
22
+ AnimationEffectKeys["MagicShield"] = "magic-shield";
23
+ AnimationEffectKeys["PhysicalShield"] = "physical-shield";
24
+ AnimationEffectKeys["HasteSpell"] = "haste";
25
+ AnimationEffectKeys["Execution"] = "execution";
26
+ AnimationEffectKeys["Hit"] = "hit";
27
+ AnimationEffectKeys["HitBlue"] = "hit-blue";
28
+ AnimationEffectKeys["HitDark"] = "hit-dark";
29
+ AnimationEffectKeys["HitFire"] = "hit-fire";
30
+ AnimationEffectKeys["HitHeal"] = "hit-heal";
31
+ AnimationEffectKeys["HitPoison"] = "hit-poison";
32
+ AnimationEffectKeys["HitCorruption"] = "hit-corruption";
33
+ AnimationEffectKeys["Blue"] = "blue";
34
+ AnimationEffectKeys["Green"] = "green";
35
+ AnimationEffectKeys["Red"] = "red";
36
+ AnimationEffectKeys["Energy"] = "energy";
37
+ AnimationEffectKeys["Dark"] = "dark";
38
+ AnimationEffectKeys["FireBall"] = "fireball";
39
+ AnimationEffectKeys["Arrow"] = "arrow";
40
+ AnimationEffectKeys["Heal"] = "heal";
41
+ AnimationEffectKeys["Corruption"] = "corruption";
42
+ })(AnimationEffectKeys = exports.AnimationEffectKeys || (exports.AnimationEffectKeys = {}));
43
43
  //# sourceMappingURL=animation.types.js.map
@@ -1,22 +1,22 @@
1
- export interface IAPIError {
2
- statusCode: number;
3
- message: string[] | string;
4
- error: string;
5
- }
6
- export declare enum HttpStatus {
7
- OK = 200,
8
- Created = 201,
9
- NoContent = 204,
10
- PermanentRedirect = 301,
11
- TemporaryRedirect = 302,
12
- BadRequest = 400,
13
- Unauthorized = 401,
14
- Forbidden = 403,
15
- NotFound = 404,
16
- MethodNotAllowed = 405,
17
- Conflict = 409,
18
- UnprocessableEntity = 422,
19
- InternalServerError = 500,
20
- ServiceUnavailable = 503
21
- }
1
+ export interface IAPIError {
2
+ statusCode: number;
3
+ message: string[] | string;
4
+ error: string;
5
+ }
6
+ export declare enum HttpStatus {
7
+ OK = 200,
8
+ Created = 201,
9
+ NoContent = 204,
10
+ PermanentRedirect = 301,
11
+ TemporaryRedirect = 302,
12
+ BadRequest = 400,
13
+ Unauthorized = 401,
14
+ Forbidden = 403,
15
+ NotFound = 404,
16
+ MethodNotAllowed = 405,
17
+ Conflict = 409,
18
+ UnprocessableEntity = 422,
19
+ InternalServerError = 500,
20
+ ServiceUnavailable = 503
21
+ }
22
22
  //# sourceMappingURL=api.types.d.ts.map
@@ -1,21 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpStatus = void 0;
4
- var HttpStatus;
5
- (function (HttpStatus) {
6
- HttpStatus[HttpStatus["OK"] = 200] = "OK";
7
- HttpStatus[HttpStatus["Created"] = 201] = "Created";
8
- HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
9
- HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
10
- HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
11
- HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
12
- HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
13
- HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
14
- HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
15
- HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
16
- HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
17
- HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
18
- HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
19
- HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
20
- })(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpStatus = void 0;
4
+ var HttpStatus;
5
+ (function (HttpStatus) {
6
+ HttpStatus[HttpStatus["OK"] = 200] = "OK";
7
+ HttpStatus[HttpStatus["Created"] = 201] = "Created";
8
+ HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
9
+ HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
10
+ HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
11
+ HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
12
+ HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
13
+ HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
14
+ HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
15
+ HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
16
+ HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
17
+ HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
18
+ HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
19
+ HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
20
+ })(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
21
21
  //# sourceMappingURL=api.types.js.map
@@ -1,7 +1,7 @@
1
- import { IEntityMovementAnimation } from "./animation.types";
2
- export interface IAssetData {
3
- textureKey: string;
4
- path: string;
5
- animations: IEntityMovementAnimation;
6
- }
1
+ import { IEntityMovementAnimation } from "./animation.types";
2
+ export interface IAssetData {
3
+ textureKey: string;
4
+ path: string;
5
+ animations: IEntityMovementAnimation;
6
+ }
7
7
  //# sourceMappingURL=asset.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=asset.types.js.map
@@ -1,8 +1,8 @@
1
- export interface IAuthResponse {
2
- accessToken: string;
3
- refreshToken: string;
4
- }
5
- export interface IAuthRefreshTokenResponse {
6
- accessToken: string;
7
- }
1
+ export interface IAuthResponse {
2
+ accessToken: string;
3
+ refreshToken: string;
4
+ }
5
+ export interface IAuthRefreshTokenResponse {
6
+ accessToken: string;
7
+ }
8
8
  //# sourceMappingURL=auth.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=auth.types.js.map
@@ -1,42 +1,42 @@
1
- import { EntityType } from "./entity.types";
2
- export declare enum BattleSocketEvents {
3
- InitTargeting = "InitTargeting",
4
- StopTargeting = "StopTargeting",
5
- CancelTargeting = "CancelTargeting",
6
- BattleEvent = "BattleEvent",
7
- BattleDeath = "BattleDeath",
8
- RangedAttackFailure = "RangedAttackFailure"
9
- }
10
- export declare enum BattleEventType {
11
- Miss = "Miss",
12
- Block = "Block",
13
- Hit = "Hit"
14
- }
15
- export interface IBattleEventFromServer {
16
- attackerId: string;
17
- attackerType: "Character" | "NPC";
18
- targetId: string;
19
- targetType: "Character" | "NPC";
20
- eventType: BattleEventType;
21
- totalDamage?: number;
22
- postDamageTargetHP?: number;
23
- postDamageTargetMana?: number;
24
- level?: number;
25
- skill?: string;
26
- }
27
- export interface IBattleDeath {
28
- id: string;
29
- type: "Character" | "NPC";
30
- }
31
- export interface IBattleInitTargeting {
32
- targetId: string;
33
- type: EntityType;
34
- }
35
- export interface IBattleCancelTargeting {
36
- targetId: string;
37
- type: EntityType;
38
- reason?: string;
39
- }
40
- export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
41
- }
1
+ import { EntityType } from "./entity.types";
2
+ export declare enum BattleSocketEvents {
3
+ InitTargeting = "InitTargeting",
4
+ StopTargeting = "StopTargeting",
5
+ CancelTargeting = "CancelTargeting",
6
+ BattleEvent = "BattleEvent",
7
+ BattleDeath = "BattleDeath",
8
+ RangedAttackFailure = "RangedAttackFailure"
9
+ }
10
+ export declare enum BattleEventType {
11
+ Miss = "Miss",
12
+ Block = "Block",
13
+ Hit = "Hit"
14
+ }
15
+ export interface IBattleEventFromServer {
16
+ attackerId: string;
17
+ attackerType: "Character" | "NPC";
18
+ targetId: string;
19
+ targetType: "Character" | "NPC";
20
+ eventType: BattleEventType;
21
+ totalDamage?: number;
22
+ postDamageTargetHP?: number;
23
+ postDamageTargetMana?: number;
24
+ level?: number;
25
+ skill?: string;
26
+ }
27
+ export interface IBattleDeath {
28
+ id: string;
29
+ type: "Character" | "NPC";
30
+ }
31
+ export interface IBattleInitTargeting {
32
+ targetId: string;
33
+ type: EntityType;
34
+ }
35
+ export interface IBattleCancelTargeting {
36
+ targetId: string;
37
+ type: EntityType;
38
+ reason?: string;
39
+ }
40
+ export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
41
+ }
42
42
  //# sourceMappingURL=battle.types.d.ts.map
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BattleEventType = exports.BattleSocketEvents = void 0;
4
- var BattleSocketEvents;
5
- (function (BattleSocketEvents) {
6
- BattleSocketEvents["InitTargeting"] = "InitTargeting";
7
- BattleSocketEvents["StopTargeting"] = "StopTargeting";
8
- BattleSocketEvents["CancelTargeting"] = "CancelTargeting";
9
- BattleSocketEvents["BattleEvent"] = "BattleEvent";
10
- BattleSocketEvents["BattleDeath"] = "BattleDeath";
11
- BattleSocketEvents["RangedAttackFailure"] = "RangedAttackFailure";
12
- })(BattleSocketEvents = exports.BattleSocketEvents || (exports.BattleSocketEvents = {}));
13
- var BattleEventType;
14
- (function (BattleEventType) {
15
- BattleEventType["Miss"] = "Miss";
16
- BattleEventType["Block"] = "Block";
17
- BattleEventType["Hit"] = "Hit";
18
- })(BattleEventType = exports.BattleEventType || (exports.BattleEventType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BattleEventType = exports.BattleSocketEvents = void 0;
4
+ var BattleSocketEvents;
5
+ (function (BattleSocketEvents) {
6
+ BattleSocketEvents["InitTargeting"] = "InitTargeting";
7
+ BattleSocketEvents["StopTargeting"] = "StopTargeting";
8
+ BattleSocketEvents["CancelTargeting"] = "CancelTargeting";
9
+ BattleSocketEvents["BattleEvent"] = "BattleEvent";
10
+ BattleSocketEvents["BattleDeath"] = "BattleDeath";
11
+ BattleSocketEvents["RangedAttackFailure"] = "RangedAttackFailure";
12
+ })(BattleSocketEvents = exports.BattleSocketEvents || (exports.BattleSocketEvents = {}));
13
+ var BattleEventType;
14
+ (function (BattleEventType) {
15
+ BattleEventType["Miss"] = "Miss";
16
+ BattleEventType["Block"] = "Block";
17
+ BattleEventType["Hit"] = "Hit";
18
+ })(BattleEventType = exports.BattleEventType || (exports.BattleEventType = {}));
19
19
  //# sourceMappingURL=battle.types.js.map