@rpg-engine/shared 0.7.82 → 0.7.84

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 (129) 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 +52 -52
  19. package/dist/index.js +68 -68
  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 +68 -68
  48. package/dist/types/animation.types.js +45 -45
  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 +40 -40
  56. package/dist/types/battle.types.js +18 -18
  57. package/dist/types/buff.types.d.ts +37 -37
  58. package/dist/types/buff.types.js +13 -13
  59. package/dist/types/character.types.d.ts +206 -206
  60. package/dist/types/character.types.js +53 -53
  61. package/dist/types/chat.types.d.ts +30 -30
  62. package/dist/types/chat.types.js +14 -14
  63. package/dist/types/depot.types.d.ts +18 -18
  64. package/dist/types/depot.types.js +9 -9
  65. package/dist/types/device.types.d.ts +24 -24
  66. package/dist/types/device.types.js +7 -7
  67. package/dist/types/entity.types.d.ts +30 -30
  68. package/dist/types/entity.types.js +20 -20
  69. package/dist/types/env.types.d.ts +5 -5
  70. package/dist/types/env.types.js +9 -9
  71. package/dist/types/equipment.types.d.ts +35 -35
  72. package/dist/types/equipment.types.js +18 -18
  73. package/dist/types/googleOAuth.types.d.ts +47 -47
  74. package/dist/types/googleOAuth.types.js +2 -2
  75. package/dist/types/inventory.types.d.ts +7 -7
  76. package/dist/types/inventory.types.js +2 -2
  77. package/dist/types/item.types.d.ts +367 -365
  78. package/dist/types/item.types.d.ts.map +1 -1
  79. package/dist/types/item.types.js +155 -155
  80. package/dist/types/item.types.js.map +1 -1
  81. package/dist/types/itemContainer.types.d.ts +83 -83
  82. package/dist/types/itemContainer.types.js +11 -11
  83. package/dist/types/macro.types.d.ts +8 -8
  84. package/dist/types/macro.types.js +12 -12
  85. package/dist/types/maps.types.d.ts +82 -82
  86. package/dist/types/maps.types.js +81 -81
  87. package/dist/types/notification.types.d.ts +14 -14
  88. package/dist/types/notification.types.js +2 -2
  89. package/dist/types/npc.types.d.ts +152 -152
  90. package/dist/types/npc.types.js +48 -48
  91. package/dist/types/pagination.types.d.ts +13 -13
  92. package/dist/types/pagination.types.js +2 -2
  93. package/dist/types/places.types.d.ts +16 -16
  94. package/dist/types/places.types.js +9 -9
  95. package/dist/types/preloadScene.types.d.ts +4 -4
  96. package/dist/types/preloadScene.types.js +7 -7
  97. package/dist/types/quest.types.d.ts +74 -74
  98. package/dist/types/quest.types.js +21 -21
  99. package/dist/types/resource.types.d.ts +5 -5
  100. package/dist/types/resource.types.js +2 -2
  101. package/dist/types/scene.types.d.ts +8 -8
  102. package/dist/types/scene.types.js +8 -8
  103. package/dist/types/shortcut.types.d.ts +11 -11
  104. package/dist/types/shortcut.types.js +9 -9
  105. package/dist/types/skills.types.d.ts +143 -143
  106. package/dist/types/skills.types.js +106 -106
  107. package/dist/types/socket.types.d.ts +17 -17
  108. package/dist/types/socket.types.js +8 -8
  109. package/dist/types/spell.types.d.ts +25 -25
  110. package/dist/types/spell.types.js +10 -10
  111. package/dist/types/tiled.types.d.ts +119 -119
  112. package/dist/types/tiled.types.js +7 -7
  113. package/dist/types/trade.types.d.ts +65 -65
  114. package/dist/types/trade.types.js +15 -15
  115. package/dist/types/translation.types.d.ts +5 -5
  116. package/dist/types/translation.types.js +8 -8
  117. package/dist/types/ui.types.d.ts +8 -8
  118. package/dist/types/ui.types.js +7 -7
  119. package/dist/types/useWith.types.d.ts +25 -25
  120. package/dist/types/useWith.types.js +9 -9
  121. package/dist/types/user.types.d.ts +101 -101
  122. package/dist/types/user.types.js +38 -38
  123. package/dist/types/validation.types.d.ts +9 -9
  124. package/dist/types/validation.types.js +2 -2
  125. package/dist/types/view.types.d.ts +15 -14
  126. package/dist/types/view.types.d.ts.map +1 -1
  127. package/dist/types/view.types.js +7 -7
  128. package/dist/types/view.types.js.map +1 -1
  129. package/package.json +43 -43
