@rpg-engine/shared 0.2.83 → 0.2.86

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 (110) 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/index.d.ts +36 -36
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +52 -52
  13. package/dist/index.js.map +1 -1
  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 -133
  52. package/dist/types/character.types.d.ts.map +1 -1
  53. package/dist/types/character.types.js +29 -29
  54. package/dist/types/character.types.js.map +1 -1
  55. package/dist/types/chat.types.d.ts +30 -30
  56. package/dist/types/chat.types.js +14 -14
  57. package/dist/types/container.types.d.ts +8 -8
  58. package/dist/types/container.types.d.ts.map +1 -1
  59. package/dist/types/container.types.js +2 -2
  60. package/dist/types/device.types.d.ts +24 -24
  61. package/dist/types/device.types.js +7 -7
  62. package/dist/types/entity.types.d.ts +20 -20
  63. package/dist/types/entity.types.js +14 -14
  64. package/dist/types/env.types.d.ts +5 -5
  65. package/dist/types/env.types.js +9 -9
  66. package/dist/types/googleOAuth.types.d.ts +47 -47
  67. package/dist/types/googleOAuth.types.js +2 -2
  68. package/dist/types/item.types.d.ts +124 -113
  69. package/dist/types/item.types.d.ts.map +1 -1
  70. package/dist/types/item.types.js +61 -59
  71. package/dist/types/item.types.js.map +1 -1
  72. package/dist/types/maps.types.d.ts +16 -16
  73. package/dist/types/maps.types.js +10 -10
  74. package/dist/types/notification.types.d.ts +14 -14
  75. package/dist/types/notification.types.js +2 -2
  76. package/dist/types/npc.types.d.ts +104 -104
  77. package/dist/types/npc.types.js +35 -35
  78. package/dist/types/npcMetadata.types.d.ts +7 -0
  79. package/dist/types/npcMetadata.types.d.ts.map +1 -0
  80. package/dist/types/npcMetadata.types.js +20 -0
  81. package/dist/types/npcMetadata.types.js.map +1 -0
  82. package/dist/types/pagination.types.d.ts +13 -13
  83. package/dist/types/pagination.types.js +2 -2
  84. package/dist/types/places.types.d.ts +16 -16
  85. package/dist/types/places.types.js +9 -9
  86. package/dist/types/player.types.d.ts +49 -0
  87. package/dist/types/player.types.d.ts.map +1 -0
  88. package/dist/types/player.types.js +14 -0
  89. package/dist/types/player.types.js.map +1 -0
  90. package/dist/types/preloadScene.types.d.ts +4 -4
  91. package/dist/types/preloadScene.types.js +7 -7
  92. package/dist/types/resource.types.d.ts +5 -5
  93. package/dist/types/resource.types.js +2 -2
  94. package/dist/types/scene.types.d.ts +8 -8
  95. package/dist/types/scene.types.js +8 -8
  96. package/dist/types/skills.types.d.ts +24 -24
  97. package/dist/types/skills.types.js +2 -2
  98. package/dist/types/socket.types.d.ts +17 -17
  99. package/dist/types/socket.types.js +8 -8
  100. package/dist/types/tiled.types.d.ts +107 -107
  101. package/dist/types/tiled.types.js +13 -13
  102. package/dist/types/translation.types.d.ts +5 -5
  103. package/dist/types/translation.types.js +8 -8
  104. package/dist/types/user.types.d.ts +96 -96
  105. package/dist/types/user.types.js +38 -38
  106. package/dist/types/validation.types.d.ts +9 -9
  107. package/dist/types/validation.types.js +2 -2
  108. package/dist/types/view.types.d.ts +14 -14
  109. package/dist/types/view.types.js +7 -7
  110. package/package.json +41 -41
