@rpg-engine/shared 0.3.28 → 0.3.31

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 (121) hide show
  1. package/README.md +29 -29
  2. package/dist/constants/date.constants.d.ts +2 -2
  3. package/dist/constants/date.constants.js +5 -5
  4. package/dist/constants/npc.constants.d.ts +1 -1
  5. package/dist/constants/npc.constants.js +4 -4
  6. package/dist/constants/socket.constants.d.ts +2 -2
  7. package/dist/constants/socket.constants.js +6 -6
  8. package/dist/constants/world.constants.d.ts +10 -10
  9. package/dist/constants/world.constants.js +13 -13
  10. package/dist/helpers/skillHelpers.d.ts +4 -4
  11. package/dist/helpers/skillHelpers.js +25 -25
  12. package/dist/index.d.ts +39 -39
  13. package/dist/index.js +55 -55
  14. package/dist/libs/GridHelper.d.ts +11 -11
  15. package/dist/libs/GridHelper.js +37 -37
  16. package/dist/libs/MathHelper.d.ts +16 -16
  17. package/dist/libs/MathHelper.js +14 -14
  18. package/dist/libs/SocketHelper.d.ts +2 -2
  19. package/dist/libs/SocketHelper.js +14 -14
  20. package/dist/libs/TextHelper.d.ts +7 -7
  21. package/dist/libs/TextHelper.js +21 -21
  22. package/dist/libs/TypeHelper.d.ts +3 -3
  23. package/dist/libs/TypeHelper.js +16 -16
  24. package/dist/translations/app-rate.lang.json +38 -38
  25. package/dist/translations/assets.lang.json +82 -82
  26. package/dist/translations/auth.lang.json +182 -182
  27. package/dist/translations/email.lang.json +70 -70
  28. package/dist/translations/error.lang.json +18 -18
  29. package/dist/translations/form.lang.json +94 -94
  30. package/dist/translations/global.lang.json +90 -90
  31. package/dist/translations/logs.lang.json +6 -6
  32. package/dist/translations/onboarding.lang.d.ts +10 -10
  33. package/dist/translations/onboarding.lang.js +21 -21
  34. package/dist/translations/onboarding.lang.json +50 -50
  35. package/dist/translations/order.lang.json +90 -90
  36. package/dist/translations/search.lang.json +50 -50
  37. package/dist/translations/settings.lang.json +14 -14
  38. package/dist/translations/tabs.lang.json +22 -22
  39. package/dist/translations/users.lang.json +22 -22
  40. package/dist/translations/validation.lang.json +86 -86
  41. package/dist/types/animation.types.d.ts +16 -16
  42. package/dist/types/animation.types.js +2 -2
  43. package/dist/types/api.types.d.ts +21 -21
  44. package/dist/types/api.types.js +20 -20
  45. package/dist/types/asset.types.d.ts +6 -6
  46. package/dist/types/asset.types.js +2 -2
  47. package/dist/types/auth.types.d.ts +7 -7
  48. package/dist/types/auth.types.js +2 -2
  49. package/dist/types/battle.types.d.ts +33 -33
  50. package/dist/types/battle.types.js +17 -17
  51. package/dist/types/character.types.d.ts +134 -134
  52. package/dist/types/character.types.js +29 -29
  53. package/dist/types/chat.types.d.ts +30 -30
  54. package/dist/types/chat.types.js +14 -14
  55. package/dist/types/device.types.d.ts +24 -24
  56. package/dist/types/device.types.js +7 -7
  57. package/dist/types/entity.types.d.ts +20 -20
  58. package/dist/types/entity.types.js +14 -14
  59. package/dist/types/env.types.d.ts +5 -5
  60. package/dist/types/env.types.js +9 -9
  61. package/dist/types/equipment.types.d.ts +16 -16
  62. package/dist/types/equipment.types.js +2 -2
  63. package/dist/types/googleOAuth.types.d.ts +47 -47
  64. package/dist/types/googleOAuth.types.js +2 -2
  65. package/dist/types/item.types.d.ts +156 -150
  66. package/dist/types/item.types.d.ts.map +1 -1
  67. package/dist/types/item.types.js +88 -75
  68. package/dist/types/item.types.js.map +1 -1
  69. package/dist/types/itemContainer.types.d.ts +52 -52
  70. package/dist/types/itemContainer.types.js +2 -2
  71. package/dist/types/maps.types.d.ts +17 -17
  72. package/dist/types/maps.types.js +10 -10
  73. package/dist/types/notification.types.d.ts +14 -14
  74. package/dist/types/notification.types.js +2 -2
  75. package/dist/types/npc.types.d.ts +104 -104
  76. package/dist/types/npc.types.js +35 -35
  77. package/dist/types/pagination.types.d.ts +13 -13
  78. package/dist/types/pagination.types.js +2 -2
  79. package/dist/types/places.types.d.ts +16 -16
  80. package/dist/types/places.types.js +9 -9
  81. package/dist/types/preloadScene.types.d.ts +4 -4
  82. package/dist/types/preloadScene.types.js +7 -7
  83. package/dist/types/resource.types.d.ts +5 -5
  84. package/dist/types/resource.types.js +2 -2
  85. package/dist/types/scene.types.d.ts +8 -8
  86. package/dist/types/scene.types.js +8 -8
  87. package/dist/types/skills.types.d.ts +40 -39
  88. package/dist/types/skills.types.d.ts.map +1 -1
  89. package/dist/types/skills.types.js +12 -12
  90. package/dist/types/skills.types.js.map +1 -1
  91. package/dist/types/socket.types.d.ts +17 -17
  92. package/dist/types/socket.types.js +8 -8
  93. package/dist/types/tiled.types.d.ts +107 -107
  94. package/dist/types/tiled.types.js +13 -13
  95. package/dist/types/translation.types.d.ts +5 -5
  96. package/dist/types/translation.types.js +8 -8
  97. package/dist/types/ui.types.d.ts +8 -8
  98. package/dist/types/ui.types.js +7 -7
  99. package/dist/types/user.types.d.ts +101 -101
  100. package/dist/types/user.types.js +38 -38
  101. package/dist/types/validation.types.d.ts +9 -9
  102. package/dist/types/validation.types.js +2 -2
  103. package/dist/types/view.types.d.ts +14 -14
  104. package/dist/types/view.types.js +7 -7
  105. package/package.json +41 -41
  106. package/dist/libs/MapZipHelper.d.ts +0 -2
  107. package/dist/libs/MapZipHelper.d.ts.map +0 -1
  108. package/dist/libs/MapZipHelper.js +0 -27
  109. package/dist/libs/MapZipHelper.js.map +0 -1
  110. package/dist/types/container.types.d.ts +0 -9
  111. package/dist/types/container.types.d.ts.map +0 -1
  112. package/dist/types/container.types.js +0 -3
  113. package/dist/types/container.types.js.map +0 -1
  114. package/dist/types/npcMetadata.types.d.ts +0 -7
  115. package/dist/types/npcMetadata.types.d.ts.map +0 -1
  116. package/dist/types/npcMetadata.types.js +0 -20
  117. package/dist/types/npcMetadata.types.js.map +0 -1
  118. package/dist/types/player.types.d.ts +0 -49
  119. package/dist/types/player.types.d.ts.map +0 -1
  120. package/dist/types/player.types.js +0 -14
  121. package/dist/types/player.types.js.map +0 -1