@@ -1,69 +1,69 @@
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
- Miss = "miss",
51
- HitBlue = "hit-blue",
52
- HitDark = "hit-dark",
53
- HitFire = "hit-fire",
54
- HitHeal = "hit-heal",
55
- HitPoison = "hit-poison",
56
- HitCorruption = "hit-corruption",
57
- Blue = "blue",
58
- Green = "green",
59
- Red = "red",
60
- Energy = "energy",
61
- Dark = "dark",
62
- FireBall = "fireball",
63
- Arrow = "arrow",
64
- Heal = "heal",
65
- Corruption = "corruption",
66
- BlueWings = "blue-wings",
67
- QuickFire = "quick-fire"
68
- }
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
+ Miss = "miss",
51
+ HitBlue = "hit-blue",
52
+ HitDark = "hit-dark",
53
+ HitFire = "hit-fire",
54
+ HitHeal = "hit-heal",
55
+ HitPoison = "hit-poison",
56
+ HitCorruption = "hit-corruption",
57
+ Blue = "blue",
58
+ Green = "green",
59
+ Red = "red",
60
+ Energy = "energy",
61
+ Dark = "dark",
62
+ FireBall = "fireball",
63
+ Arrow = "arrow",
64
+ Heal = "heal",
65
+ Corruption = "corruption",
66
+ BlueWings = "blue-wings",
67
+ QuickFire = "quick-fire"
68
+ }
69
69
  //# sourceMappingURL=animation.types.d.ts.map
@@ -1,46 +1,46 @@
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["Miss"] = "miss";
28
- AnimationEffectKeys["HitBlue"] = "hit-blue";
29
- AnimationEffectKeys["HitDark"] = "hit-dark";
30
- AnimationEffectKeys["HitFire"] = "hit-fire";
31
- AnimationEffectKeys["HitHeal"] = "hit-heal";
32
- AnimationEffectKeys["HitPoison"] = "hit-poison";
33
- AnimationEffectKeys["HitCorruption"] = "hit-corruption";
34
- AnimationEffectKeys["Blue"] = "blue";
35
- AnimationEffectKeys["Green"] = "green";
36
- AnimationEffectKeys["Red"] = "red";
37
- AnimationEffectKeys["Energy"] = "energy";
38
- AnimationEffectKeys["Dark"] = "dark";
39
- AnimationEffectKeys["FireBall"] = "fireball";
40
- AnimationEffectKeys["Arrow"] = "arrow";
41
- AnimationEffectKeys["Heal"] = "heal";
42
- AnimationEffectKeys["Corruption"] = "corruption";
43
- AnimationEffectKeys["BlueWings"] = "blue-wings";
44
- AnimationEffectKeys["QuickFire"] = "quick-fire";
45
- })(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["Miss"] = "miss";
28
+ AnimationEffectKeys["HitBlue"] = "hit-blue";
29
+ AnimationEffectKeys["HitDark"] = "hit-dark";
30
+ AnimationEffectKeys["HitFire"] = "hit-fire";
31
+ AnimationEffectKeys["HitHeal"] = "hit-heal";
32
+ AnimationEffectKeys["HitPoison"] = "hit-poison";
33
+ AnimationEffectKeys["HitCorruption"] = "hit-corruption";
34
+ AnimationEffectKeys["Blue"] = "blue";
35
+ AnimationEffectKeys["Green"] = "green";
36
+ AnimationEffectKeys["Red"] = "red";
37
+ AnimationEffectKeys["Energy"] = "energy";
38
+ AnimationEffectKeys["Dark"] = "dark";
39
+ AnimationEffectKeys["FireBall"] = "fireball";
40
+ AnimationEffectKeys["Arrow"] = "arrow";
41
+ AnimationEffectKeys["Heal"] = "heal";
42
+ AnimationEffectKeys["Corruption"] = "corruption";
43
+ AnimationEffectKeys["BlueWings"] = "blue-wings";
44
+ AnimationEffectKeys["QuickFire"] = "quick-fire";
45
+ })(AnimationEffectKeys = exports.AnimationEffectKeys || (exports.AnimationEffectKeys = {}));
46
46
  //# 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,41 +1,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
- level?: number;
24
- skill?: string;
25
- }
26
- export interface IBattleDeath {
27
- id: string;
28
- type: "Character" | "NPC";
29
- }
30
- export interface IBattleInitTargeting {
31
- targetId: string;
32
- type: EntityType;
33
- }
34
- export interface IBattleCancelTargeting {
35
- targetId: string;
36
- type: EntityType;
37
- reason?: string;
38
- }
39
- export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
40
- }
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
+ level?: number;
24
+ skill?: string;
25
+ }
26
+ export interface IBattleDeath {
27
+ id: string;
28
+ type: "Character" | "NPC";
29
+ }
30
+ export interface IBattleInitTargeting {
31
+ targetId: string;
32
+ type: EntityType;
33
+ }
34
+ export interface IBattleCancelTargeting {
35
+ targetId: string;
36
+ type: EntityType;
37
+ reason?: string;
38
+ }
39
+ export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
40
+ }
41
41
  //# 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