@@ -1,134 +1,135 @@
1
- import { AnimationDirection } from "./animation.types";
2
- import { EntityAttackType, EntityType } from "./entity.types";
3
- import { MapLayers } from "./maps.types";
4
- import { IResource } from "./resource.types";
5
- import { ISkill } from "./skills.types";
6
- import { IUser } from "./user.types";
7
- import { IViewElement } from "./view.types";
8
- export interface ICharacter extends IResource {
9
- name: string;
10
- owner: IUser;
11
- health: number;
12
- maxHealth: number;
13
- mana: number;
14
- maxMana: number;
15
- x: number;
16
- y: number;
17
- direction: AnimationDirection;
18
- class: CharacterClass;
19
- gender: CharacterGender;
20
- totalWeightCapacity: number;
21
- isOnline: boolean;
22
- layer: MapLayers;
23
- scene: string;
24
- channelId: string;
25
- speed: number;
26
- movementIntervalMs: number;
27
- lastMovement: Date;
28
- isBanned: boolean;
29
- penalty: number;
30
- banRemovalDate: Date;
31
- hasPermanentBan: Date;
32
- skills: ISkill;
33
- target?: {
34
- id: string;
35
- type: EntityType;
36
- } | null;
37
- attackType: EntityAttackType;
38
- attackIntervalSpeed: number;
39
- view: {
40
- characters: IViewElement;
41
- npcs: IViewElement;
42
- items: IViewElement;
43
- };
44
- }
45
- export declare enum CharacterClass {
46
- None = "None",
47
- Warrior = "Warrior",
48
- Berserker = "Berserker",
49
- Cleric = "Cleric",
50
- Sorcerer = "Sorcerer",
51
- Rogue = "Rogue",
52
- Hunter = "Hunter",
53
- Assassin = "Assassin"
54
- }
55
- export declare enum CharacterGender {
56
- Male = "Male",
57
- Female = "Female"
58
- }
59
- export declare enum CharacterSocketEvents {
60
- CharacterCreate = "CharacterCreate",
61
- CharacterPositionUpdate = "CharacterPositionUpdate",
62
- CharacterPositionUpdateConfirm = "CharacterPositionUpdateConfirm",
63
- CharacterLogout = "CharacterLogout",
64
- CharacterPrivateMessage = "CharacterPrivateMessage",
65
- CharacterPing = "CharacterPing",
66
- CharacterForceDisconnect = "CharacterForceDisconnect"
67
- }
68
- export interface ICharacterPing {
69
- id: string;
70
- }
71
- export interface ICharacterPositionUpdateConfirm {
72
- id: string;
73
- direction: string;
74
- isValid: boolean;
75
- }
76
- export declare type Events = CharacterSocketEvents;
77
- export interface ICharacterCreateFromClient {
78
- id: string;
79
- channelId: string;
80
- }
81
- export interface ICharacterCreateFromServer {
82
- id: string;
83
- channelId: string;
84
- name: string;
85
- x: number;
86
- y: number;
87
- direction: AnimationDirection;
88
- layer: MapLayers;
89
- speed: number;
90
- movementIntervalMs: number;
91
- health: number;
92
- maxHealth: number;
93
- mana: number;
94
- maxMana: number;
95
- }
96
- export interface ICharacterPositionUpdateFromClient {
97
- id: string;
98
- x: number;
99
- y: number;
100
- newX: number;
101
- newY: number;
102
- direction: AnimationDirection;
103
- }
104
- export interface ICharacterPositionUpdateFromServer {
105
- id: string;
106
- x: number;
107
- y: number;
108
- newX: number;
109
- newY: number;
110
- name: string;
111
- direction: AnimationDirection;
112
- isMoving: boolean;
113
- layer: MapLayers;
114
- channelId: string;
115
- speed: number;
116
- movementIntervalMs: number;
117
- health: number;
118
- maxHealth: number;
119
- mana: number;
120
- maxMana: number;
121
- }
122
- export interface ICharacterLogout {
123
- id: string;
124
- }
125
- export interface ICameraCoordinates {
126
- x: number;
127
- y: number;
128
- width: number;
129
- height: number;
130
- }
131
- export interface ICharacterForceDisconnect {
132
- reason: string;
133
- }
1
+ import { AnimationDirection } from "./animation.types";
2
+ import { EntityAttackType, EntityType } from "./entity.types";
3
+ import { MapLayers } from "./maps.types";
4
+ import { IResource } from "./resource.types";
5
+ import { ISkill } from "./skills.types";
6
+ import { IUser } from "./user.types";
7
+ import { IViewElement } from "./view.types";
8
+ export interface ICharacter extends IResource {
9
+ name: string;
10
+ owner: IUser;
11
+ health: number;
12
+ maxHealth: number;
13
+ mana: number;
14
+ maxMana: number;
15
+ x: number;
16
+ y: number;
17
+ direction: AnimationDirection;
18
+ class: CharacterClass;
19
+ gender: CharacterGender;
20
+ totalWeightCapacity: number;
21
+ isOnline: boolean;
22
+ layer: MapLayers;
23
+ scene: string;
24
+ initialScene: string;
25
+ channelId: string;
26
+ speed: number;
27
+ movementIntervalMs: number;
28
+ lastMovement: Date;
29
+ isBanned: boolean;
30
+ penalty: number;
31
+ banRemovalDate: Date;
32
+ hasPermanentBan: Date;
33
+ skills: ISkill;
34
+ target?: {
35
+ id: string;
36
+ type: EntityType;
37
+ } | null;
38
+ attackType: EntityAttackType;
39
+ attackIntervalSpeed: number;
40
+ view: {
41
+ characters: IViewElement;
42
+ npcs: IViewElement;
43
+ items: IViewElement;
44
+ };
45
+ }
46
+ export declare enum CharacterClass {
47
+ None = "None",
48
+ Warrior = "Warrior",
49
+ Berserker = "Berserker",
50
+ Cleric = "Cleric",
51
+ Sorcerer = "Sorcerer",
52
+ Rogue = "Rogue",
53
+ Hunter = "Hunter",
54
+ Assassin = "Assassin"
55
+ }
56
+ export declare enum CharacterGender {
57
+ Male = "Male",
58
+ Female = "Female"
59
+ }
60
+ export declare enum CharacterSocketEvents {
61
+ CharacterCreate = "CharacterCreate",
62
+ CharacterPositionUpdate = "CharacterPositionUpdate",
63
+ CharacterPositionUpdateConfirm = "CharacterPositionUpdateConfirm",
64
+ CharacterLogout = "CharacterLogout",
65
+ CharacterPrivateMessage = "CharacterPrivateMessage",
66
+ CharacterPing = "CharacterPing",
67
+ CharacterForceDisconnect = "CharacterForceDisconnect"
68
+ }
69
+ export interface ICharacterPing {
70
+ id: string;
71
+ }
72
+ export interface ICharacterPositionUpdateConfirm {
73
+ id: string;
74
+ direction: string;
75
+ isValid: boolean;
76
+ }
77
+ export declare type Events = CharacterSocketEvents;
78
+ export interface ICharacterCreateFromClient {
79
+ id: string;
80
+ channelId: string;
81
+ }
82
+ export interface ICharacterCreateFromServer {
83
+ id: string;
84
+ channelId: string;
85
+ name: string;
86
+ x: number;
87
+ y: number;
88
+ direction: AnimationDirection;
89
+ layer: MapLayers;
90
+ speed: number;
91
+ movementIntervalMs: number;
92
+ health: number;
93
+ maxHealth: number;
94
+ mana: number;
95
+ maxMana: number;
96
+ }
97
+ export interface ICharacterPositionUpdateFromClient {
98
+ id: string;
99
+ x: number;
100
+ y: number;
101
+ newX: number;
102
+ newY: number;
103
+ direction: AnimationDirection;
104
+ }
105
+ export interface ICharacterPositionUpdateFromServer {
106
+ id: string;
107
+ x: number;
108
+ y: number;
109
+ newX: number;
110
+ newY: number;
111
+ name: string;
112
+ direction: AnimationDirection;
113
+ isMoving: boolean;
114
+ layer: MapLayers;
115
+ channelId: string;
116
+ speed: number;
117
+ movementIntervalMs: number;
118
+ health: number;
119
+ maxHealth: number;
120
+ mana: number;
121
+ maxMana: number;
122
+ }
123
+ export interface ICharacterLogout {
124
+ id: string;
125
+ }
126
+ export interface ICameraCoordinates {
127
+ x: number;
128
+ y: number;
129
+ width: number;
130
+ height: number;
131
+ }
132
+ export interface ICharacterForceDisconnect {
133
+ reason: string;
134
+ }
134
135
  //# sourceMappingURL=character.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"character.types.d.ts","sourceRoot":"","sources":["../../src/types/character.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,kBAAkB,CAAC;IAC9B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,IAAI,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO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,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,30 +1,30 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CharacterSocketEvents = exports.CharacterGender = exports.CharacterClass = void 0;