@@ -1,36 +1,36 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NPCSocketEvents = exports.NPCMovementType = exports.NPCPathOrientation = exports.NPCAlignment = exports.NPCTargetType = void 0;
4
- var NPCTargetType;
5
- (function (NPCTargetType) {
6
- NPCTargetType["Default"] = "Default";
7
- NPCTargetType["Talking"] = "Talking";
8
- })(NPCTargetType = exports.NPCTargetType || (exports.NPCTargetType = {}));
9
- var NPCAlignment;
10
- (function (NPCAlignment) {
11
- NPCAlignment["Friendly"] = "Friendly";
12
- NPCAlignment["Neutral"] = "Neutral";
13
- NPCAlignment["Hostile"] = "Hostile";
14
- })(NPCAlignment = exports.NPCAlignment || (exports.NPCAlignment = {}));
15
- var NPCPathOrientation;
16
- (function (NPCPathOrientation) {
17
- NPCPathOrientation["Forward"] = "Forward";
18
- NPCPathOrientation["Backward"] = "Backward";
19
- })(NPCPathOrientation = exports.NPCPathOrientation || (exports.NPCPathOrientation = {}));
20
- var NPCMovementType;
21
- (function (NPCMovementType) {
22
- NPCMovementType["Random"] = "Random";
23
- NPCMovementType["FixedPath"] = "FixedPath";
24
- NPCMovementType["Stopped"] = "Stopped";
25
- NPCMovementType["MoveAway"] = "MoveAway";
26
- NPCMovementType["MoveTowards"] = "MoveTowards";
27
- })(NPCMovementType = exports.NPCMovementType || (exports.NPCMovementType = {}));
28
- var NPCSocketEvents;
29
- (function (NPCSocketEvents) {
30
- NPCSocketEvents["NPCDataUpdate"] = "NPCDataUpdate";
31
- NPCSocketEvents["NPCPositionUpdate"] = "NPCPositionUpdate";
32
- NPCSocketEvents["NPCTalkToNPC"] = "NPCTalkToNPC";
33
- NPCSocketEvents["NPCStartDialogNPC"] = "NPCStartDialogNPC";
34
- NPCSocketEvents["NPCStopDialogNPC"] = "NPCStopDialogNPC";
35
- })(NPCSocketEvents = exports.NPCSocketEvents || (exports.NPCSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NPCSocketEvents = exports.NPCMovementType = exports.NPCPathOrientation = exports.NPCAlignment = exports.NPCTargetType = void 0;
4
+ var NPCTargetType;
5
+ (function (NPCTargetType) {
6
+ NPCTargetType["Default"] = "Default";
7
+ NPCTargetType["Talking"] = "Talking";
8
+ })(NPCTargetType = exports.NPCTargetType || (exports.NPCTargetType = {}));
9
+ var NPCAlignment;
10
+ (function (NPCAlignment) {
11
+ NPCAlignment["Friendly"] = "Friendly";
12
+ NPCAlignment["Neutral"] = "Neutral";
13
+ NPCAlignment["Hostile"] = "Hostile";
14
+ })(NPCAlignment = exports.NPCAlignment || (exports.NPCAlignment = {}));
15
+ var NPCPathOrientation;
16
+ (function (NPCPathOrientation) {
17
+ NPCPathOrientation["Forward"] = "Forward";
18
+ NPCPathOrientation["Backward"] = "Backward";
19
+ })(NPCPathOrientation = exports.NPCPathOrientation || (exports.NPCPathOrientation = {}));
20
+ var NPCMovementType;
21
+ (function (NPCMovementType) {
22
+ NPCMovementType["Random"] = "Random";
23
+ NPCMovementType["FixedPath"] = "FixedPath";
24
+ NPCMovementType["Stopped"] = "Stopped";
25
+ NPCMovementType["MoveAway"] = "MoveAway";
26
+ NPCMovementType["MoveTowards"] = "MoveTowards";
27
+ })(NPCMovementType = exports.NPCMovementType || (exports.NPCMovementType = {}));
28
+ var NPCSocketEvents;
29
+ (function (NPCSocketEvents) {
30
+ NPCSocketEvents["NPCDataUpdate"] = "NPCDataUpdate";
31
+ NPCSocketEvents["NPCPositionUpdate"] = "NPCPositionUpdate";
32
+ NPCSocketEvents["NPCTalkToNPC"] = "NPCTalkToNPC";
33
+ NPCSocketEvents["NPCStartDialogNPC"] = "NPCStartDialogNPC";
34
+ NPCSocketEvents["NPCStopDialogNPC"] = "NPCStopDialogNPC";
35
+ })(NPCSocketEvents = exports.NPCSocketEvents || (exports.NPCSocketEvents = {}));
36
36
  //# sourceMappingURL=npc.types.js.map
@@ -1,14 +1,14 @@
1
- export interface IPaginationResponse<T> {
2
- docs: T[];
3
- totalDocs: number;
4
- offset: number;
5
- limit: number;
6
- totalPages: number;
7
- page: number;
8
- pagingCounter: number;
9
- hasPrevPage: boolean;
10
- hasNextPage: boolean;
11
- prevPage: number | null;
12
- nextPage: number | null;
13
- }
1
+ export interface IPaginationResponse<T> {
2
+ docs: T[];
3
+ totalDocs: number;
4
+ offset: number;
5
+ limit: number;
6
+ totalPages: number;
7
+ page: number;
8
+ pagingCounter: number;
9
+ hasPrevPage: boolean;
10
+ hasNextPage: boolean;
11
+ prevPage: number | null;
12
+ nextPage: number | null;
13
+ }
14
14
  //# sourceMappingURL=pagination.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=pagination.types.js.map
@@ -1,17 +1,17 @@
1
- export declare enum Countries {
2
- US = "US",
3
- Brazil = "Brazil",
4
- Global = "Global"
5
- }
6
- export interface ICountry {
7
- name: string;
8
- code: string;
9
- }
10
- export interface ICountryCity {
11
- country: {
12
- name: string;
13
- code: string;
14
- };
15
- cities: string[];
16
- }
1
+ export declare enum Countries {
2
+ US = "US",
3
+ Brazil = "Brazil",
4
+ Global = "Global"
5
+ }
6
+ export interface ICountry {
7
+ name: string;
8
+ code: string;
9
+ }
10
+ export interface ICountryCity {
11
+ country: {
12
+ name: string;
13
+ code: string;
14
+ };
15
+ cities: string[];
16
+ }
17
17
  //# sourceMappingURL=places.types.d.ts.map
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Countries = void 0;
4
- var Countries;
5
- (function (Countries) {
6
- Countries["US"] = "US";
7
- Countries["Brazil"] = "Brazil";
8
- Countries["Global"] = "Global";
9
- })(Countries = exports.Countries || (exports.Countries = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Countries = void 0;
4
+ var Countries;
5
+ (function (Countries) {
6
+ Countries["US"] = "US";
7
+ Countries["Brazil"] = "Brazil";
8
+ Countries["Global"] = "Global";
9
+ })(Countries = exports.Countries || (exports.Countries = {}));
10
10
  //# sourceMappingURL=places.types.js.map
@@ -1,5 +1,5 @@
1
- export declare const PreloadSceneData: {
2
- key: string;
3
- assets: {};
4
- };
1
+ export declare const PreloadSceneData: {
2
+ key: string;
3
+ assets: {};
4
+ };
5
5
  //# sourceMappingURL=preloadScene.types.d.ts.map
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreloadSceneData = void 0;
4
- exports.PreloadSceneData = {
5
- key: "PreloadScene",
6
- assets: {},
7
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreloadSceneData = void 0;
4
+ exports.PreloadSceneData = {
5
+ key: "PreloadScene",
6
+ assets: {},
7
+ };
8
8
  //# sourceMappingURL=preloadScene.types.js.map
@@ -1,6 +1,6 @@
1
- export interface IResource {
2
- _id: string;
3
- createdAt?: string;
4
- updatedAt?: string;
5
- }
1
+ export interface IResource {
2
+ _id: string;
3
+ createdAt?: string;
4
+ updatedAt?: string;
5
+ }
6
6
  //# sourceMappingURL=resource.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=resource.types.js.map
@@ -1,9 +1,9 @@
1
- export interface ISceneData {
2
- key: string;
3
- }
4
- export declare const ScenesMetaData: {
5
- MainScene: {
6
- map: string;
7
- };
8
- };
1
+ export interface ISceneData {
2
+ key: string;
3
+ }
4
+ export declare const ScenesMetaData: {
5
+ MainScene: {
6
+ map: string;
7
+ };
8
+ };
9
9
  //# sourceMappingURL=scene.types.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScenesMetaData = void 0;
4
- exports.ScenesMetaData = {
5
- MainScene: {
6
- map: "another_map",
7
- },
8
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScenesMetaData = void 0;
4
+ exports.ScenesMetaData = {
5
+ MainScene: {
6
+ map: "another_map",
7
+ },
8
+ };
9
9
  //# sourceMappingURL=scene.types.js.map
@@ -1,40 +1,41 @@
1
- import { IResource } from "./resource.types";
2
- export interface ISkillDetails {
3
- type: SkillType;
4
- level: number;
5
- skillPoints: number;
6
- skillPointsToNextLevel: number;
7
- }
8
- export interface ISkill extends IResource {
9
- owner: string;
10
- level: number;
11
- xpGainRate: number;
12
- experience: number;
13
- xpToNextLevel: number;
14
- stamina: ISkillDetails;
15
- magic: ISkillDetails;
16
- magicResistance: ISkillDetails;
17
- strength: ISkillDetails;
18
- resistance: ISkillDetails;
19
- dexterity: ISkillDetails;
20
- first: ISkillDetails;
21
- club: ISkillDetails;
22
- sword: ISkillDetails;
23
- axe: ISkillDetails;
24
- distance: ISkillDetails;
25
- shielding: ISkillDetails;
26
- fishing: ISkillDetails;
27
- mining: ISkillDetails;
28
- lumberjacking: ISkillDetails;
29
- cooking: ISkillDetails;
30
- alchemy: ISkillDetails;
31
- }
32
- export declare enum SkillType {
33
- BasicAttributes = "BasicAttributes",
34
- Combat = "Combat",
35
- Crafting = "Crafting",
36
- Gathering = "Gathering",
37
- Magic = "Magic",
38
- Misc = "Misc"
39
- }
1
+ import { IResource } from "./resource.types";
2
+ export interface ISkillDetails {
3
+ type: SkillType;
4
+ level: number;
5
+ skillPoints: number;
6
+ skillPointsToNextLevel: number;
7
+ }
8
+ export interface ISkill extends IResource {
9
+ owner: string;
10
+ level: number;
11
+ xpGainRate: number;
12
+ experience: number;
13
+ xpToNextLevel: number;
14
+ stamina: ISkillDetails;
15
+ magic: ISkillDetails;
16
+ magicResistance: ISkillDetails;
17
+ strength: ISkillDetails;
18
+ resistance: ISkillDetails;
19
+ dexterity: ISkillDetails;
20
+ first: ISkillDetails;
21
+ club: ISkillDetails;
22
+ sword: ISkillDetails;
23
+ axe: ISkillDetails;
24
+ distance: ISkillDetails;
25
+ shielding: ISkillDetails;
26
+ dagger: ISkillDetails;
27
+ fishing: ISkillDetails;
28
+ mining: ISkillDetails;
29
+ lumberjacking: ISkillDetails;
30
+ cooking: ISkillDetails;
31
+ alchemy: ISkillDetails;
32
+ }
33
+ export declare enum SkillType {
34
+ BasicAttributes = "BasicAttributes",
35
+ Combat = "Combat",
36
+ Crafting = "Crafting",
37
+ Gathering = "Gathering",
38
+ Magic = "Magic",
39
+ Misc = "Misc"
40
+ }
40
41
  //# sourceMappingURL=skills.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills.types.d.ts","sourceRoot":"","sources":["../../src/types/skills.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,MAAO,SAAQ,SAAS;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,eAAe,EAAE,aAAa,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,EAAE,aAAa,CAAC;IAC1B,SAAS,EAAE,aAAa,CAAC;IAGzB,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,aAAa,CAAC;IAGzB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,aAAa,CAAC;CAQxB;AAED,oBAAY,SAAS;IACnB,eAAe,oBAAoB;IACnC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"skills.types.d.ts","sourceRoot":"","sources":["../../src/types/skills.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,MAAO,SAAQ,SAAS;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IAGtB,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,eAAe,EAAE,aAAa,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,EAAE,aAAa,CAAC;IAC1B,SAAS,EAAE,aAAa,CAAC;IAGzB,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,aAAa,CAAC;IACzB,MAAM,EAAE,aAAa,CAAC;IAGtB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,aAAa,CAAC;CAQxB;AAED,oBAAY,SAAS;IACnB,eAAe,oBAAoB;IACnC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SkillType = void 0;
4
- var SkillType;
5
- (function (SkillType) {
6
- SkillType["BasicAttributes"] = "BasicAttributes";
7
- SkillType["Combat"] = "Combat";
8
- SkillType["Crafting"] = "Crafting";
9
- SkillType["Gathering"] = "Gathering";
10
- SkillType["Magic"] = "Magic";
11
- SkillType["Misc"] = "Misc";
12
- })(SkillType = exports.SkillType || (exports.SkillType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SkillType = void 0;
4
+ var SkillType;
5
+ (function (SkillType) {
6
+ SkillType["BasicAttributes"] = "BasicAttributes";
7
+ SkillType["Combat"] = "Combat";
8
+ SkillType["Crafting"] = "Crafting";
9
+ SkillType["Gathering"] = "Gathering";
10
+ SkillType["Magic"] = "Magic";
11
+ SkillType["Misc"] = "Misc";
12
+ })(SkillType = exports.SkillType || (exports.SkillType = {}));
13
13
  //# sourceMappingURL=skills.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills.types.js","sourceRoot":"","sources":["../../src/types/skills.types.ts"],"names":[],"mappings":";;;AA+CA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,0BAAa,CAAA;AACf,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
1
+ {"version":3,"file":"skills.types.js","sourceRoot":"","sources":["../../src/types/skills.types.ts"],"names":[],"mappings":";;;AAgDA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gDAAmC,CAAA;IACnC,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,0BAAa,CAAA;AACf,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
@@ -1,18 +1,18 @@
1
- export declare enum SocketTypes {
2
- TCP = "TCP",
3
- UDP = "UDP"
4
- }
5
- export interface ISocket {
6
- init: (socketType?: SocketTypes) => Promise<void> | void;
7
- onConnect?: (callback: any) => void;
8
- emitToUser<T>(channel: string, eventName: string, data?: T): any;
9
- emitToAllUsers<T>(eventName: string, data?: T): void;
10
- disconnect: () => void;
11
- }
12
- export interface ISocketTransmissionZone {
13
- x: number;
14
- y: number;
15
- width: number;
16
- height: number;
17
- }
1
+ export declare enum SocketTypes {
2
+ TCP = "TCP",
3
+ UDP = "UDP"
4
+ }
5
+ export interface ISocket {
6
+ init: (socketType?: SocketTypes) => Promise<void> | void;
7
+ onConnect?: (callback: any) => void;
8
+ emitToUser<T>(channel: string, eventName: string, data?: T): any;
9
+ emitToAllUsers<T>(eventName: string, data?: T): void;
10
+ disconnect: () => void;
11
+ }
12
+ export interface ISocketTransmissionZone {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ }
18
18
  //# sourceMappingURL=socket.types.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SocketTypes = void 0;
4
- var SocketTypes;
5
- (function (SocketTypes) {
6
- SocketTypes["TCP"] = "TCP";
7
- SocketTypes["UDP"] = "UDP";
8
- })(SocketTypes = exports.SocketTypes || (exports.SocketTypes = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SocketTypes = void 0;
4
+ var SocketTypes;
5
+ (function (SocketTypes) {
6
+ SocketTypes["TCP"] = "TCP";
7
+ SocketTypes["UDP"] = "UDP";
8
+ })(SocketTypes = exports.SocketTypes || (exports.SocketTypes = {}));
9
9
  //# sourceMappingURL=socket.types.js.map
@@ -1,108 +1,108 @@
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
- }
33
- export interface ITiledChunk {
34
- data: number[];
35
- height: number;
36
- width: number;
37
- x: number;
38
- y: number;
39
- }
40
- export interface ILayerProperty {
41
- name: string;
42
- type: string;
43
- value: string;
44
- }
45
- export interface ITileset {
46
- columns: number;
47
- firstgid: number;
48
- image: string;
49
- imageheight: number;
50
- imagewidth: number;
51
- margin: number;
52
- name: string;
53
- spacing: number;
54
- tilecount: number;
55
- tileheight: number;
56
- tiles: ITile[];
57
- tilewidth: number;
58
- wangsets: IWangset[];
59
- }
60
- export interface ITile {
61
- id: number;
62
- properties: ITileProperty[];
63
- animation?: ITileAnimation[];
64
- }
65
- export interface ITileAnimation {
66
- duration: number;
67
- tileid: number;
68
- }
69
- export interface ITileProperty {
70
- name: string;
71
- type: Type;
72
- value: boolean;
73
- }
74
- export declare enum Type {
75
- Bool = "bool"
76
- }
77
- export interface IWangset {
78
- colors: IColor[];
79
- name: string;
80
- tile: number;
81
- type: string;
82
- wangtiles: IWangTile[];
83
- }
84
- export interface IColor {
85
- color: string;
86
- name: string;
87
- probability: number;
88
- tile: number;
89
- }
90
- export interface IWangTile {
91
- tileid: number;
92
- wangid: number[];
93
- }
94
- export interface IGetTileXYResult {
95
- x: number;
96
- y: number;
97
- }
98
- export interface ITiledTile {
99
- id: number;
100
- properties: ITileProperty[];
101
- }
102
- export declare const TiledLayerNames: {
103
- 0: string;
104
- 1: string;
105
- 2: string;
106
- 3: string;
107
- };
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
+ }
33
+ export interface ITiledChunk {
34
+ data: number[];
35
+ height: number;
36
+ width: number;
37
+ x: number;
38
+ y: number;
39
+ }
40
+ export interface ILayerProperty {
41
+ name: string;
42
+ type: string;
43
+ value: string;
44
+ }
45
+ export interface ITileset {
46
+ columns: number;
47
+ firstgid: number;
48
+ image: string;
49
+ imageheight: number;
50
+ imagewidth: number;
51
+ margin: number;
52
+ name: string;
53
+ spacing: number;
54
+ tilecount: number;
55
+ tileheight: number;
56
+ tiles: ITile[];
57
+ tilewidth: number;
58
+ wangsets: IWangset[];
59
+ }
60
+ export interface ITile {
61
+ id: number;
62
+ properties: ITileProperty[];
63
+ animation?: ITileAnimation[];
64
+ }
65
+ export interface ITileAnimation {
66
+ duration: number;
67
+ tileid: number;
68
+ }
69
+ export interface ITileProperty {
70
+ name: string;
71
+ type: Type;
72
+ value: boolean;
73
+ }
74
+ export declare enum Type {
75
+ Bool = "bool"
76
+ }
77
+ export interface IWangset {
78
+ colors: IColor[];
79
+ name: string;
80
+ tile: number;
81
+ type: string;
82
+ wangtiles: IWangTile[];
83
+ }
84
+ export interface IColor {
85
+ color: string;
86
+ name: string;
87
+ probability: number;
88
+ tile: number;
89
+ }
90
+ export interface IWangTile {
91
+ tileid: number;
92
+ wangid: number[];
93
+ }
94
+ export interface IGetTileXYResult {
95
+ x: number;
96
+ y: number;
97
+ }
98
+ export interface ITiledTile {
99
+ id: number;
100
+ properties: ITileProperty[];
101
+ }
102
+ export declare const TiledLayerNames: {
103
+ 0: string;
104
+ 1: string;
105
+ 2: string;
106
+ 3: string;
107
+ };
108
108
  //# sourceMappingURL=tiled.types.d.ts.map