@rpg-engine/shared 0.7.91 → 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 -99
  119. package/dist/types/spell.types.d.ts.map +1 -1
  120. package/dist/types/spell.types.js +65 -64
  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,100 +1,101 @@
1
- import { CharacterClass } from "./character.types";
2
- import { EntityType } from "./entity.types";
3
- import { SpellCastingType } from "./item.types";
4
- import { BasicAttribute, CharacterAttributes, CombatSkill, CraftingSkill } from "./skills.types";
5
- export interface IRawSpell {
6
- key: string;
7
- name: string;
8
- description: string;
9
- magicWords: string;
10
- manaCost: number;
11
- minMagicLevelRequired: number;
12
- requiredItem?: string;
13
- }
14
- export interface ISpellRead {
15
- magicLevel: number;
16
- spells: IRawSpell[];
17
- }
18
- export interface ISpellCast {
19
- magicWords: string;
20
- targetId?: string;
21
- targetType?: EntityType;
22
- }
23
- export declare enum SpellSocketEvents {
24
- LearnedSpellsRead = "LearnedSpellsRead",
25
- CastSpell = "CastSpell",
26
- IdentifyTarget = "IdentifyTarget",
27
- SpellDetails = "SpellDetails",
28
- LearnedSpells = "LearnedSpells"
29
- }
30
- export declare enum SpellsBlueprint {
31
- SelfHealingSpell = "self-healing-spell",
32
- FoodCreationSpell = "food-creation-spell",
33
- ArrowCreationSpell = "arrow-creation-spell",
34
- BoltCreationSpell = "bolt-creation-spell",
35
- BlankRuneCreationSpell = "blank-rune-creation-spell",
36
- SelfHasteSpell = "self-haste-spell",
37
- FireRuneCreationSpell = "fire-rune-creation-spell",
38
- HealRuneCreationSpell = "healing-rune-creation-spell",
39
- PoisonRuneCreationSpell = "poison-rune-creation-spell",
40
- DarkRuneCreationSpell = "dark-rune-creation-spell",
41
- GreaterHealingSpell = "greater-healing-spell",
42
- EnergyBoltRuneCreationSpell = "energy-bolt-rune-creation-spell",
43
- FireBoltRuneCreationSpell = "fire-bolt-rune-creation-spell",
44
- FireBoltCreationSpell = "fire-bolt-creation-spell",
45
- PoisonArrowCreationSpell = "poison-arrow-creation-spell",
46
- CorruptionRuneCreationSpell = "corruption-rune-creation-spell",
47
- SpellDivineProtection = "spell-divine-protection",
48
- SpellPhysicalShield = "spell-physical-shield",
49
- SpellEagleEyes = "spell-eagle-eyes",
50
- ThunderRuneCreationSpell = "thunder-rune-creation-spell",
51
- WarriorStunTarget = "warrior-stun-target",
52
- RogueStealth = "rogue-stealth-spell",
53
- BerserkerBloodthirst = "berserker-bloodthirst",
54
- RogueExecution = "rogue-execution",
55
- ManaRegenSpell = "auto-mana-regen",
56
- HealthRegenSell = "auto-health-regen",
57
- ManaShield = "mana-shield",
58
- FortifyDefense = "fortify-defense",
59
- BerserkerExecution = "berserker-execution",
60
- HunterQuickFire = "hunter-quick-fire",
61
- BerserkerFrenzy = "berserker-frenzy",
62
- DruidShapeshift = "druid-shapeshift",
63
- BerserkerRage = "berserker-rage",
64
- Focus = "focus",
65
- PowerStrike = "power-strike",
66
- CurseOfWeakness = "curse-of-weakness",
67
- EntanglingRoots = "entangling-roots",
68
- SpellPolymorph = "spell-polymorph"
69
- }
70
- export declare enum MagicsBlueprint {
71
- Rune = "rune",
72
- DarkRune = "dark-rune",
73
- FireRune = "fire-rune",
74
- HealRune = "heal-rune",
75
- PoisonRune = "poison-rune",
76
- ThunderRune = "thunder-rune",
77
- EnergyBoltRune = "energy-bolt-rune",
78
- FireBoltRune = "fire-bolt-rune",
79
- CorruptionRune = "corruption-rune"
80
- }
81
- export interface ISpell {
82
- key: SpellsBlueprint;
83
- name: string;
84
- description: string;
85
- castingType: SpellCastingType;
86
- magicWords: string;
87
- manaCost: number;
88
- castingAnimationKey: string;
89
- targetHitAnimationKey: string;
90
- projectileAnimationKey: string;
91
- minLevelRequired: number;
92
- minMagicLevelRequired: number;
93
- cooldown: number;
94
- requiredItem?: MagicsBlueprint;
95
- characterClass?: CharacterClass[];
96
- attribute?: BasicAttribute | CombatSkill | CraftingSkill | CharacterAttributes;
97
- maxDistanceGrid?: number;
98
- usableEffect: (character: any, target?: any) => Promise<boolean> | Promise<void> | void | boolean;
99
- }
1
+ import { CharacterClass } from "./character.types";
2
+ import { EntityType } from "./entity.types";
3
+ import { SpellCastingType } from "./item.types";
4
+ import { BasicAttribute, CharacterAttributes, CombatSkill, CraftingSkill } from "./skills.types";
5
+ export interface IRawSpell {
6
+ key: string;
7
+ name: string;
8
+ description: string;
9
+ magicWords: string;
10
+ manaCost: number;
11
+ minMagicLevelRequired: number;
12
+ requiredItem?: string;
13
+ }
14
+ export interface ISpellRead {
15
+ magicLevel: number;
16
+ spells: IRawSpell[];
17
+ }
18
+ export interface ISpellCast {
19
+ magicWords: string;
20
+ targetId?: string;
21
+ targetType?: EntityType;
22
+ }
23
+ export declare enum SpellSocketEvents {
24
+ LearnedSpellsRead = "LearnedSpellsRead",
25
+ CastSpell = "CastSpell",
26
+ IdentifyTarget = "IdentifyTarget",
27
+ SpellDetails = "SpellDetails",
28
+ LearnedSpells = "LearnedSpells",
29
+ SpellCooldownsRead = "SpellCooldownsRead"
30
+ }
31
+ export declare enum SpellsBlueprint {
32
+ SelfHealingSpell = "self-healing-spell",
33
+ FoodCreationSpell = "food-creation-spell",
34
+ ArrowCreationSpell = "arrow-creation-spell",
35
+ BoltCreationSpell = "bolt-creation-spell",
36
+ BlankRuneCreationSpell = "blank-rune-creation-spell",
37
+ SelfHasteSpell = "self-haste-spell",
38
+ FireRuneCreationSpell = "fire-rune-creation-spell",
39
+ HealRuneCreationSpell = "healing-rune-creation-spell",
40
+ PoisonRuneCreationSpell = "poison-rune-creation-spell",
41
+ DarkRuneCreationSpell = "dark-rune-creation-spell",
42
+ GreaterHealingSpell = "greater-healing-spell",
43
+ EnergyBoltRuneCreationSpell = "energy-bolt-rune-creation-spell",
44
+ FireBoltRuneCreationSpell = "fire-bolt-rune-creation-spell",
45
+ FireBoltCreationSpell = "fire-bolt-creation-spell",
46
+ PoisonArrowCreationSpell = "poison-arrow-creation-spell",
47
+ CorruptionRuneCreationSpell = "corruption-rune-creation-spell",
48
+ SpellDivineProtection = "spell-divine-protection",
49
+ SpellPhysicalShield = "spell-physical-shield",
50
+ SpellEagleEyes = "spell-eagle-eyes",
51
+ ThunderRuneCreationSpell = "thunder-rune-creation-spell",
52
+ WarriorStunTarget = "warrior-stun-target",
53
+ RogueStealth = "rogue-stealth-spell",
54
+ BerserkerBloodthirst = "berserker-bloodthirst",
55
+ RogueExecution = "rogue-execution",
56
+ ManaRegenSpell = "auto-mana-regen",
57
+ HealthRegenSell = "auto-health-regen",
58
+ ManaShield = "mana-shield",
59
+ FortifyDefense = "fortify-defense",
60
+ BerserkerExecution = "berserker-execution",
61
+ HunterQuickFire = "hunter-quick-fire",
62
+ BerserkerFrenzy = "berserker-frenzy",
63
+ DruidShapeshift = "druid-shapeshift",
64
+ BerserkerRage = "berserker-rage",
65
+ Focus = "focus",
66
+ PowerStrike = "power-strike",
67
+ CurseOfWeakness = "curse-of-weakness",
68
+ EntanglingRoots = "entangling-roots",
69
+ SpellPolymorph = "spell-polymorph"
70
+ }
71
+ export declare enum MagicsBlueprint {
72
+ Rune = "rune",
73
+ DarkRune = "dark-rune",
74
+ FireRune = "fire-rune",
75
+ HealRune = "heal-rune",
76
+ PoisonRune = "poison-rune",
77
+ ThunderRune = "thunder-rune",
78
+ EnergyBoltRune = "energy-bolt-rune",
79
+ FireBoltRune = "fire-bolt-rune",
80
+ CorruptionRune = "corruption-rune"
81
+ }
82
+ export interface ISpell {
83
+ key: SpellsBlueprint;
84
+ name: string;
85
+ description: string;
86
+ castingType: SpellCastingType;
87
+ magicWords: string;
88
+ manaCost: number;
89
+ castingAnimationKey: string;
90
+ targetHitAnimationKey: string;
91
+ projectileAnimationKey: string;
92
+ minLevelRequired: number;
93
+ minMagicLevelRequired: number;
94
+ cooldown: number;
95
+ requiredItem?: MagicsBlueprint;
96
+ characterClass?: CharacterClass[];
97
+ attribute?: BasicAttribute | CombatSkill | CraftingSkill | CharacterAttributes;
98
+ maxDistanceGrid?: number;
99
+ usableEffect: (character: any, target?: any) => Promise<boolean> | Promise<void> | void | boolean;
100
+ }
100
101
  //# sourceMappingURL=spell.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spell.types.d.ts","sourceRoot":"","sources":["../../src/types/spell.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjG,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,oBAAY,iBAAiB;IAC3B,iBAAiB,sBAAsB;IACvC,SAAS,cAAc;IACvB,cAAc,mBAAmB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AAe;IACzB,IAAI,SAAS;IACb,QAAQ,cAAc;IACtB,QAAQ,cAAc;IACtB,QAAQ,cAAc;IACtB,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,cAAc,qBAAqB;IACnC,YAAY,mBAAmB;IAC/B,cAAc,oBAAoB;CACnC;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,eAAe,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,aAAa,GAAG,mBAAmB,CAAC;IAC/E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,CAAC,SAAS,KAAA,EAAE,MAAM,CAAC,KAAA,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC;CACzF"}
