@rpg-engine/shared 0.2.28 → 0.2.30

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 (160) hide show
  1. package/package.json +1 -1
  2. package/dist/constants/npc.constants.d.ts +0 -2
  3. package/dist/constants/npc.constants.d.ts.map +0 -1
  4. package/dist/constants/npc.constants.js +0 -5
  5. package/dist/constants/npc.constants.js.map +0 -1
  6. package/dist/constants/socket.constants.d.ts +0 -3
  7. package/dist/constants/socket.constants.d.ts.map +0 -1
  8. package/dist/constants/socket.constants.js +0 -7
  9. package/dist/constants/socket.constants.js.map +0 -1
  10. package/dist/constants/world.constants.d.ts +0 -11
  11. package/dist/constants/world.constants.d.ts.map +0 -1
  12. package/dist/constants/world.constants.js +0 -14
  13. package/dist/constants/world.constants.js.map +0 -1
  14. package/dist/index.d.ts +0 -32
  15. package/dist/index.d.ts.map +0 -1
  16. package/dist/index.js +0 -48
  17. package/dist/index.js.map +0 -1
  18. package/dist/libs/GridHelper.d.ts +0 -12
  19. package/dist/libs/GridHelper.d.ts.map +0 -1
  20. package/dist/libs/GridHelper.js +0 -38
  21. package/dist/libs/GridHelper.js.map +0 -1
  22. package/dist/libs/MathHelper.d.ts +0 -17
  23. package/dist/libs/MathHelper.d.ts.map +0 -1
  24. package/dist/libs/MathHelper.js +0 -15
  25. package/dist/libs/MathHelper.js.map +0 -1
  26. package/dist/libs/SocketHelper.d.ts +0 -3
  27. package/dist/libs/SocketHelper.d.ts.map +0 -1
  28. package/dist/libs/SocketHelper.js +0 -15
  29. package/dist/libs/SocketHelper.js.map +0 -1
  30. package/dist/libs/TextHelper.d.ts +0 -8
  31. package/dist/libs/TextHelper.d.ts.map +0 -1
  32. package/dist/libs/TextHelper.js +0 -22
  33. package/dist/libs/TextHelper.js.map +0 -1
  34. package/dist/libs/TypeHelper.d.ts +0 -4
  35. package/dist/libs/TypeHelper.d.ts.map +0 -1
  36. package/dist/libs/TypeHelper.js +0 -17
  37. package/dist/libs/TypeHelper.js.map +0 -1
  38. package/dist/translations/app-rate.lang.json +0 -38
  39. package/dist/translations/assets.lang.json +0 -82
  40. package/dist/translations/auth.lang.json +0 -182
  41. package/dist/translations/email.lang.json +0 -70
  42. package/dist/translations/error.lang.json +0 -18
  43. package/dist/translations/form.lang.json +0 -94
  44. package/dist/translations/global.lang.json +0 -90
  45. package/dist/translations/logs.lang.json +0 -6
  46. package/dist/translations/onboarding.lang.d.ts +0 -11
  47. package/dist/translations/onboarding.lang.d.ts.map +0 -1
  48. package/dist/translations/onboarding.lang.js +0 -22
  49. package/dist/translations/onboarding.lang.js.map +0 -1
  50. package/dist/translations/onboarding.lang.json +0 -50
  51. package/dist/translations/order.lang.json +0 -90
  52. package/dist/translations/search.lang.json +0 -50
  53. package/dist/translations/settings.lang.json +0 -14
  54. package/dist/translations/tabs.lang.json +0 -22
  55. package/dist/translations/users.lang.json +0 -22
  56. package/dist/translations/validation.lang.json +0 -86
  57. package/dist/types/animation.types.d.ts +0 -8
  58. package/dist/types/animation.types.d.ts.map +0 -1
  59. package/dist/types/animation.types.js +0 -3
  60. package/dist/types/animation.types.js.map +0 -1
  61. package/dist/types/api.types.d.ts +0 -22
  62. package/dist/types/api.types.d.ts.map +0 -1
  63. package/dist/types/api.types.js +0 -21
  64. package/dist/types/api.types.js.map +0 -1
  65. package/dist/types/asset.types.d.ts +0 -7
  66. package/dist/types/asset.types.d.ts.map +0 -1
  67. package/dist/types/asset.types.js +0 -3
  68. package/dist/types/asset.types.js.map +0 -1
  69. package/dist/types/auth.types.d.ts +0 -8
  70. package/dist/types/auth.types.d.ts.map +0 -1
  71. package/dist/types/auth.types.js +0 -3
  72. package/dist/types/auth.types.js.map +0 -1
  73. package/dist/types/battle.types.d.ts +0 -23
  74. package/dist/types/battle.types.d.ts.map +0 -1
  75. package/dist/types/battle.types.js +0 -18
  76. package/dist/types/battle.types.js.map +0 -1
  77. package/dist/types/character.types.d.ts +0 -118
  78. package/dist/types/character.types.d.ts.map +0 -1
  79. package/dist/types/character.types.js +0 -30
  80. package/dist/types/character.types.js.map +0 -1
  81. package/dist/types/device.types.d.ts +0 -25
  82. package/dist/types/device.types.d.ts.map +0 -1
  83. package/dist/types/device.types.js +0 -8
  84. package/dist/types/device.types.js.map +0 -1
  85. package/dist/types/entity.types.d.ts +0 -13
  86. package/dist/types/entity.types.d.ts.map +0 -1
  87. package/dist/types/entity.types.js +0 -9
  88. package/dist/types/entity.types.js.map +0 -1
  89. package/dist/types/env.types.d.ts +0 -6
  90. package/dist/types/env.types.d.ts.map +0 -1
  91. package/dist/types/env.types.js +0 -10
  92. package/dist/types/env.types.js.map +0 -1
  93. package/dist/types/googleOAuth.types.d.ts +0 -48
  94. package/dist/types/googleOAuth.types.d.ts.map +0 -1
  95. package/dist/types/googleOAuth.types.js +0 -3
  96. package/dist/types/googleOAuth.types.js.map +0 -1
  97. package/dist/types/maps.types.d.ts +0 -17
  98. package/dist/types/maps.types.d.ts.map +0 -1
  99. package/dist/types/maps.types.js +0 -11
  100. package/dist/types/maps.types.js.map +0 -1
  101. package/dist/types/notification.types.d.ts +0 -15
  102. package/dist/types/notification.types.d.ts.map +0 -1
  103. package/dist/types/notification.types.js +0 -3
  104. package/dist/types/notification.types.js.map +0 -1
  105. package/dist/types/npc.types.d.ts +0 -97
  106. package/dist/types/npc.types.d.ts.map +0 -1
  107. package/dist/types/npc.types.js +0 -42
  108. package/dist/types/npc.types.js.map +0 -1
  109. package/dist/types/npcMetadata.types.d.ts +0 -7
  110. package/dist/types/npcMetadata.types.d.ts.map +0 -1
  111. package/dist/types/npcMetadata.types.js +0 -20
  112. package/dist/types/npcMetadata.types.js.map +0 -1
  113. package/dist/types/pagination.types.d.ts +0 -14
  114. package/dist/types/pagination.types.d.ts.map +0 -1
  115. package/dist/types/pagination.types.js +0 -3
  116. package/dist/types/pagination.types.js.map +0 -1
  117. package/dist/types/places.types.d.ts +0 -17
  118. package/dist/types/places.types.d.ts.map +0 -1
  119. package/dist/types/places.types.js +0 -10
  120. package/dist/types/places.types.js.map +0 -1
  121. package/dist/types/player.types.d.ts +0 -49
  122. package/dist/types/player.types.d.ts.map +0 -1
  123. package/dist/types/player.types.js +0 -14
  124. package/dist/types/player.types.js.map +0 -1
  125. package/dist/types/preloadScene.types.d.ts +0 -5
  126. package/dist/types/preloadScene.types.d.ts.map +0 -1
  127. package/dist/types/preloadScene.types.js +0 -8
  128. package/dist/types/preloadScene.types.js.map +0 -1
  129. package/dist/types/resource.types.d.ts +0 -6
  130. package/dist/types/resource.types.d.ts.map +0 -1
  131. package/dist/types/resource.types.js +0 -3
  132. package/dist/types/resource.types.js.map +0 -1
  133. package/dist/types/scene.types.d.ts +0 -9
  134. package/dist/types/scene.types.d.ts.map +0 -1
  135. package/dist/types/scene.types.js +0 -9
  136. package/dist/types/scene.types.js.map +0 -1
  137. package/dist/types/skills.types.d.ts +0 -25
  138. package/dist/types/skills.types.d.ts.map +0 -1
  139. package/dist/types/skills.types.js +0 -3
  140. package/dist/types/skills.types.js.map +0 -1
  141. package/dist/types/socket.types.d.ts +0 -18
  142. package/dist/types/socket.types.d.ts.map +0 -1
  143. package/dist/types/socket.types.js +0 -9
  144. package/dist/types/socket.types.js.map +0 -1
  145. package/dist/types/tiled.types.d.ts +0 -108
  146. package/dist/types/tiled.types.d.ts.map +0 -1
  147. package/dist/types/tiled.types.js +0 -14
  148. package/dist/types/tiled.types.js.map +0 -1
  149. package/dist/types/translation.types.d.ts +0 -6
  150. package/dist/types/translation.types.d.ts.map +0 -1
  151. package/dist/types/translation.types.js +0 -9
  152. package/dist/types/translation.types.js.map +0 -1
  153. package/dist/types/user.types.d.ts +0 -99
  154. package/dist/types/user.types.d.ts.map +0 -1
  155. package/dist/types/user.types.js +0 -39
  156. package/dist/types/user.types.js.map +0 -1
  157. package/dist/types/validation.types.d.ts +0 -10
  158. package/dist/types/validation.types.d.ts.map +0 -1
  159. package/dist/types/validation.types.js +0 -3
  160. package/dist/types/validation.types.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/shared",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "description": "> TODO: description",