@@ -1,38 +1,38 @@
1
- import { CharacterTrait } from "./skills.types";
2
- export declare enum CharacterBuffType {
3
- Skill = "skill",
4
- CharacterAttribute = "characterAttribute"
5
- }
6
- export declare enum CharacterBuffDurationType {
7
- Permanent = "permanent",
8
- Temporary = "temporary"
9
- }
10
- export interface ICharacterBuff {
11
- _id?: string;
12
- type: CharacterBuffType;
13
- trait: CharacterTrait;
14
- buffPercentage: number;
15
- absoluteChange?: number;
16
- durationType: CharacterBuffDurationType;
17
- options?: {
18
- messages?: {
19
- skipAllMessages?: boolean;
20
- skipActivationMessage?: boolean;
21
- skipDeactivationMessage?: boolean;
22
- activation?: string;
23
- deactivation?: string;
24
- };
25
- };
26
- }
27
- export interface ICharacterPermanentBuff extends ICharacterBuff {
28
- durationType: CharacterBuffDurationType.Permanent;
29
- }
30
- export interface ICharacterTemporaryBuff extends ICharacterBuff {
31
- durationType: CharacterBuffDurationType.Temporary;
32
- durationSeconds: number;
33
- }
34
- export interface ICharacterItemBuff extends ICharacterPermanentBuff {
35
- itemId: string;
36
- itemKey: string;
37
- }
1
+ import { CharacterTrait } from "./skills.types";
2
+ export declare enum CharacterBuffType {
3
+ Skill = "skill",
4
+ CharacterAttribute = "characterAttribute"
5
+ }
6
+ export declare enum CharacterBuffDurationType {
7
+ Permanent = "permanent",
8
+ Temporary = "temporary"
9
+ }
10
+ export interface ICharacterBuff {
11
+ _id?: string;
12
+ type: CharacterBuffType;
13
+ trait: CharacterTrait;
14
+ buffPercentage: number;
15
+ absoluteChange?: number;
16
+ durationType: CharacterBuffDurationType;
17
+ options?: {
18
+ messages?: {
19
+ skipAllMessages?: boolean;
20
+ skipActivationMessage?: boolean;
21
+ skipDeactivationMessage?: boolean;
22
+ activation?: string;
23
+ deactivation?: string;
24
+ };
25
+ };
26
+ }
27
+ export interface ICharacterPermanentBuff extends ICharacterBuff {
28
+ durationType: CharacterBuffDurationType.Permanent;
29
+ }
30
+ export interface ICharacterTemporaryBuff extends ICharacterBuff {
31
+ durationType: CharacterBuffDurationType.Temporary;
32
+ durationSeconds: number;
33
+ }
34
+ export interface ICharacterItemBuff extends ICharacterPermanentBuff {
35
+ itemId: string;
36
+ itemKey: string;
37
+ }
38
38
  //# sourceMappingURL=buff.types.d.ts.map
@@ -1,14 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CharacterBuffDurationType = exports.CharacterBuffType = void 0;
4
- var CharacterBuffType;
5
- (function (CharacterBuffType) {
6
- CharacterBuffType["Skill"] = "skill";
7
- CharacterBuffType["CharacterAttribute"] = "characterAttribute";
8
- })(CharacterBuffType = exports.CharacterBuffType || (exports.CharacterBuffType = {}));
9
- var CharacterBuffDurationType;
10
- (function (CharacterBuffDurationType) {
11
- CharacterBuffDurationType["Permanent"] = "permanent";
12
- CharacterBuffDurationType["Temporary"] = "temporary";
13
- })(CharacterBuffDurationType = exports.CharacterBuffDurationType || (exports.CharacterBuffDurationType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CharacterBuffDurationType = exports.CharacterBuffType = void 0;
4
+ var CharacterBuffType;
5
+ (function (CharacterBuffType) {
6
+ CharacterBuffType["Skill"] = "skill";
7
+ CharacterBuffType["CharacterAttribute"] = "characterAttribute";
8
+ })(CharacterBuffType = exports.CharacterBuffType || (exports.CharacterBuffType = {}));
9
+ var CharacterBuffDurationType;
10
+ (function (CharacterBuffDurationType) {
11
+ CharacterBuffDurationType["Permanent"] = "permanent";
12
+ CharacterBuffDurationType["Temporary"] = "temporary";
13
+ })(CharacterBuffDurationType = exports.CharacterBuffDurationType || (exports.CharacterBuffDurationType = {}));
14
14
  //# sourceMappingURL=buff.types.js.map