@rpg-engine/shared 0.4.23 → 0.4.24
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 +150 -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.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
package/dist/types/npc.types.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NPCSocketEvents = exports.NPCMovementType = exports.NPCPathOrientation = exports.NPCAlignment = exports.NPCTargetType = void 0;
|
|
4
|
-
var NPCTargetType;
|
|
5
|
-
(function (NPCTargetType) {
|
|
6
|
-
NPCTargetType["Default"] = "Default";
|
|
7
|
-
NPCTargetType["Talking"] = "Talking";
|
|
8
|
-
})(NPCTargetType = exports.NPCTargetType || (exports.NPCTargetType = {}));
|
|
9
|
-
var NPCAlignment;
|
|
10
|
-
(function (NPCAlignment) {
|
|
11
|
-
NPCAlignment["Friendly"] = "Friendly";
|
|
12
|
-
NPCAlignment["Neutral"] = "Neutral";
|
|
13
|
-
NPCAlignment["Hostile"] = "Hostile";
|
|
14
|
-
})(NPCAlignment = exports.NPCAlignment || (exports.NPCAlignment = {}));
|
|
15
|
-
var NPCPathOrientation;
|
|
16
|
-
(function (NPCPathOrientation) {
|
|
17
|
-
NPCPathOrientation["Forward"] = "Forward";
|
|
18
|
-
NPCPathOrientation["Backward"] = "Backward";
|
|
19
|
-
})(NPCPathOrientation = exports.NPCPathOrientation || (exports.NPCPathOrientation = {}));
|
|
20
|
-
var NPCMovementType;
|
|
21
|
-
(function (NPCMovementType) {
|
|
22
|
-
NPCMovementType["Random"] = "Random";
|
|
23
|
-
NPCMovementType["FixedPath"] = "FixedPath";
|
|
24
|
-
NPCMovementType["Stopped"] = "Stopped";
|
|
25
|
-
NPCMovementType["MoveAway"] = "MoveAway";
|
|
26
|
-
NPCMovementType["MoveTowards"] = "MoveTowards";
|
|
27
|
-
})(NPCMovementType = exports.NPCMovementType || (exports.NPCMovementType = {}));
|
|
28
|
-
var NPCSocketEvents;
|
|
29
|
-
(function (NPCSocketEvents) {
|
|
30
|
-
NPCSocketEvents["NPCDataUpdate"] = "NPCDataUpdate";
|
|
31
|
-
NPCSocketEvents["NPCPositionUpdate"] = "NPCPositionUpdate";
|
|
32
|
-
NPCSocketEvents["NPCTalkToNPC"] = "NPCTalkToNPC";
|
|
33
|
-
NPCSocketEvents["NPCStartDialogNPC"] = "NPCStartDialogNPC";
|
|
34
|
-
NPCSocketEvents["NPCStopDialogNPC"] = "NPCStopDialogNPC";
|
|
35
|
-
})(NPCSocketEvents = exports.NPCSocketEvents || (exports.NPCSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NPCSocketEvents = exports.NPCMovementType = exports.NPCPathOrientation = exports.NPCAlignment = exports.NPCTargetType = void 0;
|
|
4
|
+
var NPCTargetType;
|
|
5
|
+
(function (NPCTargetType) {
|
|
6
|
+
NPCTargetType["Default"] = "Default";
|
|
7
|
+
NPCTargetType["Talking"] = "Talking";
|
|
8
|
+
})(NPCTargetType = exports.NPCTargetType || (exports.NPCTargetType = {}));
|
|
9
|
+
var NPCAlignment;
|
|
10
|
+
(function (NPCAlignment) {
|
|
11
|
+
NPCAlignment["Friendly"] = "Friendly";
|
|
12
|
+
NPCAlignment["Neutral"] = "Neutral";
|
|
13
|
+
NPCAlignment["Hostile"] = "Hostile";
|
|
14
|
+
})(NPCAlignment = exports.NPCAlignment || (exports.NPCAlignment = {}));
|
|
15
|
+
var NPCPathOrientation;
|
|
16
|
+
(function (NPCPathOrientation) {
|
|
17
|
+
NPCPathOrientation["Forward"] = "Forward";
|
|
18
|
+
NPCPathOrientation["Backward"] = "Backward";
|
|
19
|
+
})(NPCPathOrientation = exports.NPCPathOrientation || (exports.NPCPathOrientation = {}));
|
|
20
|
+
var NPCMovementType;
|
|
21
|
+
(function (NPCMovementType) {
|
|
22
|
+
NPCMovementType["Random"] = "Random";
|
|
23
|
+
NPCMovementType["FixedPath"] = "FixedPath";
|
|
24
|
+
NPCMovementType["Stopped"] = "Stopped";
|
|
25
|
+
NPCMovementType["MoveAway"] = "MoveAway";
|
|
26
|
+
NPCMovementType["MoveTowards"] = "MoveTowards";
|
|
27
|
+
})(NPCMovementType = exports.NPCMovementType || (exports.NPCMovementType = {}));
|
|
28
|
+
var NPCSocketEvents;
|
|
29
|
+
(function (NPCSocketEvents) {
|
|
30
|
+
NPCSocketEvents["NPCDataUpdate"] = "NPCDataUpdate";
|
|
31
|
+
NPCSocketEvents["NPCPositionUpdate"] = "NPCPositionUpdate";
|
|
32
|
+
NPCSocketEvents["NPCTalkToNPC"] = "NPCTalkToNPC";
|
|
33
|
+
NPCSocketEvents["NPCStartDialogNPC"] = "NPCStartDialogNPC";
|
|
34
|
+
NPCSocketEvents["NPCStopDialogNPC"] = "NPCStopDialogNPC";
|
|
35
|
+
})(NPCSocketEvents = exports.NPCSocketEvents || (exports.NPCSocketEvents = {}));
|
|
36
36
|
//# sourceMappingURL=npc.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npcMetadata.types.d.ts","sourceRoot":"","sources":["../../src/types/npcMetadata.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,UAAU,YAAa,SAAQ,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;IAC9C,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,EAYrC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NPCMetaData = void 0;
|
|
4
|
+
const GridHelper_1 = require("../libs/GridHelper");
|
|
5
|
+
const character_types_1 = require("./character.types");
|
|
6
|
+
const maps_types_1 = require("./maps.types");
|
|
7
|
+
exports.NPCMetaData = [
|
|
8
|
+
{
|
|
9
|
+
key: "alice",
|
|
10
|
+
name: "Alice",
|
|
11
|
+
x: (0, GridHelper_1.FromGridX)(22),
|
|
12
|
+
y: (0, GridHelper_1.FromGridY)(12),
|
|
13
|
+
direction: "down",
|
|
14
|
+
scene: "MainScene",
|
|
15
|
+
class: character_types_1.CharacterClass.Cleric,
|
|
16
|
+
gender: character_types_1.CharacterGender.Female,
|
|
17
|
+
layer: maps_types_1.MapLayers.Player,
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=npcMetadata.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npcMetadata.types.js","sourceRoot":"","sources":["../../src/types/npcMetadata.types.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAC1D,uDAAoE;AACpE,6CAAyC;AAO5B,QAAA,WAAW,GAAmB;IACzC;QACE,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE,OAAO;QACb,CAAC,EAAE,IAAA,sBAAS,EAAC,EAAE,CAAC;QAChB,CAAC,EAAE,IAAA,sBAAS,EAAC,EAAE,CAAC;QAChB,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,gCAAc,CAAC,MAAM;QAC5B,MAAM,EAAE,iCAAe,CAAC,MAAM;QAC9B,KAAK,EAAE,sBAAS,CAAC,MAAM;KACxB;CACF,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface IPaginationResponse<T> {
|
|
2
|
-
docs: T[];
|
|
3
|
-
totalDocs: number;
|
|
4
|
-
offset: number;
|
|
5
|
-
limit: number;
|
|
6
|
-
totalPages: number;
|
|
7
|
-
page: number;
|
|
8
|
-
pagingCounter: number;
|
|
9
|
-
hasPrevPage: boolean;
|
|
10
|
-
hasNextPage: boolean;
|
|
11
|
-
prevPage: number | null;
|
|
12
|
-
nextPage: number | null;
|
|
13
|
-
}
|
|
1
|
+
export interface IPaginationResponse<T> {
|
|
2
|
+
docs: T[];
|
|
3
|
+
totalDocs: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
page: number;
|
|
8
|
+
pagingCounter: number;
|
|
9
|
+
hasPrevPage: boolean;
|
|
10
|
+
hasNextPage: boolean;
|
|
11
|
+
prevPage: number | null;
|
|
12
|
+
nextPage: number | null;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=pagination.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=pagination.types.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare enum Countries {
|
|
2
|
-
US = "US",
|
|
3
|
-
Brazil = "Brazil",
|
|
4
|
-
Global = "Global"
|
|
5
|
-
}
|
|
6
|
-
export interface ICountry {
|
|
7
|
-
name: string;
|
|
8
|
-
code: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICountryCity {
|
|
11
|
-
country: {
|
|
12
|
-
name: string;
|
|
13
|
-
code: string;
|
|
14
|
-
};
|
|
15
|
-
cities: string[];
|
|
16
|
-
}
|
|
1
|
+
export declare enum Countries {
|
|
2
|
+
US = "US",
|
|
3
|
+
Brazil = "Brazil",
|
|
4
|
+
Global = "Global"
|
|
5
|
+
}
|
|
6
|
+
export interface ICountry {
|
|
7
|
+
name: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICountryCity {
|
|
11
|
+
country: {
|
|
12
|
+
name: string;
|
|
13
|
+
code: string;
|
|
14
|
+
};
|
|
15
|
+
cities: string[];
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=places.types.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Countries = void 0;
|
|
4
|
-
var Countries;
|
|
5
|
-
(function (Countries) {
|
|
6
|
-
Countries["US"] = "US";
|
|
7
|
-
Countries["Brazil"] = "Brazil";
|
|
8
|
-
Countries["Global"] = "Global";
|
|
9
|
-
})(Countries = exports.Countries || (exports.Countries = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Countries = void 0;
|
|
4
|
+
var Countries;
|
|
5
|
+
(function (Countries) {
|
|
6
|
+
Countries["US"] = "US";
|
|
7
|
+
Countries["Brazil"] = "Brazil";
|
|
8
|
+
Countries["Global"] = "Global";
|
|
9
|
+
})(Countries = exports.Countries || (exports.Countries = {}));
|
|
10
10
|
//# sourceMappingURL=places.types.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IEntityBasicInfo } from "./entity.types";
|
|
2
|
+
export declare enum PlayerSocketEvents {
|
|
3
|
+
PlayerCreate = "PlayerCreate",
|
|
4
|
+
PlayerPositionUpdate = "PlayerPositionUpdate",
|
|
5
|
+
PlayerPositionUpdateConfirm = "PlayerPositionUpdateConfirm",
|
|
6
|
+
PlayerLogout = "PlayerLogout",
|
|
7
|
+
PlayerPrivateMessage = "PlayerPrivateMessage",
|
|
8
|
+
PlayerPing = "PlayerPing",
|
|
9
|
+
PlayerForceDisconnect = "PlayerForceDisconnect"
|
|
10
|
+
}
|
|
11
|
+
export interface IPlayerPing {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IPlayerPositionUpdateConfirm {
|
|
15
|
+
id: string;
|
|
16
|
+
direction: string;
|
|
17
|
+
isValid: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare type Events = PlayerSocketEvents;
|
|
20
|
+
export interface IConnectedPlayer {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
channelId: string;
|
|
26
|
+
direction?: string;
|
|
27
|
+
isMoving?: boolean;
|
|
28
|
+
cameraCoordinates: ICameraCoordinates;
|
|
29
|
+
otherEntitiesInView: IEntitiesInView;
|
|
30
|
+
}
|
|
31
|
+
export interface IEntitiesInView {
|
|
32
|
+
[id: string]: IEntityBasicInfo;
|
|
33
|
+
}
|
|
34
|
+
export interface IConnectedPlayers {
|
|
35
|
+
[id: string]: IConnectedPlayer;
|
|
36
|
+
}
|
|
37
|
+
export interface PlayerLogoutPayload {
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ICameraCoordinates {
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}
|
|
46
|
+
export interface IPlayerForceDisconnect {
|
|
47
|
+
reason: string;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=player.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player.types.d.ts","sourceRoot":"","sources":["../../src/types/player.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,oBAAY,kBAAkB;IAC5B,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,2BAA2B,gCAAgC;IAC3D,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,qBAAqB,0BAA0B;CAChD;AAED,MAAM,WAAW,WAAW;IAE1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,oBAAY,MAAM,GAAG,kBAAkB,CAAC;AAExC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,mBAAmB,EAAE,eAAe,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,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,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlayerSocketEvents = void 0;
|
|
4
|
+
var PlayerSocketEvents;
|
|
5
|
+
(function (PlayerSocketEvents) {
|
|
6
|
+
PlayerSocketEvents["PlayerCreate"] = "PlayerCreate";
|
|
7
|
+
PlayerSocketEvents["PlayerPositionUpdate"] = "PlayerPositionUpdate";
|
|
8
|
+
PlayerSocketEvents["PlayerPositionUpdateConfirm"] = "PlayerPositionUpdateConfirm";
|
|
9
|
+
PlayerSocketEvents["PlayerLogout"] = "PlayerLogout";
|
|
10
|
+
PlayerSocketEvents["PlayerPrivateMessage"] = "PlayerPrivateMessage";
|
|
11
|
+
PlayerSocketEvents["PlayerPing"] = "PlayerPing";
|
|
12
|
+
PlayerSocketEvents["PlayerForceDisconnect"] = "PlayerForceDisconnect";
|
|
13
|
+
})(PlayerSocketEvents = exports.PlayerSocketEvents || (exports.PlayerSocketEvents = {}));
|
|
14
|
+
//# sourceMappingURL=player.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player.types.js","sourceRoot":"","sources":["../../src/types/player.types.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;IAC7C,iFAA2D,CAAA;IAC3D,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;IAC7C,+CAAyB,CAAA;IACzB,qEAA+C,CAAA;AACjD,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const PreloadSceneData: {
|
|
2
|
-
key: string;
|
|
3
|
-
assets: {};
|
|
4
|
-
};
|
|
1
|
+
export declare const PreloadSceneData: {
|
|
2
|
+
key: string;
|
|
3
|
+
assets: {};
|
|
4
|
+
};
|
|
5
5
|
//# sourceMappingURL=preloadScene.types.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PreloadSceneData = void 0;
|
|
4
|
-
exports.PreloadSceneData = {
|
|
5
|
-
key: "PreloadScene",
|
|
6
|
-
assets: {},
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreloadSceneData = void 0;
|
|
4
|
+
exports.PreloadSceneData = {
|
|
5
|
+
key: "PreloadScene",
|
|
6
|
+
assets: {},
|
|
7
|
+
};
|
|
8
8
|
//# sourceMappingURL=preloadScene.types.js.map
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { ICharacter } from "./character.types";
|
|
2
|
-
export interface IQuest {
|
|
3
|
-
id: string;
|
|
4
|
-
key: string;
|
|
5
|
-
npcId: string;
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
rewards: IQuestReward[];
|
|
9
|
-
objectives: IQuestObjectiveKill[] | IQuestObjectiveInteraction[];
|
|
10
|
-
}
|
|
11
|
-
export interface IQuestReward {
|
|
12
|
-
id: string;
|
|
13
|
-
itemKeys: string[];
|
|
14
|
-
spellKeys: string[];
|
|
15
|
-
qty: number;
|
|
16
|
-
}
|
|
17
|
-
interface IQuestObjective {
|
|
18
|
-
id: string;
|
|
19
|
-
type: QuestType;
|
|
20
|
-
status: QuestStatus;
|
|
21
|
-
}
|
|
22
|
-
export interface IQuestObjectiveKill extends IQuestObjective {
|
|
23
|
-
killCount: number;
|
|
24
|
-
killCountTarget: number;
|
|
25
|
-
creatureKeys: string[];
|
|
26
|
-
}
|
|
27
|
-
export interface IQuestObjectiveInteraction extends IQuestObjective {
|
|
28
|
-
targetNPCkey: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IQuestRecord {
|
|
31
|
-
id: string;
|
|
32
|
-
character: ICharacter | string;
|
|
33
|
-
objective: IQuestObjectiveKill | IQuestObjectiveInteraction | string;
|
|
34
|
-
}
|
|
35
|
-
export declare enum QuestType {
|
|
36
|
-
Kill = "Kill",
|
|
37
|
-
Interaction = "Interaction"
|
|
38
|
-
}
|
|
39
|
-
export declare enum QuestStatus {
|
|
40
|
-
Pending = "Pending",
|
|
41
|
-
InProgress = "InProgress",
|
|
42
|
-
Completed = "Completed"
|
|
43
|
-
}
|
|
44
|
-
export interface IGetQuests {
|
|
45
|
-
npcId: string;
|
|
46
|
-
status: QuestStatus;
|
|
47
|
-
}
|
|
48
|
-
export interface IQuestsResponse {
|
|
49
|
-
npcId: string;
|
|
50
|
-
quests: IQuest[];
|
|
51
|
-
}
|
|
52
|
-
export interface IChooseQuest {
|
|
53
|
-
npcId: string;
|
|
54
|
-
questId: string;
|
|
55
|
-
}
|
|
56
|
-
export declare enum QuestSocketEvents {
|
|
57
|
-
Started = "Started",
|
|
58
|
-
Completed = "Completed",
|
|
59
|
-
GetQuests = "GetQuests",
|
|
60
|
-
ChooseQuest = "ChooseQuest"
|
|
61
|
-
}
|
|
62
|
-
export interface IQuestEventFromServer {
|
|
63
|
-
characterId: string;
|
|
64
|
-
npcId: string;
|
|
65
|
-
questId: string;
|
|
66
|
-
}
|
|
67
|
-
export {};
|
|
1
|
+
import { ICharacter } from "./character.types";
|
|
2
|
+
export interface IQuest {
|
|
3
|
+
id: string;
|
|
4
|
+
key: string;
|
|
5
|
+
npcId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
rewards: IQuestReward[];
|
|
9
|
+
objectives: IQuestObjectiveKill[] | IQuestObjectiveInteraction[];
|
|
10
|
+
}
|
|
11
|
+
export interface IQuestReward {
|
|
12
|
+
id: string;
|
|
13
|
+
itemKeys: string[];
|
|
14
|
+
spellKeys: string[];
|
|
15
|
+
qty: number;
|
|
16
|
+
}
|
|
17
|
+
interface IQuestObjective {
|
|
18
|
+
id: string;
|
|
19
|
+
type: QuestType;
|
|
20
|
+
status: QuestStatus;
|
|
21
|
+
}
|
|
22
|
+
export interface IQuestObjectiveKill extends IQuestObjective {
|
|
23
|
+
killCount: number;
|
|
24
|
+
killCountTarget: number;
|
|
25
|
+
creatureKeys: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface IQuestObjectiveInteraction extends IQuestObjective {
|
|
28
|
+
targetNPCkey: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IQuestRecord {
|
|
31
|
+
id: string;
|
|
32
|
+
character: ICharacter | string;
|
|
33
|
+
objective: IQuestObjectiveKill | IQuestObjectiveInteraction | string;
|
|
34
|
+
}
|
|
35
|
+
export declare enum QuestType {
|
|
36
|
+
Kill = "Kill",
|
|
37
|
+
Interaction = "Interaction"
|
|
38
|
+
}
|
|
39
|
+
export declare enum QuestStatus {
|
|
40
|
+
Pending = "Pending",
|
|
41
|
+
InProgress = "InProgress",
|
|
42
|
+
Completed = "Completed"
|
|
43
|
+
}
|
|
44
|
+
export interface IGetQuests {
|
|
45
|
+
npcId: string;
|
|
46
|
+
status: QuestStatus;
|
|
47
|
+
}
|
|
48
|
+
export interface IQuestsResponse {
|
|
49
|
+
npcId: string;
|
|
50
|
+
quests: IQuest[];
|
|
51
|
+
}
|
|
52
|
+
export interface IChooseQuest {
|
|
53
|
+
npcId: string;
|
|
54
|
+
questId: string;
|
|
55
|
+
}
|
|
56
|
+
export declare enum QuestSocketEvents {
|
|
57
|
+
Started = "Started",
|
|
58
|
+
Completed = "Completed",
|
|
59
|
+
GetQuests = "GetQuests",
|
|
60
|
+
ChooseQuest = "ChooseQuest"
|
|
61
|
+
}
|
|
62
|
+
export interface IQuestEventFromServer {
|
|
63
|
+
characterId: string;
|
|
64
|
+
npcId: string;
|
|
65
|
+
questId: string;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
68
68
|
//# sourceMappingURL=quest.types.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QuestSocketEvents = exports.QuestStatus = exports.QuestType = void 0;
|
|
4
|
-
var QuestType;
|
|
5
|
-
(function (QuestType) {
|
|
6
|
-
QuestType["Kill"] = "Kill";
|
|
7
|
-
QuestType["Interaction"] = "Interaction";
|
|
8
|
-
})(QuestType = exports.QuestType || (exports.QuestType = {}));
|
|
9
|
-
var QuestStatus;
|
|
10
|
-
(function (QuestStatus) {
|
|
11
|
-
QuestStatus["Pending"] = "Pending";
|
|
12
|
-
QuestStatus["InProgress"] = "InProgress";
|
|
13
|
-
QuestStatus["Completed"] = "Completed";
|
|
14
|
-
})(QuestStatus = exports.QuestStatus || (exports.QuestStatus = {}));
|
|
15
|
-
var QuestSocketEvents;
|
|
16
|
-
(function (QuestSocketEvents) {
|
|
17
|
-
QuestSocketEvents["Started"] = "Started";
|
|
18
|
-
QuestSocketEvents["Completed"] = "Completed";
|
|
19
|
-
QuestSocketEvents["GetQuests"] = "GetQuests";
|
|
20
|
-
QuestSocketEvents["ChooseQuest"] = "ChooseQuest";
|
|
21
|
-
})(QuestSocketEvents = exports.QuestSocketEvents || (exports.QuestSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestSocketEvents = exports.QuestStatus = exports.QuestType = void 0;
|
|
4
|
+
var QuestType;
|
|
5
|
+
(function (QuestType) {
|
|
6
|
+
QuestType["Kill"] = "Kill";
|
|
7
|
+
QuestType["Interaction"] = "Interaction";
|
|
8
|
+
})(QuestType = exports.QuestType || (exports.QuestType = {}));
|
|
9
|
+
var QuestStatus;
|
|
10
|
+
(function (QuestStatus) {
|
|
11
|
+
QuestStatus["Pending"] = "Pending";
|
|
12
|
+
QuestStatus["InProgress"] = "InProgress";
|
|
13
|
+
QuestStatus["Completed"] = "Completed";
|
|
14
|
+
})(QuestStatus = exports.QuestStatus || (exports.QuestStatus = {}));
|
|
15
|
+
var QuestSocketEvents;
|
|
16
|
+
(function (QuestSocketEvents) {
|
|
17
|
+
QuestSocketEvents["Started"] = "Started";
|
|
18
|
+
QuestSocketEvents["Completed"] = "Completed";
|
|
19
|
+
QuestSocketEvents["GetQuests"] = "GetQuests";
|
|
20
|
+
QuestSocketEvents["ChooseQuest"] = "ChooseQuest";
|
|
21
|
+
})(QuestSocketEvents = exports.QuestSocketEvents || (exports.QuestSocketEvents = {}));
|
|
22
22
|
//# sourceMappingURL=quest.types.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface IResource {
|
|
2
|
-
_id: string;
|
|
3
|
-
createdAt?: string;
|
|
4
|
-
updatedAt?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface IResource {
|
|
2
|
+
_id: string;
|
|
3
|
+
createdAt?: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=resource.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=resource.types.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface ISceneData {
|
|
2
|
-
key: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const ScenesMetaData: {
|
|
5
|
-
MainScene: {
|
|
6
|
-
map: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
export interface ISceneData {
|
|
2
|
+
key: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const ScenesMetaData: {
|
|
5
|
+
MainScene: {
|
|
6
|
+
map: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
9
|
//# sourceMappingURL=scene.types.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScenesMetaData = void 0;
|
|
4
|
-
exports.ScenesMetaData = {
|
|
5
|
-
MainScene: {
|
|
6
|
-
map: "another_map",
|
|
7
|
-
},
|
|
8
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScenesMetaData = void 0;
|
|
4
|
+
exports.ScenesMetaData = {
|
|
5
|
+
MainScene: {
|
|
6
|
+
map: "another_map",
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
9
|
//# sourceMappingURL=scene.types.js.map
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { IResource } from "./resource.types";
|
|
2
|
-
export declare enum SkillSocketEvents {
|
|
3
|
-
ExperienceGain = "ExperienceGain",
|
|
4
|
-
SkillGain = "SkillGain",
|
|
5
|
-
ReadInfo = "ReadInfo"
|
|
6
|
-
}
|
|
7
|
-
export declare enum SkillEventType {
|
|
8
|
-
LevelUp = "LevelUp",
|
|
9
|
-
SkillLevelUp = "SkillLevelUp"
|
|
10
|
-
}
|
|
11
|
-
export interface ISkillEventFromServer {
|
|
12
|
-
characterId: string;
|
|
13
|
-
targetId: string;
|
|
14
|
-
targetType: "Character" | "NPC";
|
|
15
|
-
eventType: SkillEventType;
|
|
16
|
-
exp?: number;
|
|
17
|
-
level?: number;
|
|
18
|
-
skill?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ISkillDetails {
|
|
21
|
-
type: SkillType;
|
|
22
|
-
level: number;
|
|
23
|
-
skillPoints: number;
|
|
24
|
-
skillPointsToNextLevel: number;
|
|
25
|
-
}
|
|
26
|
-
export interface ISkill extends IResource {
|
|
27
|
-
owner: string;
|
|
28
|
-
level: number;
|
|
29
|
-
xpGainRate: number;
|
|
30
|
-
experience: number;
|
|
31
|
-
xpToNextLevel: number;
|
|
32
|
-
stamina: ISkillDetails;
|
|
33
|
-
magic: ISkillDetails;
|
|
34
|
-
magicResistance: ISkillDetails;
|
|
35
|
-
strength: ISkillDetails;
|
|
36
|
-
resistance: ISkillDetails;
|
|
37
|
-
dexterity: ISkillDetails;
|
|
38
|
-
first: ISkillDetails;
|
|
39
|
-
club: ISkillDetails;
|
|
40
|
-
sword: ISkillDetails;
|
|
41
|
-
axe: ISkillDetails;
|
|
42
|
-
distance: ISkillDetails;
|
|
43
|
-
shielding: ISkillDetails;
|
|
44
|
-
dagger: ISkillDetails;
|
|
45
|
-
fishing: ISkillDetails;
|
|
46
|
-
mining: ISkillDetails;
|
|
47
|
-
lumberjacking: ISkillDetails;
|
|
48
|
-
cooking: ISkillDetails;
|
|
49
|
-
alchemy: ISkillDetails;
|
|
50
|
-
}
|
|
51
|
-
export declare enum SkillType {
|
|
52
|
-
BasicAttributes = "BasicAttributes",
|
|
53
|
-
Combat = "Combat",
|
|
54
|
-
Crafting = "Crafting",
|
|
55
|
-
Gathering = "Gathering",
|
|
56
|
-
Magic = "Magic",
|
|
57
|
-
Misc = "Misc"
|
|
58
|
-
}
|
|
1
|
+
import { IResource } from "./resource.types";
|
|
2
|
+
export declare enum SkillSocketEvents {
|
|
3
|
+
ExperienceGain = "ExperienceGain",
|
|
4
|
+
SkillGain = "SkillGain",
|
|
5
|
+
ReadInfo = "ReadInfo"
|
|
6
|
+
}
|
|
7
|
+
export declare enum SkillEventType {
|
|
8
|
+
LevelUp = "LevelUp",
|
|
9
|
+
SkillLevelUp = "SkillLevelUp"
|
|
10
|
+
}
|
|
11
|
+
export interface ISkillEventFromServer {
|
|
12
|
+
characterId: string;
|
|
13
|
+
targetId: string;
|
|
14
|
+
targetType: "Character" | "NPC";
|
|
15
|
+
eventType: SkillEventType;
|
|
16
|
+
exp?: number;
|
|
17
|
+
level?: number;
|
|
18
|
+
skill?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ISkillDetails {
|
|
21
|
+
type: SkillType;
|
|
22
|
+
level: number;
|
|
23
|
+
skillPoints: number;
|
|
24
|
+
skillPointsToNextLevel: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ISkill extends IResource {
|
|
27
|
+
owner: string;
|
|
28
|
+
level: number;
|
|
29
|
+
xpGainRate: number;
|
|
30
|
+
experience: number;
|
|
31
|
+
xpToNextLevel: number;
|
|
32
|
+
stamina: ISkillDetails;
|
|
33
|
+
magic: ISkillDetails;
|
|
34
|
+
magicResistance: ISkillDetails;
|
|
35
|
+
strength: ISkillDetails;
|
|
36
|
+
resistance: ISkillDetails;
|
|
37
|
+
dexterity: ISkillDetails;
|
|
38
|
+
first: ISkillDetails;
|
|
39
|
+
club: ISkillDetails;
|
|
40
|
+
sword: ISkillDetails;
|
|
41
|
+
axe: ISkillDetails;
|
|
42
|
+
distance: ISkillDetails;
|
|
43
|
+
shielding: ISkillDetails;
|
|
44
|
+
dagger: ISkillDetails;
|
|
45
|
+
fishing: ISkillDetails;
|
|
46
|
+
mining: ISkillDetails;
|
|
47
|
+
lumberjacking: ISkillDetails;
|
|
48
|
+
cooking: ISkillDetails;
|
|
49
|
+
alchemy: ISkillDetails;
|
|
50
|
+
}
|
|
51
|
+
export declare enum SkillType {
|
|
52
|
+
BasicAttributes = "BasicAttributes",
|
|
53
|
+
Combat = "Combat",
|
|
54
|
+
Crafting = "Crafting",
|
|
55
|
+
Gathering = "Gathering",
|
|
56
|
+
Magic = "Magic",
|
|
57
|
+
Misc = "Misc"
|
|
58
|
+
}
|
|
59
59
|
//# sourceMappingURL=skills.types.d.ts.map
|