4
- var CharacterClass;
5
- (function (CharacterClass) {
6
- CharacterClass["None"] = "None";
7
- CharacterClass["Warrior"] = "Warrior";
8
- CharacterClass["Berserker"] = "Berserker";
9
- CharacterClass["Cleric"] = "Cleric";
10
- CharacterClass["Sorcerer"] = "Sorcerer";
11
- CharacterClass["Rogue"] = "Rogue";
12
- CharacterClass["Hunter"] = "Hunter";
13
- CharacterClass["Assassin"] = "Assassin";
14
- })(CharacterClass = exports.CharacterClass || (exports.CharacterClass = {}));
15
- var CharacterGender;
16
- (function (CharacterGender) {
17
- CharacterGender["Male"] = "Male";
18
- CharacterGender["Female"] = "Female";
19
- })(CharacterGender = exports.CharacterGender || (exports.CharacterGender = {}));
20
- var CharacterSocketEvents;
21
- (function (CharacterSocketEvents) {
22
- CharacterSocketEvents["CharacterCreate"] = "CharacterCreate";
23
- CharacterSocketEvents["CharacterPositionUpdate"] = "CharacterPositionUpdate";
24
- CharacterSocketEvents["CharacterPositionUpdateConfirm"] = "CharacterPositionUpdateConfirm";
25
- CharacterSocketEvents["CharacterLogout"] = "CharacterLogout";
26
- CharacterSocketEvents["CharacterPrivateMessage"] = "CharacterPrivateMessage";
27
- CharacterSocketEvents["CharacterPing"] = "CharacterPing";
28
- CharacterSocketEvents["CharacterForceDisconnect"] = "CharacterForceDisconnect";
29
- })(CharacterSocketEvents = exports.CharacterSocketEvents || (exports.CharacterSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CharacterSocketEvents = exports.CharacterGender = exports.CharacterClass = void 0;
4
+ var CharacterClass;
5
+ (function (CharacterClass) {
6
+ CharacterClass["None"] = "None";
7
+ CharacterClass["Warrior"] = "Warrior";
8
+ CharacterClass["Berserker"] = "Berserker";
9
+ CharacterClass["Cleric"] = "Cleric";
10
+ CharacterClass["Sorcerer"] = "Sorcerer";
11
+ CharacterClass["Rogue"] = "Rogue";
12
+ CharacterClass["Hunter"] = "Hunter";
13
+ CharacterClass["Assassin"] = "Assassin";
14
+ })(CharacterClass = exports.CharacterClass || (exports.CharacterClass = {}));
15
+ var CharacterGender;
16
+ (function (CharacterGender) {
17
+ CharacterGender["Male"] = "Male";
18
+ CharacterGender["Female"] = "Female";
19
+ })(CharacterGender = exports.CharacterGender || (exports.CharacterGender = {}));
20
+ var CharacterSocketEvents;
21
+ (function (CharacterSocketEvents) {
22
+ CharacterSocketEvents["CharacterCreate"] = "CharacterCreate";
23
+ CharacterSocketEvents["CharacterPositionUpdate"] = "CharacterPositionUpdate";
24
+ CharacterSocketEvents["CharacterPositionUpdateConfirm"] = "CharacterPositionUpdateConfirm";
25
+ CharacterSocketEvents["CharacterLogout"] = "CharacterLogout";
26
+ CharacterSocketEvents["CharacterPrivateMessage"] = "CharacterPrivateMessage";
27
+ CharacterSocketEvents["CharacterPing"] = "CharacterPing";
28
+ CharacterSocketEvents["CharacterForceDisconnect"] = "CharacterForceDisconnect";
29
+ })(CharacterSocketEvents = exports.CharacterSocketEvents || (exports.CharacterSocketEvents = {}));
30
30
  //# sourceMappingURL=character.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"character.types.js","sourceRoot":"","sources":["../../src/types/character.types.ts"],"names":[],"mappings":";;;AA8CA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAGD,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC/B,4DAAmC,CAAA;IACnC,4EAAmD,CAAA;IACnD,0FAAiE,CAAA;IACjE,4DAAmC,CAAA;IACnC,4EAAmD,CAAA;IACnD,wDAA+B,CAAA;IAC/B,8EAAqD,CAAA;AACvD,CAAC,EARW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAQhC"}
1
+ {"version":3,"file":"character.types.js","sourceRoot":"","sources":["../../src/types/character.types.ts"],"names":[],"mappings":";;;AA+CA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAGD,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC/B,4DAAmC,CAAA;IACnC,4EAAmD,CAAA;IACnD,0FAAiE,CAAA;IACjE,4DAAmC,CAAA;IACnC,4EAAmD,CAAA;IACnD,wDAA+B,CAAA;IAC/B,8EAAqD,CAAA;AACvD,CAAC,EARW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAQhC"}
@@ -1,31 +1,31 @@
1
- import { IResource } from "./resource.types";
2
- export declare enum ChatMessageType {
3
- Global = "Global",
4
- Private = "Private"
5
- }
6
- export declare enum ChatSocketEvents {
7
- GlobalChatMessageCreate = "GlobalChatMessageCreate",
8
- GlobalChatMessageRead = "GlobalChatMessageRead",
9
- PrivateChatMessage = "PrivateChatMessage"
10
- }
11
- export interface IChatMessage extends IResource {
12
- emitter: {
13
- _id: string;
14
- name: string;
15
- };
16
- message: string;
17
- type: ChatMessageType;
18
- }
19
- export interface IChatMessageCreatePayload {
20
- emitter: {
21
- _id: string;
22
- name: string;
23
- };
24
- message: string;
25
- type: ChatMessageType;
26
- limit: number;
27
- }
28
- export interface IChatMessageReadPayload {
29
- messages: IChatMessage[];
30
- }
1
+ import { IResource } from "./resource.types";
2
+ export declare enum ChatMessageType {
3
+ Global = "Global",
4
+ Private = "Private"
5
+ }
6
+ export declare enum ChatSocketEvents {
7
+ GlobalChatMessageCreate = "GlobalChatMessageCreate",
8
+ GlobalChatMessageRead = "GlobalChatMessageRead",
9
+ PrivateChatMessage = "PrivateChatMessage"
10
+ }
11
+ export interface IChatMessage extends IResource {
12
+ emitter: {
13
+ _id: string;
14
+ name: string;
15
+ };
16
+ message: string;
17
+ type: ChatMessageType;
18
+ }
19
+ export interface IChatMessageCreatePayload {
20
+ emitter: {
21
+ _id: string;
22
+ name: string;
23
+ };
24
+ message: string;
25
+ type: ChatMessageType;
26
+ limit: number;
27
+ }
28
+ export interface IChatMessageReadPayload {
29
+ messages: IChatMessage[];
30
+ }
31
31
  //# sourceMappingURL=chat.types.d.ts.map
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatSocketEvents = exports.ChatMessageType = void 0;
4
- var ChatMessageType;
5
- (function (ChatMessageType) {
6
- ChatMessageType["Global"] = "Global";
7
- ChatMessageType["Private"] = "Private";
8
- })(ChatMessageType = exports.ChatMessageType || (exports.ChatMessageType = {}));
9
- var ChatSocketEvents;
10
- (function (ChatSocketEvents) {
11
- ChatSocketEvents["GlobalChatMessageCreate"] = "GlobalChatMessageCreate";
12
- ChatSocketEvents["GlobalChatMessageRead"] = "GlobalChatMessageRead";
13
- ChatSocketEvents["PrivateChatMessage"] = "PrivateChatMessage";
14
- })(ChatSocketEvents = exports.ChatSocketEvents || (exports.ChatSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatSocketEvents = exports.ChatMessageType = void 0;
4
+ var ChatMessageType;
5
+ (function (ChatMessageType) {
6
+ ChatMessageType["Global"] = "Global";
7
+ ChatMessageType["Private"] = "Private";
8
+ })(ChatMessageType = exports.ChatMessageType || (exports.ChatMessageType = {}));
9
+ var ChatSocketEvents;
10
+ (function (ChatSocketEvents) {
11
+ ChatSocketEvents["GlobalChatMessageCreate"] = "GlobalChatMessageCreate";
12
+ ChatSocketEvents["GlobalChatMessageRead"] = "GlobalChatMessageRead";
13
+ ChatSocketEvents["PrivateChatMessage"] = "PrivateChatMessage";
14
+ })(ChatSocketEvents = exports.ChatSocketEvents || (exports.ChatSocketEvents = {}));
15
15
  //# sourceMappingURL=chat.types.js.map
@@ -1,9 +1,9 @@
1
- import { IItemContainer } from "./item.types";
2
- export interface IContainersProps {
3
- openedContainers: Set<string>;
4
- containersData: {
5
- [key: string]: IItemContainer;
6
- };
7
- onMouseOverElement: (element: any) => void;
8
- }
1
+ import { IItemContainer } from "./item.types";
2
+ export interface IContainersProps {
3
+ openedContainers: Set<string>;
4
+ containersData: {
5
+ [key: string]: IItemContainer;
6
+ };
7
+ onMouseOverElement: (element: any) => void;
8
+ }
9
9
  //# sourceMappingURL=container.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.types.d.ts","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5C"}
1
+ {"version":3,"file":"container.types.d.ts","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5C"}
@@ -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=container.types.js.map
@@ -1,25 +1,25 @@
1
- import { Languages } from "./translation.types";
2
- interface IDeviceDetailedInfo {
3
- isVirtual: boolean;
4
- manufacturer: string;
5
- model: string;
6
- operatingSystem: string;
7
- osVersion: string;
8
- platform: string;
9
- }
10
- export interface IDeviceInfo {
11
- info: IDeviceDetailedInfo | null;
12
- screenOrientation: "landscape" | "portrait" | null;
13
- isAssetScreen: boolean | null;
14
- language: Languages | null;
15
- }
16
- export declare enum DeviceInfoActionTypes {
17
- updateDeviceInfo = "updateDeviceInfo"
18
- }
19
- export interface IDispatchUpdateDeviceInfo {
20
- type: DeviceInfoActionTypes.updateDeviceInfo;
21
- payload: IDeviceInfo;
22
- }
23
- export declare type DeviceAction = IDispatchUpdateDeviceInfo;
24
- export {};
1
+ import { Languages } from "./translation.types";
2
+ interface IDeviceDetailedInfo {
3
+ isVirtual: boolean;
4
+ manufacturer: string;
5
+ model: string;
6
+ operatingSystem: string;
7
+ osVersion: string;
8
+ platform: string;
9
+ }
10
+ export interface IDeviceInfo {
11
+ info: IDeviceDetailedInfo | null;
12
+ screenOrientation: "landscape" | "portrait" | null;
13
+ isAssetScreen: boolean | null;
14
+ language: Languages | null;
15
+ }
16
+ export declare enum DeviceInfoActionTypes {
17
+ updateDeviceInfo = "updateDeviceInfo"
18
+ }
19
+ export interface IDispatchUpdateDeviceInfo {
20
+ type: DeviceInfoActionTypes.updateDeviceInfo;
21
+ payload: IDeviceInfo;
22
+ }
23
+ export declare type DeviceAction = IDispatchUpdateDeviceInfo;
24
+ export {};
25
25
  //# sourceMappingURL=device.types.d.ts.map
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeviceInfoActionTypes = void 0;
4
- var DeviceInfoActionTypes;
5
- (function (DeviceInfoActionTypes) {
6
- DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
7
- })(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceInfoActionTypes = void 0;
4
+ var DeviceInfoActionTypes;
5
+ (function (DeviceInfoActionTypes) {
6
+ DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
7
+ })(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
8
8
  //# sourceMappingURL=device.types.js.map
@@ -1,21 +1,21 @@
1
- export declare enum EntityType {
2
- Character = "Character",
3
- NPC = "NPC"
4
- }
5
- export declare enum EntityAttackType {
6
- Melee = "Melee",
7
- Ranged = "Ranged",
8
- None = "None"
9
- }
10
- export interface IEntitiesInView {
11
- [id: string]: IEntityInViewBasicInfo;
12
- }
13
- export interface IEntityInViewBasicInfo {
14
- id: string;
15
- type?: EntityType;
16
- name?: string;
17
- x?: number;
18
- y?: number;
19
- direction?: string;
20
- }
1
+ export declare enum EntityType {
2
+ Character = "Character",
3
+ NPC = "NPC"
4
+ }
5
+ export declare enum EntityAttackType {
6
+ Melee = "Melee",
7
+ Ranged = "Ranged",
8
+ None = "None"
9
+ }
10
+ export interface IEntitiesInView {
11
+ [id: string]: IEntityInViewBasicInfo;
12
+ }
13
+ export interface IEntityInViewBasicInfo {
14
+ id: string;
15
+ type?: EntityType;
16
+ name?: string;
17
+ x?: number;
18
+ y?: number;
19
+ direction?: string;
20
+ }
21
21
  //# sourceMappingURL=entity.types.d.ts.map
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntityAttackType = exports.EntityType = void 0;
4
- var EntityType;
5
- (function (EntityType) {
6
- EntityType["Character"] = "Character";
7
- EntityType["NPC"] = "NPC";
8
- })(EntityType = exports.EntityType || (exports.EntityType = {}));
9
- var EntityAttackType;
10
- (function (EntityAttackType) {
11
- EntityAttackType["Melee"] = "Melee";
12
- EntityAttackType["Ranged"] = "Ranged";
13
- EntityAttackType["None"] = "None";
14
- })(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityAttackType = exports.EntityType = void 0;
4
+ var EntityType;
5
+ (function (EntityType) {
6
+ EntityType["Character"] = "Character";
7
+ EntityType["NPC"] = "NPC";
8
+ })(EntityType = exports.EntityType || (exports.EntityType = {}));
9
+ var EntityAttackType;
10
+ (function (EntityAttackType) {
11
+ EntityAttackType["Melee"] = "Melee";
12
+ EntityAttackType["Ranged"] = "Ranged";
13
+ EntityAttackType["None"] = "None";
14
+ })(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
15
15
  //# sourceMappingURL=entity.types.js.map
@@ -1,6 +1,6 @@
1
- export declare enum EnvType {
2
- Development = "Development",
3
- Staging = "Staging",
4
- Production = "Production"
5
- }
1
+ export declare enum EnvType {
2
+ Development = "Development",
3
+ Staging = "Staging",
4
+ Production = "Production"
5
+ }
6
6
  //# sourceMappingURL=env.types.d.ts.map