5
5
  "author": "Joao Paulo Furtado <joaopaulofurtado@live.com>",
6
6
  "homepage": "",
@@ -1,2 +0,0 @@
1
- export declare const NPC_MAX_TALKING_DISTANCE_IN_GRID = 5;
2
- //# sourceMappingURL=npc.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"npc.constants.d.ts","sourceRoot":"","sources":["../../src/constants/npc.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,IAAI,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NPC_MAX_TALKING_DISTANCE_IN_GRID = void 0;
4
- exports.NPC_MAX_TALKING_DISTANCE_IN_GRID = 5;
5
- //# sourceMappingURL=npc.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"npc.constants.js","sourceRoot":"","sources":["../../src/constants/npc.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gCAAgC,GAAG,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const SOCKET_TRANSMISSION_ZONE_WIDTH: number;
2
- export declare const SOCKET_TRANSMISSION_ZONE_HEIGHT: number;
3
- //# sourceMappingURL=socket.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"socket.constants.d.ts","sourceRoot":"","sources":["../../src/constants/socket.constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,QAAkB,CAAC;AAC9D,eAAO,MAAM,+BAA+B,QAAmB,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SOCKET_TRANSMISSION_ZONE_HEIGHT = exports.SOCKET_TRANSMISSION_ZONE_WIDTH = void 0;
4
- const world_constants_1 = require("./world.constants");
5
- exports.SOCKET_TRANSMISSION_ZONE_WIDTH = world_constants_1.GRID_WIDTH * 60;
6
- exports.SOCKET_TRANSMISSION_ZONE_HEIGHT = world_constants_1.GRID_HEIGHT * 60;
7
- //# sourceMappingURL=socket.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"socket.constants.js","sourceRoot":"","sources":["../../src/constants/socket.constants.ts"],"names":[],"mappings":";;;AAAA,uDAA4D;AAE/C,QAAA,8BAA8B,GAAG,4BAAU,GAAG,EAAE,CAAC;AACjD,QAAA,+BAA+B,GAAG,6BAAW,GAAG,EAAE,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const WORLD_WIDTH = 1600;
2
- export declare const WORLD_HEIGHT = 1600;
3
- export declare const CAMERA_VIEWPORT_WIDTH = 812;
4
- export declare const CAMERA_VIEWPORT_HEIGHT = 375;
5
- export declare const GRID_WIDTH = 16;
6
- export declare const GRID_HEIGHT = 16;
7
- export declare const TILE_WIDTH = 16;
8
- export declare const TILE_HEIGHT = 16;
9
- export declare const CAMERA_VIEWPORT_OFFSET_X: number;
10
- export declare const CAMERA_VIEWPORT_OFFSET_Y: number;
11
- //# sourceMappingURL=world.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"world.constants.d.ts","sourceRoot":"","sources":["../../src/constants/world.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,WAAW,KAAK,CAAC;AAK9B,eAAO,MAAM,wBAAwB,QAAkB,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAmB,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CAMERA_VIEWPORT_OFFSET_Y = exports.CAMERA_VIEWPORT_OFFSET_X = exports.TILE_HEIGHT = exports.TILE_WIDTH = exports.GRID_HEIGHT = exports.GRID_WIDTH = exports.CAMERA_VIEWPORT_HEIGHT = exports.CAMERA_VIEWPORT_WIDTH = exports.WORLD_HEIGHT = exports.WORLD_WIDTH = void 0;
4
- exports.WORLD_WIDTH = 1600;
5
- exports.WORLD_HEIGHT = 1600;
6
- exports.CAMERA_VIEWPORT_WIDTH = 812;
7
- exports.CAMERA_VIEWPORT_HEIGHT = 375;
8
- exports.GRID_WIDTH = 16;
9
- exports.GRID_HEIGHT = 16;
10
- exports.TILE_WIDTH = 16;
11
- exports.TILE_HEIGHT = 16;
12
- exports.CAMERA_VIEWPORT_OFFSET_X = exports.GRID_WIDTH * 10;
13
- exports.CAMERA_VIEWPORT_OFFSET_Y = exports.GRID_HEIGHT * 10;
14
- //# sourceMappingURL=world.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"world.constants.js","sourceRoot":"","sources":["../../src/constants/world.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,IAAI,CAAC;AACnB,QAAA,YAAY,GAAG,IAAI,CAAC;AAEpB,QAAA,qBAAqB,GAAG,GAAG,CAAC;AAC5B,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAE7B,QAAA,UAAU,GAAG,EAAE,CAAC;AAChB,QAAA,WAAW,GAAG,EAAE,CAAC;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAC;AAChB,QAAA,WAAW,GAAG,EAAE,CAAC;AAKjB,QAAA,wBAAwB,GAAG,kBAAU,GAAG,EAAE,CAAC;AAC3C,QAAA,wBAAwB,GAAG,mBAAW,GAAG,EAAE,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,32 +0,0 @@
1
- export * from "./constants/npc.constants";
2
- export * from "./constants/socket.constants";
3
- export * from "./constants/world.constants";
4
- export * from "./libs/GridHelper";
5
- export * from "./libs/MathHelper";
6
- export * from "./libs/SocketHelper";
7
- export * from "./libs/TextHelper";
8
- export * from "./libs/TypeHelper";
9
- export * from "./types/animation.types";
10
- export * from "./types/api.types";
11
- export * from "./types/asset.types";
12
- export * from "./types/auth.types";
13
- export * from "./types/battle.types";
14
- export * from "./types/character.types";
15
- export * from "./types/device.types";
16
- export * from "./types/env.types";
17
- export * from "./types/googleOAuth.types";
18
- export * from "./types/maps.types";
19
- export * from "./types/notification.types";
20
- export * from "./types/npc.types";
21
- export * from "./types/pagination.types";
22
- export * from "./types/places.types";
23
- export * from "./types/preloadScene.types";
24
- export * from "./types/resource.types";
25
- export * from "./types/scene.types";
26
- export * from "./types/skills.types";
27
- export * from "./types/socket.types";
28
- export * from "./types/tiled.types";
29
- export * from "./types/translation.types";
30
- export * from "./types/user.types";
31
- export * from "./types/validation.types";
32
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
package/dist/index.js DELETED
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constants/npc.constants"), exports);
18
- __exportStar(require("./constants/socket.constants"), exports);
19
- __exportStar(require("./constants/world.constants"), exports);
20
- __exportStar(require("./libs/GridHelper"), exports);
21
- __exportStar(require("./libs/MathHelper"), exports);
22
- __exportStar(require("./libs/SocketHelper"), exports);
23
- __exportStar(require("./libs/TextHelper"), exports);
24
- __exportStar(require("./libs/TypeHelper"), exports);
25
- __exportStar(require("./types/animation.types"), exports);
26
- __exportStar(require("./types/api.types"), exports);
27
- __exportStar(require("./types/asset.types"), exports);
28
- __exportStar(require("./types/auth.types"), exports);
29
- __exportStar(require("./types/battle.types"), exports);
30
- __exportStar(require("./types/character.types"), exports);
31
- __exportStar(require("./types/device.types"), exports);
32
- __exportStar(require("./types/env.types"), exports);
33
- __exportStar(require("./types/googleOAuth.types"), exports);
34
- __exportStar(require("./types/maps.types"), exports);
35
- __exportStar(require("./types/notification.types"), exports);
36
- __exportStar(require("./types/npc.types"), exports);
37
- __exportStar(require("./types/pagination.types"), exports);
38
- __exportStar(require("./types/places.types"), exports);
39
- __exportStar(require("./types/preloadScene.types"), exports);
40
- __exportStar(require("./types/resource.types"), exports);
41
- __exportStar(require("./types/scene.types"), exports);
42
- __exportStar(require("./types/skills.types"), exports);
43
- __exportStar(require("./types/socket.types"), exports);
44
- __exportStar(require("./types/tiled.types"), exports);
45
- __exportStar(require("./types/translation.types"), exports);
46
- __exportStar(require("./types/user.types"), exports);
47
- __exportStar(require("./types/validation.types"), exports);
48
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC;AACpC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
@@ -1,12 +0,0 @@
1
- import { AnimationDirection } from "../types/animation.types";
2
- export declare const ToGridX: (x: number) => number;
3
- export declare const ToGridY: (y: number) => number;
4
- export declare const FromGridX: (gridX: number) => number;
5
- export declare const FromGridY: (gridY: number) => number;
6
- interface INewCalculatedPosition {
7
- x: number;
8
- y: number;
9
- }
10
- export declare const calculateNewPositionXY: (x: number, y: number, moveToDirection: AnimationDirection) => INewCalculatedPosition;
11
- export {};
12
- //# sourceMappingURL=GridHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridHelper.d.ts","sourceRoot":"","sources":["../../src/libs/GridHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,eAAO,MAAM,OAAO,MAAO,MAAM,KAAG,MAAoC,CAAC;AACzE,eAAO,MAAM,OAAO,MAAO,MAAM,KAAG,MAAqC,CAAC;AAE1E,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAAwC,CAAC;AACnF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAAyC,CAAC;AAEpF,UAAU,sBAAsB;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,eAAO,MAAM,sBAAsB,MAC9B,MAAM,KACN,MAAM,mBACQ,kBAAkB,KAClC,sBAuBF,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.calculateNewPositionXY = exports.FromGridY = exports.FromGridX = exports.ToGridY = exports.ToGridX = void 0;
4
- const world_constants_1 = require("../constants/world.constants");
5
- const ToGridX = (x) => Math.round(x / world_constants_1.GRID_WIDTH);
6
- exports.ToGridX = ToGridX;
7
- const ToGridY = (y) => Math.round(y / world_constants_1.GRID_HEIGHT);
8
- exports.ToGridY = ToGridY;
9
- const FromGridX = (gridX) => Math.round(gridX * world_constants_1.GRID_WIDTH);
10
- exports.FromGridX = FromGridX;
11
- const FromGridY = (gridY) => Math.round(gridY * world_constants_1.GRID_HEIGHT);
12
- exports.FromGridY = FromGridY;
13
- const calculateNewPositionXY = (x, y, moveToDirection) => {
14
- switch (moveToDirection) {
15
- case "down":
16
- return {
17
- x,
18
- y: y + world_constants_1.GRID_HEIGHT,
19
- };
20
- case "up":
21
- return {
22
- x,
23
- y: y - world_constants_1.GRID_HEIGHT,
24
- };
25
- case "left":
26
- return {
27
- x: x - world_constants_1.GRID_WIDTH,
28
- y,
29
- };
30
- case "right":
31
- return {
32
- x: x + world_constants_1.GRID_WIDTH,
33
- y,
34
- };
35
- }
36
- };
37
- exports.calculateNewPositionXY = calculateNewPositionXY;
38
- //# sourceMappingURL=GridHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridHelper.js","sourceRoot":"","sources":["../../src/libs/GridHelper.ts"],"names":[],"mappings":";;;AAAA,kEAAuE;AAGhE,MAAM,OAAO,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,4BAAU,CAAC,CAAC;AAA5D,QAAA,OAAO,WAAqD;AAClE,MAAM,OAAO,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,6BAAW,CAAC,CAAC;AAA7D,QAAA,OAAO,WAAsD;AAEnE,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,4BAAU,CAAC,CAAC;AAAtE,QAAA,SAAS,aAA6D;AAC5E,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,6BAAW,CAAC,CAAC;AAAvE,QAAA,SAAS,aAA8D;AAO7E,MAAM,sBAAsB,GAAG,CACpC,CAAS,EACT,CAAS,EACT,eAAmC,EACX,EAAE;IAC1B,QAAQ,eAAe,EAAE;QACvB,KAAK,MAAM;YACT,OAAO;gBACL,CAAC;gBACD,CAAC,EAAE,CAAC,GAAG,6BAAW;aACnB,CAAC;QACJ,KAAK,IAAI;YACP,OAAO;gBACL,CAAC;gBACD,CAAC,EAAE,CAAC,GAAG,6BAAW;aACnB,CAAC;QACJ,KAAK,MAAM;YACT,OAAO;gBACL,CAAC,EAAE,CAAC,GAAG,4BAAU;gBACjB,CAAC;aACF,CAAC;QACJ,KAAK,OAAO;YACV,OAAO;gBACL,CAAC,EAAE,CAAC,GAAG,4BAAU;gBACjB,CAAC;aACF,CAAC;KACL;AACH,CAAC,CAAC;AA3BW,QAAA,sBAAsB,0BA2BjC"}
@@ -1,17 +0,0 @@
1
- interface Point {
2
- x: number;
3
- y: number;
4
- }
5
- interface Rect {
6
- bottom: number;
7
- left: number;
8
- top: number;
9
- right: number;
10
- }
11
- declare class MathHelper {
12
- getDistanceBetweenPoints(x1: number, y1: number, x2: number, y2: number): number;
13
- isXYInsideRectangle(point: Point, rect: Rect): boolean;
14
- }
15
- export declare const mathHelper: MathHelper;
16
- export {};
17
- //# sourceMappingURL=MathHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MathHelper.d.ts","sourceRoot":"","sources":["../../src/libs/MathHelper.ts"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,IAAI;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,cAAM,UAAU;IACP,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAOvE,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO;CAG9D;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mathHelper = void 0;
4
- class MathHelper {
5
- getDistanceBetweenPoints(x1, y1, x2, y2) {
6
- let y = x2 - x1;
7
- let x = y2 - y1;
8
- return Math.sqrt(x * x + y * y);
9
- }
10
- isXYInsideRectangle(point, rect) {
11
- return point.x > rect.left && point.x < rect.right && point.y > rect.top && point.y < rect.bottom;
12
- }
13
- }
14
- exports.mathHelper = new MathHelper();
15
- //# sourceMappingURL=MathHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MathHelper.js","sourceRoot":"","sources":["../../src/libs/MathHelper.ts"],"names":[],"mappings":";;;AAYA,MAAM,UAAU;IACP,wBAAwB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;QAC5E,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;QAEhB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,mBAAmB,CAAC,KAAY,EAAE,IAAU;QACjD,OAAO,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;IACpG,CAAC;CACF;AAEY,QAAA,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ISocketTransmissionZone } from "../types/socket.types";
2
- export declare const calculateSocketTransmissionZone: (entityX: number, entityY: number, entityWidth?: number, entityHeight?: number, zoneWidth?: number, zoneHeight?: number) => ISocketTransmissionZone;
3
- //# sourceMappingURL=SocketHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocketHelper.d.ts","sourceRoot":"","sources":["../../src/libs/SocketHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,+BAA+B,YACjC,MAAM,WACN,MAAM,gBACF,MAAM,iBACL,MAAM,cACT,MAAM,eACL,MAAM,KACjB,uBAQF,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.calculateSocketTransmissionZone = void 0;
4
- const socket_constants_1 = require("../constants/socket.constants");
5
- const world_constants_1 = require("../constants/world.constants");
6
- const calculateSocketTransmissionZone = (entityX, entityY, entityWidth = world_constants_1.GRID_WIDTH, entityHeight = world_constants_1.GRID_HEIGHT, zoneWidth = socket_constants_1.SOCKET_TRANSMISSION_ZONE_WIDTH, zoneHeight = socket_constants_1.SOCKET_TRANSMISSION_ZONE_HEIGHT) => {
7
- return {
8
- x: entityX - zoneWidth / 2 + entityWidth / 2,
9
- y: entityY - zoneHeight / 2 + entityHeight / 2,
10
- width: entityX + zoneWidth / 2 - entityWidth / 2,
11
- height: entityY + zoneHeight / 2 - entityHeight / 2,
12
- };
13
- };
14
- exports.calculateSocketTransmissionZone = calculateSocketTransmissionZone;
15
- //# sourceMappingURL=SocketHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SocketHelper.js","sourceRoot":"","sources":["../../src/libs/SocketHelper.ts"],"names":[],"mappings":";;;AAAA,oEAAgH;AAChH,kEAAuE;AAGhE,MAAM,+BAA+B,GAAG,CAC7C,OAAe,EACf,OAAe,EACf,cAAsB,4BAAU,EAChC,eAAuB,6BAAW,EAClC,YAAoB,iDAA8B,EAClD,aAAqB,kDAA+B,EAC3B,EAAE;IAE3B,OAAO;QACL,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC;QAC5C,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,CAAC,GAAG,YAAY,GAAG,CAAC;QAC9C,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC;QAChD,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,CAAC,GAAG,YAAY,GAAG,CAAC;KACpD,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,+BAA+B,mCAe1C"}
@@ -1,8 +0,0 @@
1
- export declare class TextHelper {
2
- static capitalizeFirstLetter(str: string): string;
3
- private static _escapeRegExp;
4
- static replaceAll(str: string, find: string, replace: string): string;
5
- static stringPrepare(str: string): string;
6
- static getFileExtension(path: string): string;
7
- }
8
- //# sourceMappingURL=TextHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextHelper.d.ts","sourceRoot":"","sources":["../../src/libs/TextHelper.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIjD,OAAO,CAAC,MAAM,CAAC,aAAa;IAG5B,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAIrE,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIzC,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAG9C"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextHelper = void 0;
4
- class TextHelper {
5
- static capitalizeFirstLetter(str) {
6
- return str.charAt(0).toUpperCase() + str.slice(1);
7
- }
8
- static _escapeRegExp(str) {
9
- return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
10
- }
11
- static replaceAll(str, find, replace) {
12
- return str.replace(new RegExp(TextHelper._escapeRegExp(find), "g"), replace);
13
- }
14
- static stringPrepare(str) {
15
- return str.toLowerCase().trim();
16
- }
17
- static getFileExtension(path) {
18
- return path.slice((Math.max(0, path.lastIndexOf(".")) || Infinity) + 1);
19
- }
20
- }
21
- exports.TextHelper = TextHelper;
22
- //# sourceMappingURL=TextHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextHelper.js","sourceRoot":"","sources":["../../src/libs/TextHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACrB,MAAM,CAAC,qBAAqB,CAAC,GAAW;QACtC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,GAAW;QACtC,OAAO,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,UAAU,CAAC,GAAW,EAAE,IAAY,EAAE,OAAe;QAC1D,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAW;QAC9B,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,IAAY;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAnBD,gCAmBC"}
@@ -1,4 +0,0 @@
1
- export declare class TypeHelper {
2
- static enumToStringArray(data: object): string[];
3
- }
4
- //# sourceMappingURL=TypeHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TypeHelper.d.ts","sourceRoot":"","sources":["../../src/libs/TypeHelper.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;WACP,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CAaxD"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypeHelper = void 0;
4
- class TypeHelper {
5
- static enumToStringArray(data) {
6
- const enumKv = Object.entries(data).map(([key, value]) => ({ key, value }));
7
- const keys = [];
8
- enumKv.forEach((kv) => {
9
- if (typeof kv.value === "string") {
10
- keys.push(kv.value);
11
- }
12
- });
13
- return keys;
14
- }
15
- }
16
- exports.TypeHelper = TypeHelper;
17
- //# sourceMappingURL=TypeHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TypeHelper.js","sourceRoot":"","sources":["../../src/libs/TypeHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACd,MAAM,CAAC,iBAAiB,CAAC,IAAY;QAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAE5E,MAAM,IAAI,GAAa,EAAE,CAAC;QAE1B,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YACpB,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,EAAE;gBAChC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAdD,gCAcC"}
@@ -1,38 +0,0 @@
1
- {
2
- "title": {
3
- "eng": "Would you mind rating BlueShip?",
4
- "ptBr": "Gostaria de avaliar BlueShip?"
5
- },
6
- "message": {
7
- "eng": "It will not take more than a minute and helps to promote our app. Thanks for your support!",
8
- "ptBr": "Se gostou de utilizar o BlueShip, importa-se de avaliá-lo? Não vai demorar mais do que um minuto. Obrigado pelo seu apoio!"
9
- },
10
- "cancelButtonLabel": {
11
- "eng": "No, Thanks",
12
- "ptBr": "Não, obrigado"
13
- },
14
- "laterButtonLabel": {
15
- "eng": "Remind Me Later",
16
- "ptBr": "Lembrar mais tarde"
17
- },
18
- "rateButtonLabel": {
19
- "eng": "Rate It Now",
20
- "ptBr": "Avaliar agora"
21
- },
22
- "yesButtonLabel": {
23
- "eng": "Yes!",
24
- "ptBr": "Sim!"
25
- },
26
- "noButtonLabel": {
27
- "eng": "Not really",
28
- "ptBr": "Não"
29
- },
30
- "appRatePromptTitle": {
31
- "eng": "Do you like using BlueShip?",
32
- "ptBr": "Você gosta de utilizar BlueShip?"
33
- },
34
- "feedbackPromptTitle": {
35
- "eng": "Mind giving us some feedback?",
36
- "ptBr": "Poderia nos dar um feedback?"
37
- }
38
- }
@@ -1,82 +0,0 @@
1
- {
2
- "stock": {
3
- "eng": "Stock",
4
- "ptBr": "Ação"
5
- },
6
- "cryptocurrency": {
7
- "eng": "Cryptocurrency",
8
- "ptBr": "Criptomoeda"
9
- },
10
- "option": {
11
- "eng": "Option",
12
- "ptBr": "Opção"
13
- },
14
- "reit": {
15
- "eng": "REIT",
16
- "ptBr": "FII"
17
- },
18
- "etf": {
19
- "eng": "ETF",
20
- "ptBr": "ETF"
21
- },
22
- "bond": {
23
- "eng": "Bond",
24
- "ptBr": "Título"
25
- },
26
- "commodity": {
27
- "eng": "Commodity",
28
- "ptBr": "Commodity"
29
- },
30
- "filterByNameAndTickerOnlyError": {
31
- "eng": "You cannot use both filterBy and nameAndTickerOnly on this request.",
32
- "ptBr": "Você não pode usar filterBy e nameAndTickerOnly nesta solicitação."
33
- },
34
- "assets": {
35
- "eng": "Assets",
36
- "ptBr": "Ativos"
37
- },
38
- "assetDeletion": {
39
- "eng": "Asset Deletion",
40
- "ptBr": "Remoção de Ativos"
41
- },
42
- "asset": {
43
- "eng": "Asset",
44
- "ptBr": "Ativo"
45
- },
46
- "company": {
47
- "eng": "Company",
48
- "ptBr": "Companhia"
49
- },
50
- "type": {
51
- "eng": "Type",
52
- "ptBr": "Tipo"
53
- },
54
- "ticker": {
55
- "eng": "Ticker",
56
- "ptBr": "Ticker"
57
- },
58
- "details": {
59
- "eng": "Details",
60
- "ptBr": "Detalhes"
61
- },
62
- "quantity": {
63
- "eng": "Quantity",
64
- "ptBr": "Quantidade"
65
- },
66
- "dailyMove": {
67
- "eng": "Daily move",
68
- "ptBr": "Movimento diário"
69
- },
70
- "orderAvgPrice": {
71
- "eng": "Avg price",
72
- "ptBr": "Preço médio"
73
- },
74
- "currentPrice": {
75
- "eng": "Current Price",
76
- "ptBr": "Preço atual"
77
- },
78
- "seeCompany": {
79
- "eng": "See Company",
80
- "ptBr": "Veja empresa"
81
- }
82
- }