@@ -1,65 +1,66 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MagicsBlueprint = exports.SpellsBlueprint = exports.SpellSocketEvents = void 0;
4
- var SpellSocketEvents;
5
- (function (SpellSocketEvents) {
6
- SpellSocketEvents["LearnedSpellsRead"] = "LearnedSpellsRead";
7
- SpellSocketEvents["CastSpell"] = "CastSpell";
8
- SpellSocketEvents["IdentifyTarget"] = "IdentifyTarget";
9
- SpellSocketEvents["SpellDetails"] = "SpellDetails";
10
- SpellSocketEvents["LearnedSpells"] = "LearnedSpells";
11
- })(SpellSocketEvents = exports.SpellSocketEvents || (exports.SpellSocketEvents = {}));
12
- var SpellsBlueprint;
13
- (function (SpellsBlueprint) {
14
- SpellsBlueprint["SelfHealingSpell"] = "self-healing-spell";
15
- SpellsBlueprint["FoodCreationSpell"] = "food-creation-spell";
16
- SpellsBlueprint["ArrowCreationSpell"] = "arrow-creation-spell";
17
- SpellsBlueprint["BoltCreationSpell"] = "bolt-creation-spell";
18
- SpellsBlueprint["BlankRuneCreationSpell"] = "blank-rune-creation-spell";
19
- SpellsBlueprint["SelfHasteSpell"] = "self-haste-spell";
20
- SpellsBlueprint["FireRuneCreationSpell"] = "fire-rune-creation-spell";
21
- SpellsBlueprint["HealRuneCreationSpell"] = "healing-rune-creation-spell";
22
- SpellsBlueprint["PoisonRuneCreationSpell"] = "poison-rune-creation-spell";
23
- SpellsBlueprint["DarkRuneCreationSpell"] = "dark-rune-creation-spell";
24
- SpellsBlueprint["GreaterHealingSpell"] = "greater-healing-spell";
25
- SpellsBlueprint["EnergyBoltRuneCreationSpell"] = "energy-bolt-rune-creation-spell";
26
- SpellsBlueprint["FireBoltRuneCreationSpell"] = "fire-bolt-rune-creation-spell";
27
- SpellsBlueprint["FireBoltCreationSpell"] = "fire-bolt-creation-spell";
28
- SpellsBlueprint["PoisonArrowCreationSpell"] = "poison-arrow-creation-spell";
29
- SpellsBlueprint["CorruptionRuneCreationSpell"] = "corruption-rune-creation-spell";
30
- SpellsBlueprint["SpellDivineProtection"] = "spell-divine-protection";
31
- SpellsBlueprint["SpellPhysicalShield"] = "spell-physical-shield";
32
- SpellsBlueprint["SpellEagleEyes"] = "spell-eagle-eyes";
33
- SpellsBlueprint["ThunderRuneCreationSpell"] = "thunder-rune-creation-spell";
34
- SpellsBlueprint["WarriorStunTarget"] = "warrior-stun-target";
35
- SpellsBlueprint["RogueStealth"] = "rogue-stealth-spell";
36
- SpellsBlueprint["BerserkerBloodthirst"] = "berserker-bloodthirst";
37
- SpellsBlueprint["RogueExecution"] = "rogue-execution";
38
- SpellsBlueprint["ManaRegenSpell"] = "auto-mana-regen";
39
- SpellsBlueprint["HealthRegenSell"] = "auto-health-regen";
40
- SpellsBlueprint["ManaShield"] = "mana-shield";
41
- SpellsBlueprint["FortifyDefense"] = "fortify-defense";
42
- SpellsBlueprint["BerserkerExecution"] = "berserker-execution";
43
- SpellsBlueprint["HunterQuickFire"] = "hunter-quick-fire";
44
- SpellsBlueprint["BerserkerFrenzy"] = "berserker-frenzy";
45
- SpellsBlueprint["DruidShapeshift"] = "druid-shapeshift";
46
- SpellsBlueprint["BerserkerRage"] = "berserker-rage";
47
- SpellsBlueprint["Focus"] = "focus";
48
- SpellsBlueprint["PowerStrike"] = "power-strike";
49
- SpellsBlueprint["CurseOfWeakness"] = "curse-of-weakness";
50
- SpellsBlueprint["EntanglingRoots"] = "entangling-roots";
51
- SpellsBlueprint["SpellPolymorph"] = "spell-polymorph";
52
- })(SpellsBlueprint = exports.SpellsBlueprint || (exports.SpellsBlueprint = {}));
53
- var MagicsBlueprint;
54
- (function (MagicsBlueprint) {
55
- MagicsBlueprint["Rune"] = "rune";
56
- MagicsBlueprint["DarkRune"] = "dark-rune";
57
- MagicsBlueprint["FireRune"] = "fire-rune";
58
- MagicsBlueprint["HealRune"] = "heal-rune";
59
- MagicsBlueprint["PoisonRune"] = "poison-rune";
60
- MagicsBlueprint["ThunderRune"] = "thunder-rune";
61
- MagicsBlueprint["EnergyBoltRune"] = "energy-bolt-rune";
62
- MagicsBlueprint["FireBoltRune"] = "fire-bolt-rune";
63
- MagicsBlueprint["CorruptionRune"] = "corruption-rune";
64
- })(MagicsBlueprint = exports.MagicsBlueprint || (exports.MagicsBlueprint = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MagicsBlueprint = exports.SpellsBlueprint = exports.SpellSocketEvents = void 0;
4
+ var SpellSocketEvents;
5
+ (function (SpellSocketEvents) {
6
+ SpellSocketEvents["LearnedSpellsRead"] = "LearnedSpellsRead";
7
+ SpellSocketEvents["CastSpell"] = "CastSpell";
8
+ SpellSocketEvents["IdentifyTarget"] = "IdentifyTarget";
9
+ SpellSocketEvents["SpellDetails"] = "SpellDetails";
10
+ SpellSocketEvents["LearnedSpells"] = "LearnedSpells";
11
+ SpellSocketEvents["SpellCooldownsRead"] = "SpellCooldownsRead";
12
+ })(SpellSocketEvents = exports.SpellSocketEvents || (exports.SpellSocketEvents = {}));
13
+ var SpellsBlueprint;
14
+ (function (SpellsBlueprint) {
15
+ SpellsBlueprint["SelfHealingSpell"] = "self-healing-spell";
16
+ SpellsBlueprint["FoodCreationSpell"] = "food-creation-spell";
17
+ SpellsBlueprint["ArrowCreationSpell"] = "arrow-creation-spell";
18
+ SpellsBlueprint["BoltCreationSpell"] = "bolt-creation-spell";
19
+ SpellsBlueprint["BlankRuneCreationSpell"] = "blank-rune-creation-spell";
20
+ SpellsBlueprint["SelfHasteSpell"] = "self-haste-spell";
21
+ SpellsBlueprint["FireRuneCreationSpell"] = "fire-rune-creation-spell";
22
+ SpellsBlueprint["HealRuneCreationSpell"] = "healing-rune-creation-spell";
23
+ SpellsBlueprint["PoisonRuneCreationSpell"] = "poison-rune-creation-spell";
24
+ SpellsBlueprint["DarkRuneCreationSpell"] = "dark-rune-creation-spell";
25
+ SpellsBlueprint["GreaterHealingSpell"] = "greater-healing-spell";
26
+ SpellsBlueprint["EnergyBoltRuneCreationSpell"] = "energy-bolt-rune-creation-spell";
27
+ SpellsBlueprint["FireBoltRuneCreationSpell"] = "fire-bolt-rune-creation-spell";
28
+ SpellsBlueprint["FireBoltCreationSpell"] = "fire-bolt-creation-spell";
29
+ SpellsBlueprint["PoisonArrowCreationSpell"] = "poison-arrow-creation-spell";
30
+ SpellsBlueprint["CorruptionRuneCreationSpell"] = "corruption-rune-creation-spell";
31
+ SpellsBlueprint["SpellDivineProtection"] = "spell-divine-protection";
32
+ SpellsBlueprint["SpellPhysicalShield"] = "spell-physical-shield";
33
+ SpellsBlueprint["SpellEagleEyes"] = "spell-eagle-eyes";
34
+ SpellsBlueprint["ThunderRuneCreationSpell"] = "thunder-rune-creation-spell";
35
+ SpellsBlueprint["WarriorStunTarget"] = "warrior-stun-target";
36
+ SpellsBlueprint["RogueStealth"] = "rogue-stealth-spell";
37
+ SpellsBlueprint["BerserkerBloodthirst"] = "berserker-bloodthirst";
38
+ SpellsBlueprint["RogueExecution"] = "rogue-execution";
39
+ SpellsBlueprint["ManaRegenSpell"] = "auto-mana-regen";
40
+ SpellsBlueprint["HealthRegenSell"] = "auto-health-regen";
41
+ SpellsBlueprint["ManaShield"] = "mana-shield";
42
+ SpellsBlueprint["FortifyDefense"] = "fortify-defense";
43
+ SpellsBlueprint["BerserkerExecution"] = "berserker-execution";
44
+ SpellsBlueprint["HunterQuickFire"] = "hunter-quick-fire";
45
+ SpellsBlueprint["BerserkerFrenzy"] = "berserker-frenzy";
46
+ SpellsBlueprint["DruidShapeshift"] = "druid-shapeshift";
47
+ SpellsBlueprint["BerserkerRage"] = "berserker-rage";
48
+ SpellsBlueprint["Focus"] = "focus";
49
+ SpellsBlueprint["PowerStrike"] = "power-strike";
50
+ SpellsBlueprint["CurseOfWeakness"] = "curse-of-weakness";
51
+ SpellsBlueprint["EntanglingRoots"] = "entangling-roots";
52
+ SpellsBlueprint["SpellPolymorph"] = "spell-polymorph";
53
+ })(SpellsBlueprint = exports.SpellsBlueprint || (exports.SpellsBlueprint = {}));
54
+ var MagicsBlueprint;
55
+ (function (MagicsBlueprint) {
56
+ MagicsBlueprint["Rune"] = "rune";
57
+ MagicsBlueprint["DarkRune"] = "dark-rune";
58
+ MagicsBlueprint["FireRune"] = "fire-rune";
59
+ MagicsBlueprint["HealRune"] = "heal-rune";
60
+ MagicsBlueprint["PoisonRune"] = "poison-rune";
61
+ MagicsBlueprint["ThunderRune"] = "thunder-rune";
62
+ MagicsBlueprint["EnergyBoltRune"] = "energy-bolt-rune";
63
+ MagicsBlueprint["FireBoltRune"] = "fire-bolt-rune";
64
+ MagicsBlueprint["CorruptionRune"] = "corruption-rune";
65
+ })(MagicsBlueprint = exports.MagicsBlueprint || (exports.MagicsBlueprint = {}));
65
66
  //# sourceMappingURL=spell.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spell.types.js","sourceRoot":"","sources":["../../src/types/spell.types.ts"],"names":[],"mappings":";;;AA0BA,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,4DAAuC,CAAA;IACvC,4CAAuB,CAAA;IACvB,sDAAiC,CAAA;IACjC,kDAA6B,CAAA;IAC7B,oDAA+B,CAAA;AACjC,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED,IAAY,eAuCX;AAvCD,WAAY,eAAe;IACzB,0DAAuC,CAAA;IACvC,4DAAyC,CAAA;IACzC,8DAA2C,CAAA;IAC3C,4DAAyC,CAAA;IACzC,uEAAoD,CAAA;IACpD,sDAAmC,CAAA;IACnC,qEAAkD,CAAA;IAClD,wEAAqD,CAAA;IACrD,yEAAsD,CAAA;IACtD,qEAAkD,CAAA;IAClD,gEAA6C,CAAA;IAC7C,kFAA+D,CAAA;IAC/D,8EAA2D,CAAA;IAC3D,qEAAkD,CAAA;IAClD,2EAAwD,CAAA;IACxD,iFAA8D,CAAA;IAC9D,oEAAiD,CAAA;IACjD,gEAA6C,CAAA;IAC7C,sDAAmC,CAAA;IACnC,2EAAwD,CAAA;IACxD,4DAAyC,CAAA;IACzC,uDAAoC,CAAA;IACpC,iEAA8C,CAAA;IAC9C,qDAAkC,CAAA;IAClC,qDAAkC,CAAA;IAClC,wDAAqC,CAAA;IACrC,6CAA0B,CAAA;IAC1B,qDAAkC,CAAA;IAClC,6DAA0C,CAAA;IAC1C,wDAAqC,CAAA;IACrC,uDAAoC,CAAA;IACpC,uDAAoC,CAAA;IACpC,mDAAgC,CAAA;IAChC,kCAAe,CAAA;IACf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8C,CAAA;IAC9C,qDAAkC,CAAA;IAClC,qDAAkC,CAAA;IAClC,wDAAqC,CAAA;IACrC,6CAA0B,CAAA;IAC1B,qDAAkC,CAAA;IAClC,6DAA0C,CAAA;IAC1C,wDAAqC,CAAA;IACrC,uDAAoC,CAAA;IACpC,uDAAoC,CAAA;IACpC,mDAAgC,CAAA;IAChC,kCAAe,CAAA;IACf,+CAA4B,CAAA;IAC5B,wDAAqC,CAAA;IACrC,uDAAoC,CAAA;IACpC,qDAAkC,CAAA;AACpC,CAAC,EAvCW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAuC1B;AAED,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,yCAAsB,CAAA;IACtB,yCAAsB,CAAA;IACtB,yCAAsB,CAAA;IACtB,6CAA0B,CAAA;IAC1B,+CAA4B,CAAA;IAC5B,sDAAmC,CAAA;IACnC,kDAA+B,CAAA;IAC/B,qDAAkC,CAAA;AACpC,CAAC,EAVW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAU1B"}
@@ -1,120 +1,120 @@
1
- export interface ITiled {
2
- compressionlevel: number;
3
- height: number;
4
- infinite: boolean;
5
- layers: ITiledLayer[];
6
- nextlayerid: number;
7
- nextobjectid: number;
8
- orientation: string;
9
- renderorder: string;
10
- tiledversion: string;
11
- tileheight: number;
12
- tilesets: ITileset[];
13
- tilewidth: number;
14
- type: string;
15
- version: string;
16
- width: number;
17
- }
18
- export interface ITiledLayer {
19
- chunks: ITiledChunk[];
20
- height: number;
21
- id: number;
22
- name: string;
23
- opacity: number;
24
- properties: ILayerProperty[];
25
- startx: number;
26
- starty: number;
27
- type: string;
28
- visible: boolean;
29
- width: number;
30
- x: number;
31
- y: number;
32
- objects?: ITiledObject[];
33
- }
34
- export interface ITiledObject {
35
- height: number;
36
- id: number;
37
- name: string;
38
- properties: ITiledObjectProperty[];
39
- rotation: number;
40
- type: string;
41
- visible: boolean;
42
- width: number;
43
- x: number;
44
- y: number;
45
- }
46
- export interface ITiledObjectProperty {
47
- name: string;
48
- type: string;
49
- value: string;
50
- }
51
- export interface ITiledChunk {
52
- data: number[];
53
- height: number;
54
- width: number;
55
- x: number;
56
- y: number;
57
- }
58
- export interface ILayerProperty {
59
- name: string;
60
- type: string;
61
- value: string;
62
- }
63
- export interface ITileset {
64
- columns: number;
65
- firstgid: number;
66
- image: string;
67
- imageheight: number;
68
- imagewidth: number;
69
- margin: number;
70
- name: string;
71
- spacing: number;
72
- tilecount: number;
73
- tileheight: number;
74
- tiles: ITile[];
75
- tilewidth: number;
76
- wangsets: IWangset[];
77
- }
78
- export interface ITile {
79
- id: number;
80
- properties: ITileProperty[];
81
- animation?: ITileAnimation[];
82
- }
83
- export interface ITileAnimation {
84
- duration: number;
85
- tileid: number;
86
- }
87
- export interface ITileProperty {
88
- name: string;
89
- type: Type;
90
- value: boolean;
91
- }
92
- export declare enum Type {
93
- Bool = "bool"
94
- }
95
- export interface IWangset {
96
- colors: IColor[];
97
- name: string;
98
- tile: number;
99
- type: string;
100
- wangtiles: IWangTile[];
101
- }
102
- export interface IColor {
103
- color: string;
104
- name: string;
105
- probability: number;
106
- tile: number;
107
- }
108
- export interface IWangTile {
109
- tileid: number;
110
- wangid: number[];
111
- }
112
- export interface IGetTileXYResult {
113
- x: number;
114
- y: number;
115
- }
116
- export interface ITiledTile {
117
- id: number;
118
- properties: ITileProperty[];
119
- }
1
+ export interface ITiled {
2
+ compressionlevel: number;
3
+ height: number;
4
+ infinite: boolean;
5
+ layers: ITiledLayer[];
6
+ nextlayerid: number;
7
+ nextobjectid: number;
8
+ orientation: string;
9
+ renderorder: string;
10
+ tiledversion: string;
11
+ tileheight: number;
12
+ tilesets: ITileset[];
13
+ tilewidth: number;
14
+ type: string;
15
+ version: string;
16
+ width: number;
17
+ }
18
+ export interface ITiledLayer {
19
+ chunks: ITiledChunk[];
20
+ height: number;
21
+ id: number;
22
+ name: string;
23
+ opacity: number;
24
+ properties: ILayerProperty[];
25
+ startx: number;
26
+ starty: number;
27
+ type: string;
28
+ visible: boolean;
29
+ width: number;
30
+ x: number;
31
+ y: number;
32
+ objects?: ITiledObject[];
33
+ }
34
+ export interface ITiledObject {
35
+ height: number;
36
+ id: number;
37
+ name: string;
38
+ properties: ITiledObjectProperty[];
39
+ rotation: number;
40
+ type: string;
41
+ visible: boolean;
42
+ width: number;
43
+ x: number;
44
+ y: number;
45
+ }
46
+ export interface ITiledObjectProperty {
47
+ name: string;
48
+ type: string;
49
+ value: string;
50
+ }
51
+ export interface ITiledChunk {
52
+ data: number[];
53
+ height: number;
54
+ width: number;
55
+ x: number;
56
+ y: number;
57
+ }
58
+ export interface ILayerProperty {
59
+ name: string;
60
+ type: string;
61
+ value: string;
62
+ }
63
+ export interface ITileset {
64
+ columns: number;
65
+ firstgid: number;
66
+ image: string;
67
+ imageheight: number;
68
+ imagewidth: number;
69
+ margin: number;
70
+ name: string;
71
+ spacing: number;
72
+ tilecount: number;
73
+ tileheight: number;
74
+ tiles: ITile[];
75
+ tilewidth: number;
76
+ wangsets: IWangset[];
77
+ }
78
+ export interface ITile {
79
+ id: number;
80
+ properties: ITileProperty[];
81
+ animation?: ITileAnimation[];
82
+ }
83
+ export interface ITileAnimation {
84
+ duration: number;
85
+ tileid: number;
86
+ }
87
+ export interface ITileProperty {
88
+ name: string;
89
+ type: Type;
90
+ value: boolean;
91
+ }
92
+ export declare enum Type {
93
+ Bool = "bool"
94
+ }
95
+ export interface IWangset {
96
+ colors: IColor[];
97
+ name: string;
98
+ tile: number;
99
+ type: string;
100
+ wangtiles: IWangTile[];
101
+ }
102
+ export interface IColor {
103
+ color: string;
104
+ name: string;
105
+ probability: number;
106
+ tile: number;
107
+ }
108
+ export interface IWangTile {
109
+ tileid: number;
110
+ wangid: number[];
111
+ }
112
+ export interface IGetTileXYResult {
113
+ x: number;
114
+ y: number;
115
+ }
116
+ export interface ITiledTile {
117
+ id: number;
118
+ properties: ITileProperty[];
119
+ }
120
120
  //# sourceMappingURL=tiled.types.d.ts.map
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Type = void 0;
4
- var Type;
5
- (function (Type) {
6
- Type["Bool"] = "bool";
7
- })(Type = exports.Type || (exports.Type = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Type = void 0;
4
+ var Type;
5
+ (function (Type) {
6
+ Type["Bool"] = "bool";
7
+ })(Type = exports.Type || (exports.Type = {}));
8
8
  //# sourceMappingURL=tiled.types.js.map