@rpg-engine/shared 0.4.23 → 0.4.26
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.
- package/README.md +29 -29
- package/dist/constants/date.constants.d.ts +2 -2
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.js +13 -13
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/index.d.ts +41 -41
- package/dist/index.js +57 -57
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/MapZipHelper.d.ts +2 -0
- package/dist/libs/MapZipHelper.d.ts.map +1 -0
- package/dist/libs/MapZipHelper.js +27 -0
- package/dist/libs/MapZipHelper.js.map +1 -0
- package/dist/libs/MathHelper.d.ts +16 -16
- package/dist/libs/MathHelper.js +14 -14
- package/dist/libs/SocketHelper.d.ts +2 -2
- package/dist/libs/SocketHelper.js +14 -14
- package/dist/libs/TextHelper.d.ts +7 -7
- package/dist/libs/TextHelper.js +21 -21
- package/dist/libs/TypeHelper.d.ts +3 -3
- package/dist/libs/TypeHelper.js +16 -16
- package/dist/translations/app-rate.lang.json +38 -38
- package/dist/translations/assets.lang.json +82 -82
- package/dist/translations/auth.lang.json +182 -182
- package/dist/translations/email.lang.json +70 -70
- package/dist/translations/error.lang.json +18 -18
- package/dist/translations/form.lang.json +94 -94
- package/dist/translations/global.lang.json +90 -90
- package/dist/translations/logs.lang.json +6 -6
- package/dist/translations/onboarding.lang.d.ts +10 -10
- package/dist/translations/onboarding.lang.js +21 -21
- package/dist/translations/onboarding.lang.json +50 -50
- package/dist/translations/order.lang.json +90 -90
- package/dist/translations/search.lang.json +50 -50
- package/dist/translations/settings.lang.json +14 -14
- package/dist/translations/tabs.lang.json +22 -22
- package/dist/translations/users.lang.json +22 -22
- package/dist/translations/validation.lang.json +86 -86
- package/dist/types/animation.types.d.ts +16 -16
- package/dist/types/animation.types.js +2 -2
- package/dist/types/api.types.d.ts +21 -21
- package/dist/types/api.types.js +20 -20
- package/dist/types/asset.types.d.ts +6 -6
- package/dist/types/asset.types.js +2 -2
- package/dist/types/auth.types.d.ts +7 -7
- package/dist/types/auth.types.js +2 -2
- package/dist/types/battle.types.d.ts +38 -38
- package/dist/types/battle.types.js +18 -18
- package/dist/types/character.types.d.ts +149 -151
- package/dist/types/character.types.d.ts.map +1 -1
- package/dist/types/character.types.js +30 -30
- package/dist/types/chat.types.d.ts +30 -30
- package/dist/types/chat.types.js +14 -14
- package/dist/types/container.types.d.ts +9 -0
- package/dist/types/container.types.d.ts.map +1 -0
- package/dist/types/container.types.js +3 -0
- package/dist/types/container.types.js.map +1 -0
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/entity.types.d.ts +21 -21
- package/dist/types/entity.types.js +15 -15
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.js +9 -9
- package/dist/types/equipment.types.d.ts +35 -35
- package/dist/types/equipment.types.js +18 -18
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/inventory.types.d.ts +7 -7
- package/dist/types/inventory.types.js +2 -2
- package/dist/types/item.types.d.ts +186 -186
- package/dist/types/item.types.d.ts.map +1 -1
- package/dist/types/item.types.js +112 -107
- package/dist/types/item.types.js.map +1 -1
- package/dist/types/itemContainer.types.d.ts +67 -67
- package/dist/types/itemContainer.types.d.ts.map +1 -1
- package/dist/types/itemContainer.types.js +10 -10
- package/dist/types/maps.types.d.ts +44 -44
- package/dist/types/maps.types.js +47 -47
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +117 -117
- package/dist/types/npc.types.js +35 -35
- package/dist/types/npcMetadata.types.d.ts +7 -0
- package/dist/types/npcMetadata.types.d.ts.map +1 -0
- package/dist/types/npcMetadata.types.js +20 -0
- package/dist/types/npcMetadata.types.js.map +1 -0
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.js +9 -9
- package/dist/types/player.types.d.ts +49 -0
- package/dist/types/player.types.d.ts.map +1 -0
- package/dist/types/player.types.js +14 -0
- package/dist/types/player.types.js.map +1 -0
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/quest.types.d.ts +67 -67
- package/dist/types/quest.types.js +21 -21
- package/dist/types/resource.types.d.ts +5 -5
- package/dist/types/resource.types.js +2 -2
- package/dist/types/scene.types.d.ts +8 -8
- package/dist/types/scene.types.js +8 -8
- package/dist/types/skills.types.d.ts +58 -58
- package/dist/types/skills.types.js +23 -23
- package/dist/types/socket.types.d.ts +17 -17
- package/dist/types/socket.types.js +8 -8
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/translation.types.d.ts +5 -5
- package/dist/types/translation.types.js +8 -8
- package/dist/types/ui.types.d.ts +8 -8
- package/dist/types/ui.types.js +7 -7
- package/dist/types/user.types.d.ts +101 -101
- package/dist/types/user.types.js +38 -38
- package/dist/types/validation.types.d.ts +9 -9
- package/dist/types/validation.types.js +2 -2
- package/dist/types/view.types.d.ts +14 -14
- package/dist/types/view.types.js +7 -7
- package/package.json +41 -41
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface IAPIError {
|
|
2
|
-
statusCode: number;
|
|
3
|
-
message: string[] | string;
|
|
4
|
-
error: string;
|
|
5
|
-
}
|
|
6
|
-
export declare enum HttpStatus {
|
|
7
|
-
OK = 200,
|
|
8
|
-
Created = 201,
|
|
9
|
-
NoContent = 204,
|
|
10
|
-
PermanentRedirect = 301,
|
|
11
|
-
TemporaryRedirect = 302,
|
|
12
|
-
BadRequest = 400,
|
|
13
|
-
Unauthorized = 401,
|
|
14
|
-
Forbidden = 403,
|
|
15
|
-
NotFound = 404,
|
|
16
|
-
MethodNotAllowed = 405,
|
|
17
|
-
Conflict = 409,
|
|
18
|
-
UnprocessableEntity = 422,
|
|
19
|
-
InternalServerError = 500,
|
|
20
|
-
ServiceUnavailable = 503
|
|
21
|
-
}
|
|
1
|
+
export interface IAPIError {
|
|
2
|
+
statusCode: number;
|
|
3
|
+
message: string[] | string;
|
|
4
|
+
error: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum HttpStatus {
|
|
7
|
+
OK = 200,
|
|
8
|
+
Created = 201,
|
|
9
|
+
NoContent = 204,
|
|
10
|
+
PermanentRedirect = 301,
|
|
11
|
+
TemporaryRedirect = 302,
|
|
12
|
+
BadRequest = 400,
|
|
13
|
+
Unauthorized = 401,
|
|
14
|
+
Forbidden = 403,
|
|
15
|
+
NotFound = 404,
|
|
16
|
+
MethodNotAllowed = 405,
|
|
17
|
+
Conflict = 409,
|
|
18
|
+
UnprocessableEntity = 422,
|
|
19
|
+
InternalServerError = 500,
|
|
20
|
+
ServiceUnavailable = 503
|
|
21
|
+
}
|
|
22
22
|
//# sourceMappingURL=api.types.d.ts.map
|
package/dist/types/api.types.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpStatus = void 0;
|
|
4
|
-
var HttpStatus;
|
|
5
|
-
(function (HttpStatus) {
|
|
6
|
-
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
-
HttpStatus[HttpStatus["Created"] = 201] = "Created";
|
|
8
|
-
HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
|
|
9
|
-
HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
|
|
10
|
-
HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
|
|
11
|
-
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
12
|
-
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
13
|
-
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
14
|
-
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
15
|
-
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
16
|
-
HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
|
|
17
|
-
HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
18
|
-
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
19
|
-
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
20
|
-
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatus = void 0;
|
|
4
|
+
var HttpStatus;
|
|
5
|
+
(function (HttpStatus) {
|
|
6
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
+
HttpStatus[HttpStatus["Created"] = 201] = "Created";
|
|
8
|
+
HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
|
|
9
|
+
HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
|
|
10
|
+
HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
|
|
11
|
+
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
12
|
+
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
13
|
+
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
14
|
+
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
15
|
+
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
16
|
+
HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
|
|
17
|
+
HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
18
|
+
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
19
|
+
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
20
|
+
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
21
21
|
//# sourceMappingURL=api.types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IEntityMovementAnimation } from "./animation.types";
|
|
2
|
-
export interface IAssetData {
|
|
3
|
-
textureKey: string;
|
|
4
|
-
path: string;
|
|
5
|
-
animations: IEntityMovementAnimation;
|
|
6
|
-
}
|
|
1
|
+
import { IEntityMovementAnimation } from "./animation.types";
|
|
2
|
+
export interface IAssetData {
|
|
3
|
+
textureKey: string;
|
|
4
|
+
path: string;
|
|
5
|
+
animations: IEntityMovementAnimation;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=asset.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=asset.types.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IAuthResponse {
|
|
2
|
-
accessToken: string;
|
|
3
|
-
refreshToken: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IAuthRefreshTokenResponse {
|
|
6
|
-
accessToken: string;
|
|
7
|
-
}
|
|
1
|
+
export interface IAuthResponse {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
refreshToken: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IAuthRefreshTokenResponse {
|
|
6
|
+
accessToken: string;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=auth.types.d.ts.map
|
package/dist/types/auth.types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=auth.types.js.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { EntityType } from "./entity.types";
|
|
2
|
-
export declare enum BattleSocketEvents {
|
|
3
|
-
InitTargeting = "InitTargeting",
|
|
4
|
-
StopTargeting = "StopTargeting",
|
|
5
|
-
CancelTargeting = "CancelTargeting",
|
|
6
|
-
BattleEvent = "BattleEvent",
|
|
7
|
-
BattleDeath = "BattleDeath",
|
|
8
|
-
RangedAttackFailure = "RangedAttackFailure"
|
|
9
|
-
}
|
|
10
|
-
export declare enum BattleEventType {
|
|
11
|
-
Miss = "Miss",
|
|
12
|
-
Block = "Block",
|
|
13
|
-
Hit = "Hit"
|
|
14
|
-
}
|
|
15
|
-
export interface IBattleEventFromServer {
|
|
16
|
-
targetId: string;
|
|
17
|
-
targetType: "Character" | "NPC";
|
|
18
|
-
eventType: BattleEventType;
|
|
19
|
-
totalDamage?: number;
|
|
20
|
-
postDamageTargetHP?: number;
|
|
21
|
-
level?: number;
|
|
22
|
-
skill?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IBattleDeath {
|
|
25
|
-
id: string;
|
|
26
|
-
type: "Character" | "NPC";
|
|
27
|
-
}
|
|
28
|
-
export interface IBattleInitTargeting {
|
|
29
|
-
targetId: string;
|
|
30
|
-
type: EntityType;
|
|
31
|
-
}
|
|
32
|
-
export interface IBattleCancelTargeting {
|
|
33
|
-
targetId: string;
|
|
34
|
-
type: EntityType;
|
|
35
|
-
reason?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
|
|
38
|
-
}
|
|
1
|
+
import { EntityType } from "./entity.types";
|
|
2
|
+
export declare enum BattleSocketEvents {
|
|
3
|
+
InitTargeting = "InitTargeting",
|
|
4
|
+
StopTargeting = "StopTargeting",
|
|
5
|
+
CancelTargeting = "CancelTargeting",
|
|
6
|
+
BattleEvent = "BattleEvent",
|
|
7
|
+
BattleDeath = "BattleDeath",
|
|
8
|
+
RangedAttackFailure = "RangedAttackFailure"
|
|
9
|
+
}
|
|
10
|
+
export declare enum BattleEventType {
|
|
11
|
+
Miss = "Miss",
|
|
12
|
+
Block = "Block",
|
|
13
|
+
Hit = "Hit"
|
|
14
|
+
}
|
|
15
|
+
export interface IBattleEventFromServer {
|
|
16
|
+
targetId: string;
|
|
17
|
+
targetType: "Character" | "NPC";
|
|
18
|
+
eventType: BattleEventType;
|
|
19
|
+
totalDamage?: number;
|
|
20
|
+
postDamageTargetHP?: number;
|
|
21
|
+
level?: number;
|
|
22
|
+
skill?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IBattleDeath {
|
|
25
|
+
id: string;
|
|
26
|
+
type: "Character" | "NPC";
|
|
27
|
+
}
|
|
28
|
+
export interface IBattleInitTargeting {
|
|
29
|
+
targetId: string;
|
|
30
|
+
type: EntityType;
|
|
31
|
+
}
|
|
32
|
+
export interface IBattleCancelTargeting {
|
|
33
|
+
targetId: string;
|
|
34
|
+
type: EntityType;
|
|
35
|
+
reason?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
|
|
38
|
+
}
|
|
39
39
|
//# sourceMappingURL=battle.types.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BattleEventType = exports.BattleSocketEvents = void 0;
|
|
4
|
-
var BattleSocketEvents;
|
|
5
|
-
(function (BattleSocketEvents) {
|
|
6
|
-
BattleSocketEvents["InitTargeting"] = "InitTargeting";
|
|
7
|
-
BattleSocketEvents["StopTargeting"] = "StopTargeting";
|
|
8
|
-
BattleSocketEvents["CancelTargeting"] = "CancelTargeting";
|
|
9
|
-
BattleSocketEvents["BattleEvent"] = "BattleEvent";
|
|
10
|
-
BattleSocketEvents["BattleDeath"] = "BattleDeath";
|
|
11
|
-
BattleSocketEvents["RangedAttackFailure"] = "RangedAttackFailure";
|
|
12
|
-
})(BattleSocketEvents = exports.BattleSocketEvents || (exports.BattleSocketEvents = {}));
|
|
13
|
-
var BattleEventType;
|
|
14
|
-
(function (BattleEventType) {
|
|
15
|
-
BattleEventType["Miss"] = "Miss";
|
|
16
|
-
BattleEventType["Block"] = "Block";
|
|
17
|
-
BattleEventType["Hit"] = "Hit";
|
|
18
|
-
})(BattleEventType = exports.BattleEventType || (exports.BattleEventType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BattleEventType = exports.BattleSocketEvents = void 0;
|
|
4
|
+
var BattleSocketEvents;
|
|
5
|
+
(function (BattleSocketEvents) {
|
|
6
|
+
BattleSocketEvents["InitTargeting"] = "InitTargeting";
|
|
7
|
+
BattleSocketEvents["StopTargeting"] = "StopTargeting";
|
|
8
|
+
BattleSocketEvents["CancelTargeting"] = "CancelTargeting";
|
|
9
|
+
BattleSocketEvents["BattleEvent"] = "BattleEvent";
|
|
10
|
+
BattleSocketEvents["BattleDeath"] = "BattleDeath";
|
|
11
|
+
BattleSocketEvents["RangedAttackFailure"] = "RangedAttackFailure";
|
|
12
|
+
})(BattleSocketEvents = exports.BattleSocketEvents || (exports.BattleSocketEvents = {}));
|
|
13
|
+
var BattleEventType;
|
|
14
|
+
(function (BattleEventType) {
|
|
15
|
+
BattleEventType["Miss"] = "Miss";
|
|
16
|
+
BattleEventType["Block"] = "Block";
|
|
17
|
+
BattleEventType["Hit"] = "Hit";
|
|
18
|
+
})(BattleEventType = exports.BattleEventType || (exports.BattleEventType = {}));
|
|
19
19
|
//# sourceMappingURL=battle.types.js.map
|
|
@@ -1,152 +1,150 @@
|
|
|
1
|
-
import { AnimationDirection } from "./animation.types";
|
|
2
|
-
import { EntityAttackType, EntityType } from "./entity.types";
|
|
3
|
-
import { IEquipmentSet } from "./equipment.types";
|
|
4
|
-
import { IItem } from "./item.types";
|
|
5
|
-
import { MapLayers } from "./maps.types";
|
|
6
|
-
import { IResource } from "./resource.types";
|
|
7
|
-
import { ISkill } from "./skills.types";
|
|
8
|
-
import { IUser } from "./user.types";
|
|
9
|
-
import { IViewElement } from "./view.types";
|
|
10
|
-
export interface ICharacter extends IResource {
|
|
11
|
-
name: string;
|
|
12
|
-
owner: IUser;
|
|
13
|
-
health: number;
|
|
14
|
-
maxHealth: number;
|
|
15
|
-
mana: number;
|
|
16
|
-
maxMana: number;
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
initialX: number;
|
|
20
|
-
initialY: number;
|
|
21
|
-
direction: AnimationDirection;
|
|
22
|
-
class: CharacterClass;
|
|
23
|
-
gender: CharacterGender;
|
|
24
|
-
totalWeightCapacity: number;
|
|
25
|
-
isOnline: boolean;
|
|
26
|
-
layer: MapLayers;
|
|
27
|
-
scene: string;
|
|
28
|
-
initialScene: string;
|
|
29
|
-
channelId: string;
|
|
30
|
-
otherEntitiesInView: any;
|
|
31
|
-
speed: number;
|
|
32
|
-
baseSpeed: number;
|
|
33
|
-
weight: number;
|
|
34
|
-
maxWeight: number;
|
|
35
|
-
movementIntervalMs: number;
|
|
36
|
-
baseMovementIntervalMs: number;
|
|
37
|
-
lastMovement: Date;
|
|
38
|
-
isBanned: boolean;
|
|
39
|
-
penalty: number;
|
|
40
|
-
banRemovalDate: Date;
|
|
41
|
-
hasPermanentBan: Date;
|
|
42
|
-
skills: ISkill;
|
|
43
|
-
target?: {
|
|
44
|
-
id: string;
|
|
45
|
-
type: EntityType;
|
|
46
|
-
} | null;
|
|
47
|
-
attackType: EntityAttackType;
|
|
48
|
-
attackIntervalSpeed: number;
|
|
49
|
-
view: {
|
|
50
|
-
characters: IViewElement;
|
|
51
|
-
npcs: IViewElement;
|
|
52
|
-
items: IViewElement;
|
|
53
|
-
};
|
|
54
|
-
equipment?: IEquipmentSet | string;
|
|
55
|
-
inventory: Promise<IItem | string>;
|
|
56
|
-
type: string;
|
|
57
|
-
isAlive: boolean;
|
|
58
|
-
hasQuest: boolean;
|
|
59
|
-
}
|
|
60
|
-
export declare enum CharacterClass {
|
|
61
|
-
None = "None",
|
|
62
|
-
Warrior = "Warrior",
|
|
63
|
-
Berserker = "Berserker",
|
|
64
|
-
Cleric = "Cleric",
|
|
65
|
-
Sorcerer = "Sorcerer",
|
|
66
|
-
Rogue = "Rogue",
|
|
67
|
-
Hunter = "Hunter",
|
|
68
|
-
Assassin = "Assassin"
|
|
69
|
-
}
|
|
70
|
-
export declare enum CharacterGender {
|
|
71
|
-
Male = "Male",
|
|
72
|
-
Female = "Female"
|
|
73
|
-
}
|
|
74
|
-
export declare enum CharacterSocketEvents {
|
|
75
|
-
CharacterCreate = "CharacterCreate",
|
|
76
|
-
CharacterPositionUpdate = "CharacterPositionUpdate",
|
|
77
|
-
CharacterPositionUpdateConfirm = "CharacterPositionUpdateConfirm",
|
|
78
|
-
CharacterLogout = "CharacterLogout",
|
|
79
|
-
CharacterPrivateMessage = "CharacterPrivateMessage",
|
|
80
|
-
CharacterPing = "CharacterPing",
|
|
81
|
-
CharacterForceDisconnect = "CharacterForceDisconnect",
|
|
82
|
-
Login = "Login"
|
|
83
|
-
}
|
|
84
|
-
export interface ICharacterPing {
|
|
85
|
-
id: string;
|
|
86
|
-
}
|
|
87
|
-
export interface ICharacterPositionUpdateConfirm {
|
|
88
|
-
id: string;
|
|
89
|
-
direction: string;
|
|
90
|
-
isValid: boolean;
|
|
91
|
-
}
|
|
92
|
-
export declare type Events = CharacterSocketEvents;
|
|
93
|
-
export interface ICharacterCreateFromClient {
|
|
94
|
-
id: string;
|
|
95
|
-
channelId: string;
|
|
96
|
-
}
|
|
97
|
-
export interface ICharacterCreateFromServer {
|
|
98
|
-
id: string;
|
|
99
|
-
channelId: string;
|
|
100
|
-
name: string;
|
|
101
|
-
x: number;
|
|
102
|
-
y: number;
|
|
103
|
-
direction: AnimationDirection;
|
|
104
|
-
layer: MapLayers;
|
|
105
|
-
speed: number;
|
|
106
|
-
movementIntervalMs: number;
|
|
107
|
-
health: number;
|
|
108
|
-
maxHealth: number;
|
|
109
|
-
mana: number;
|
|
110
|
-
maxMana: number;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
reason: string;
|
|
151
|
-
}
|
|
1
|
+
import { AnimationDirection } from "./animation.types";
|
|
2
|
+
import { EntityAttackType, EntityType } from "./entity.types";
|
|
3
|
+
import { IEquipmentSet } from "./equipment.types";
|
|
4
|
+
import { IItem } from "./item.types";
|
|
5
|
+
import { MapLayers } from "./maps.types";
|
|
6
|
+
import { IResource } from "./resource.types";
|
|
7
|
+
import { ISkill } from "./skills.types";
|
|
8
|
+
import { IUser } from "./user.types";
|
|
9
|
+
import { IViewElement } from "./view.types";
|
|
10
|
+
export interface ICharacter extends IResource {
|
|
11
|
+
name: string;
|
|
12
|
+
owner: IUser;
|
|
13
|
+
health: number;
|
|
14
|
+
maxHealth: number;
|
|
15
|
+
mana: number;
|
|
16
|
+
maxMana: number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
initialX: number;
|
|
20
|
+
initialY: number;
|
|
21
|
+
direction: AnimationDirection;
|
|
22
|
+
class: CharacterClass;
|
|
23
|
+
gender: CharacterGender;
|
|
24
|
+
totalWeightCapacity: number;
|
|
25
|
+
isOnline: boolean;
|
|
26
|
+
layer: MapLayers;
|
|
27
|
+
scene: string;
|
|
28
|
+
initialScene: string;
|
|
29
|
+
channelId: string;
|
|
30
|
+
otherEntitiesInView: any;
|
|
31
|
+
speed: number;
|
|
32
|
+
baseSpeed: number;
|
|
33
|
+
weight: number;
|
|
34
|
+
maxWeight: number;
|
|
35
|
+
movementIntervalMs: number;
|
|
36
|
+
baseMovementIntervalMs: number;
|
|
37
|
+
lastMovement: Date;
|
|
38
|
+
isBanned: boolean;
|
|
39
|
+
penalty: number;
|
|
40
|
+
banRemovalDate: Date;
|
|
41
|
+
hasPermanentBan: Date;
|
|
42
|
+
skills: ISkill;
|
|
43
|
+
target?: {
|
|
44
|
+
id: string;
|
|
45
|
+
type: EntityType;
|
|
46
|
+
} | null;
|
|
47
|
+
attackType: EntityAttackType;
|
|
48
|
+
attackIntervalSpeed: number;
|
|
49
|
+
view: {
|
|
50
|
+
characters: IViewElement;
|
|
51
|
+
npcs: IViewElement;
|
|
52
|
+
items: IViewElement;
|
|
53
|
+
};
|
|
54
|
+
equipment?: IEquipmentSet | string;
|
|
55
|
+
inventory: Promise<IItem | string>;
|
|
56
|
+
type: string;
|
|
57
|
+
isAlive: boolean;
|
|
58
|
+
hasQuest: boolean;
|
|
59
|
+
}
|
|
60
|
+
export declare enum CharacterClass {
|
|
61
|
+
None = "None",
|
|
62
|
+
Warrior = "Warrior",
|
|
63
|
+
Berserker = "Berserker",
|
|
64
|
+
Cleric = "Cleric",
|
|
65
|
+
Sorcerer = "Sorcerer",
|
|
66
|
+
Rogue = "Rogue",
|
|
67
|
+
Hunter = "Hunter",
|
|
68
|
+
Assassin = "Assassin"
|
|
69
|
+
}
|
|
70
|
+
export declare enum CharacterGender {
|
|
71
|
+
Male = "Male",
|
|
72
|
+
Female = "Female"
|
|
73
|
+
}
|
|
74
|
+
export declare enum CharacterSocketEvents {
|
|
75
|
+
CharacterCreate = "CharacterCreate",
|
|
76
|
+
CharacterPositionUpdate = "CharacterPositionUpdate",
|
|
77
|
+
CharacterPositionUpdateConfirm = "CharacterPositionUpdateConfirm",
|
|
78
|
+
CharacterLogout = "CharacterLogout",
|
|
79
|
+
CharacterPrivateMessage = "CharacterPrivateMessage",
|
|
80
|
+
CharacterPing = "CharacterPing",
|
|
81
|
+
CharacterForceDisconnect = "CharacterForceDisconnect",
|
|
82
|
+
Login = "Login"
|
|
83
|
+
}
|
|
84
|
+
export interface ICharacterPing {
|
|
85
|
+
id: string;
|
|
86
|
+
}
|
|
87
|
+
export interface ICharacterPositionUpdateConfirm {
|
|
88
|
+
id: string;
|
|
89
|
+
direction: string;
|
|
90
|
+
isValid: boolean;
|
|
91
|
+
}
|
|
92
|
+
export declare type Events = CharacterSocketEvents;
|
|
93
|
+
export interface ICharacterCreateFromClient {
|
|
94
|
+
id: string;
|
|
95
|
+
channelId: string;
|
|
96
|
+
}
|
|
97
|
+
export interface ICharacterCreateFromServer {
|
|
98
|
+
id: string;
|
|
99
|
+
channelId: string;
|
|
100
|
+
name: string;
|
|
101
|
+
x: number;
|
|
102
|
+
y: number;
|
|
103
|
+
direction: AnimationDirection;
|
|
104
|
+
layer: MapLayers;
|
|
105
|
+
speed: number;
|
|
106
|
+
movementIntervalMs: number;
|
|
107
|
+
health: number;
|
|
108
|
+
maxHealth: number;
|
|
109
|
+
mana: number;
|
|
110
|
+
maxMana: number;
|
|
111
|
+
}
|
|
112
|
+
export interface ICharacterPositionUpdateFromClient {
|
|
113
|
+
id: string;
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
newX: number;
|
|
117
|
+
newY: number;
|
|
118
|
+
direction: AnimationDirection;
|
|
119
|
+
}
|
|
120
|
+
export interface ICharacterPositionUpdateFromServer {
|
|
121
|
+
id: string;
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
newX: number;
|
|
125
|
+
newY: number;
|
|
126
|
+
name: string;
|
|
127
|
+
direction: AnimationDirection;
|
|
128
|
+
isMoving: boolean;
|
|
129
|
+
layer: MapLayers;
|
|
130
|
+
channelId: string;
|
|
131
|
+
speed: number;
|
|
132
|
+
movementIntervalMs: number;
|
|
133
|
+
health: number;
|
|
134
|
+
maxHealth: number;
|
|
135
|
+
mana: number;
|
|
136
|
+
maxMana: number;
|
|
137
|
+
}
|
|
138
|
+
export interface ICharacterLogout {
|
|
139
|
+
id: string;
|
|
140
|
+
}
|
|
141
|
+
export interface ICameraCoordinates {
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
144
|
+
width: number;
|
|
145
|
+
height: number;
|
|
146
|
+
}
|
|
147
|
+
export interface ICharacterForceDisconnect {
|
|
148
|
+
reason: string;
|
|
149
|
+
}
|
|
152
150
|
//# 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,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,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;AAE5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M,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;IAE3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,31 +1,31 @@
|
|
|
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["Login"] = "Login";
|
|
30
|
-
})(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["Login"] = "Login";
|
|
30
|
+
})(CharacterSocketEvents = exports.CharacterSocketEvents || (exports.CharacterSocketEvents = {}));
|
|
31
31
|
//# sourceMappingURL=character.types.js.map
|