@rpg-engine/shared 0.2.30 → 0.2.33
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/dist/constants/npc.constants.d.ts +2 -0
- package/dist/constants/npc.constants.d.ts.map +1 -0
- package/dist/constants/npc.constants.js +5 -0
- package/dist/constants/npc.constants.js.map +1 -0
- package/dist/constants/socket.constants.d.ts +3 -0
- package/dist/constants/socket.constants.d.ts.map +1 -0
- package/dist/constants/socket.constants.js +7 -0
- package/dist/constants/socket.constants.js.map +1 -0
- package/dist/constants/world.constants.d.ts +11 -0
- package/dist/constants/world.constants.d.ts.map +1 -0
- package/dist/constants/world.constants.js +14 -0
- package/dist/constants/world.constants.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/libs/GridHelper.d.ts +12 -0
- package/dist/libs/GridHelper.d.ts.map +1 -0
- package/dist/libs/GridHelper.js +38 -0
- package/dist/libs/GridHelper.js.map +1 -0
- package/dist/libs/MathHelper.d.ts +17 -0
- package/dist/libs/MathHelper.d.ts.map +1 -0
- package/dist/libs/MathHelper.js +15 -0
- package/dist/libs/MathHelper.js.map +1 -0
- package/dist/libs/SocketHelper.d.ts +3 -0
- package/dist/libs/SocketHelper.d.ts.map +1 -0
- package/dist/libs/SocketHelper.js +15 -0
- package/dist/libs/SocketHelper.js.map +1 -0
- package/dist/libs/TextHelper.d.ts +8 -0
- package/dist/libs/TextHelper.d.ts.map +1 -0
- package/dist/libs/TextHelper.js +22 -0
- package/dist/libs/TextHelper.js.map +1 -0
- package/dist/libs/TypeHelper.d.ts +4 -0
- package/dist/libs/TypeHelper.d.ts.map +1 -0
- package/dist/libs/TypeHelper.js +17 -0
- package/dist/libs/TypeHelper.js.map +1 -0
- package/dist/translations/app-rate.lang.json +38 -0
- package/dist/translations/assets.lang.json +82 -0
- package/dist/translations/auth.lang.json +182 -0
- package/dist/translations/email.lang.json +70 -0
- package/dist/translations/error.lang.json +18 -0
- package/dist/translations/form.lang.json +94 -0
- package/dist/translations/global.lang.json +90 -0
- package/dist/translations/logs.lang.json +6 -0
- package/dist/translations/onboarding.lang.d.ts +11 -0
- package/dist/translations/onboarding.lang.d.ts.map +1 -0
- package/dist/translations/onboarding.lang.js +22 -0
- package/dist/translations/onboarding.lang.js.map +1 -0
- package/dist/translations/onboarding.lang.json +50 -0
- package/dist/translations/order.lang.json +90 -0
- package/dist/translations/search.lang.json +50 -0
- package/dist/translations/settings.lang.json +14 -0
- package/dist/translations/tabs.lang.json +22 -0
- package/dist/translations/users.lang.json +22 -0
- package/dist/translations/validation.lang.json +86 -0
- package/dist/types/animation.types.d.ts +8 -0
- package/dist/types/animation.types.d.ts.map +1 -0
- package/dist/types/animation.types.js +3 -0
- package/dist/types/animation.types.js.map +1 -0
- package/dist/types/api.types.d.ts +22 -0
- package/dist/types/api.types.d.ts.map +1 -0
- package/dist/types/api.types.js +21 -0
- package/dist/types/api.types.js.map +1 -0
- package/dist/types/asset.types.d.ts +7 -0
- package/dist/types/asset.types.d.ts.map +1 -0
- package/dist/types/asset.types.js +3 -0
- package/dist/types/asset.types.js.map +1 -0
- package/dist/types/auth.types.d.ts +8 -0
- package/dist/types/auth.types.d.ts.map +1 -0
- package/dist/types/auth.types.js +3 -0
- package/dist/types/auth.types.js.map +1 -0
- package/dist/types/battle.types.d.ts +28 -0
- package/dist/types/battle.types.d.ts.map +1 -0
- package/dist/types/battle.types.js +18 -0
- package/dist/types/battle.types.js.map +1 -0
- package/dist/types/character.types.d.ts +119 -0
- package/dist/types/character.types.d.ts.map +1 -0
- package/dist/types/character.types.js +30 -0
- package/dist/types/character.types.js.map +1 -0
- package/dist/types/chat.types.d.ts +5 -0
- package/dist/types/chat.types.d.ts.map +1 -0
- package/dist/types/chat.types.js +9 -0
- package/dist/types/chat.types.js.map +1 -0
- package/dist/types/device.types.d.ts +25 -0
- package/dist/types/device.types.d.ts.map +1 -0
- package/dist/types/device.types.js +8 -0
- package/dist/types/device.types.js.map +1 -0
- package/dist/types/entity.types.d.ts +13 -0
- package/dist/types/entity.types.d.ts.map +1 -0
- package/dist/types/entity.types.js +9 -0
- package/dist/types/entity.types.js.map +1 -0
- package/dist/types/env.types.d.ts +6 -0
- package/dist/types/env.types.d.ts.map +1 -0
- package/dist/types/env.types.js +10 -0
- package/dist/types/env.types.js.map +1 -0
- package/dist/types/googleOAuth.types.d.ts +48 -0
- package/dist/types/googleOAuth.types.d.ts.map +1 -0
- package/dist/types/googleOAuth.types.js +3 -0
- package/dist/types/googleOAuth.types.js.map +1 -0
- package/dist/types/maps.types.d.ts +17 -0
- package/dist/types/maps.types.d.ts.map +1 -0
- package/dist/types/maps.types.js +11 -0
- package/dist/types/maps.types.js.map +1 -0
- package/dist/types/notification.types.d.ts +15 -0
- package/dist/types/notification.types.d.ts.map +1 -0
- package/dist/types/notification.types.js +3 -0
- package/dist/types/notification.types.js.map +1 -0
- package/dist/types/npc.types.d.ts +98 -0
- package/dist/types/npc.types.d.ts.map +1 -0
- package/dist/types/npc.types.js +42 -0
- package/dist/types/npc.types.js.map +1 -0
- 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 +14 -0
- package/dist/types/pagination.types.d.ts.map +1 -0
- package/dist/types/pagination.types.js +3 -0
- package/dist/types/pagination.types.js.map +1 -0
- package/dist/types/places.types.d.ts +17 -0
- package/dist/types/places.types.d.ts.map +1 -0
- package/dist/types/places.types.js +10 -0
- package/dist/types/places.types.js.map +1 -0
- 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 +5 -0
- package/dist/types/preloadScene.types.d.ts.map +1 -0
- package/dist/types/preloadScene.types.js +8 -0
- package/dist/types/preloadScene.types.js.map +1 -0
- package/dist/types/resource.types.d.ts +6 -0
- package/dist/types/resource.types.d.ts.map +1 -0
- package/dist/types/resource.types.js +3 -0
- package/dist/types/resource.types.js.map +1 -0
- package/dist/types/scene.types.d.ts +9 -0
- package/dist/types/scene.types.d.ts.map +1 -0
- package/dist/types/scene.types.js +9 -0
- package/dist/types/scene.types.js.map +1 -0
- package/dist/types/skills.types.d.ts +25 -0
- package/dist/types/skills.types.d.ts.map +1 -0
- package/dist/types/skills.types.js +3 -0
- package/dist/types/skills.types.js.map +1 -0
- package/dist/types/socket.types.d.ts +18 -0
- package/dist/types/socket.types.d.ts.map +1 -0
- package/dist/types/socket.types.js +9 -0
- package/dist/types/socket.types.js.map +1 -0
- package/dist/types/tiled.types.d.ts +108 -0
- package/dist/types/tiled.types.d.ts.map +1 -0
- package/dist/types/tiled.types.js +14 -0
- package/dist/types/tiled.types.js.map +1 -0
- package/dist/types/translation.types.d.ts +6 -0
- package/dist/types/translation.types.d.ts.map +1 -0
- package/dist/types/translation.types.js +9 -0
- package/dist/types/translation.types.js.map +1 -0
- package/dist/types/user.types.d.ts +97 -0
- package/dist/types/user.types.d.ts.map +1 -0
- package/dist/types/user.types.js +39 -0
- package/dist/types/user.types.js.map +1 -0
- package/dist/types/validation.types.d.ts +10 -0
- package/dist/types/validation.types.d.ts.map +1 -0
- package/dist/types/validation.types.js +3 -0
- package/dist/types/validation.types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.types.d.ts","sourceRoot":"","sources":["../../src/types/env.types.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvType = void 0;
|
|
4
|
+
var EnvType;
|
|
5
|
+
(function (EnvType) {
|
|
6
|
+
EnvType["Development"] = "Development";
|
|
7
|
+
EnvType["Staging"] = "Staging";
|
|
8
|
+
EnvType["Production"] = "Production";
|
|
9
|
+
})(EnvType = exports.EnvType || (exports.EnvType = {}));
|
|
10
|
+
//# sourceMappingURL=env.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.types.js","sourceRoot":"","sources":["../../src/types/env.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;AAC3B,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface IGoogleConfig {
|
|
2
|
+
clientID: string;
|
|
3
|
+
clientSecret: string;
|
|
4
|
+
redirectURI: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGoogleOAuthUrlResponse {
|
|
7
|
+
googleOAuthUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IGoogleOAuthTokenPayload {
|
|
10
|
+
access_token: string;
|
|
11
|
+
id_token: string;
|
|
12
|
+
expires_in: string;
|
|
13
|
+
token_type: string;
|
|
14
|
+
refresh_token: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IGoogleOAuthUserInfoResponse {
|
|
17
|
+
id: string;
|
|
18
|
+
email: string;
|
|
19
|
+
verified_email: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
given_name: string;
|
|
22
|
+
family_name: string;
|
|
23
|
+
picture: string;
|
|
24
|
+
locale: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IGoogleCapacitorOAuthResponse {
|
|
27
|
+
email: string;
|
|
28
|
+
familyName: string;
|
|
29
|
+
givenName: string;
|
|
30
|
+
id: string;
|
|
31
|
+
imageUrl: string;
|
|
32
|
+
name: string;
|
|
33
|
+
authentication: IAuthentication;
|
|
34
|
+
serverAuthCode: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IAuthentication {
|
|
37
|
+
accessToken: string;
|
|
38
|
+
idToken: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
|
|
41
|
+
iss: string;
|
|
42
|
+
sub: string;
|
|
43
|
+
azp: string;
|
|
44
|
+
aud: string;
|
|
45
|
+
iat: string;
|
|
46
|
+
exp: string;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=googleOAuth.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleOAuth.types.d.ts","sourceRoot":"","sources":["../../src/types/googleOAuth.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,eAAe,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA4B,SAAQ,4BAA4B;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleOAuth.types.js","sourceRoot":"","sources":["../../src/types/googleOAuth.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IMap {
|
|
2
|
+
JSONKey: string;
|
|
3
|
+
imageKey: string;
|
|
4
|
+
layers: string[];
|
|
5
|
+
tileWidth: number;
|
|
6
|
+
tileHeight: number;
|
|
7
|
+
imagePath: string;
|
|
8
|
+
jsonPath: string;
|
|
9
|
+
tilesetName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare enum MapLayers {
|
|
12
|
+
Ground = 0,
|
|
13
|
+
OverGround = 1,
|
|
14
|
+
Character = 2,
|
|
15
|
+
OverCharacter = 3
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=maps.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps.types.d.ts","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,UAAU,IAAI;IACd,SAAS,IAAI;IACb,aAAa,IAAI;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MapLayers = void 0;
|
|
4
|
+
var MapLayers;
|
|
5
|
+
(function (MapLayers) {
|
|
6
|
+
MapLayers[MapLayers["Ground"] = 0] = "Ground";
|
|
7
|
+
MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
|
|
8
|
+
MapLayers[MapLayers["Character"] = 2] = "Character";
|
|
9
|
+
MapLayers[MapLayers["OverCharacter"] = 3] = "OverCharacter";
|
|
10
|
+
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
11
|
+
//# sourceMappingURL=maps.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps.types.js","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":";;;AAWA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,6CAAU,CAAA;IACV,qDAAc,CAAA;IACd,mDAAa,CAAA;IACb,2DAAiB,CAAA;AACnB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IShowPromptOption {
|
|
2
|
+
label: string;
|
|
3
|
+
color?: string;
|
|
4
|
+
action: (label: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface IShowPrompt {
|
|
7
|
+
question: string;
|
|
8
|
+
options: IShowPromptOption[];
|
|
9
|
+
addDefaultCancelOption?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface INotification {
|
|
12
|
+
variant: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=notification.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.types.d.ts","sourceRoot":"","sources":["../../src/types/notification.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AACD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAChG,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.types.js","sourceRoot":"","sources":["../../src/types/notification.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AnimationDirection } from "./animation.types";
|
|
2
|
+
import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
|
|
3
|
+
import { MapLayers } from "./maps.types";
|
|
4
|
+
import { IResource } from "./resource.types";
|
|
5
|
+
import { ISkill } from "./skills.types";
|
|
6
|
+
export interface INPC extends IResource {
|
|
7
|
+
key: string;
|
|
8
|
+
textureKey: string;
|
|
9
|
+
name: string;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
initialX: number;
|
|
13
|
+
initialY: number;
|
|
14
|
+
health: number;
|
|
15
|
+
mana: number;
|
|
16
|
+
direction: AnimationDirection;
|
|
17
|
+
scene: string;
|
|
18
|
+
class: CharacterClass;
|
|
19
|
+
gender: CharacterGender;
|
|
20
|
+
layer: MapLayers;
|
|
21
|
+
maxRangeInGridCells?: number;
|
|
22
|
+
maxRangedDistanceInGridCells?: number;
|
|
23
|
+
originalMovementType: NPCMovementType;
|
|
24
|
+
currentMovementType: NPCMovementType;
|
|
25
|
+
alignment: NPCAlignment;
|
|
26
|
+
targetType: NPCTargetType;
|
|
27
|
+
targetCharacter?: ICharacter | null;
|
|
28
|
+
pathOrientation?: NPCPathOrientation;
|
|
29
|
+
fixedPath?: {
|
|
30
|
+
endGridX: number;
|
|
31
|
+
endGridY: number;
|
|
32
|
+
};
|
|
33
|
+
pm2InstanceManager: number;
|
|
34
|
+
speed: number;
|
|
35
|
+
attackType: NPCAttackType;
|
|
36
|
+
skills: ISkill;
|
|
37
|
+
}
|
|
38
|
+
export declare enum NPCTargetType {
|
|
39
|
+
Default = "Default",
|
|
40
|
+
Talking = "Talking"
|
|
41
|
+
}
|
|
42
|
+
export declare enum NPCAlignment {
|
|
43
|
+
Friendly = "Friendly",
|
|
44
|
+
Neutral = "Neutral",
|
|
45
|
+
Hostile = "Hostile"
|
|
46
|
+
}
|
|
47
|
+
export declare enum NPCPathOrientation {
|
|
48
|
+
Forward = "Forward",
|
|
49
|
+
Backward = "Backward"
|
|
50
|
+
}
|
|
51
|
+
export declare enum NPCMovementType {
|
|
52
|
+
Random = "Random",
|
|
53
|
+
FixedPath = "FixedPath",
|
|
54
|
+
Stopped = "Stopped",
|
|
55
|
+
MoveAway = "MoveAway",
|
|
56
|
+
MoveTowards = "MoveTowards"
|
|
57
|
+
}
|
|
58
|
+
export declare enum NPCSocketEvents {
|
|
59
|
+
NPCDataUpdate = "NPCDataUpdate",
|
|
60
|
+
NPCPositionUpdate = "NPCPositionUpdate",
|
|
61
|
+
NPCTalkToNPC = "NPCTalkToNPC",
|
|
62
|
+
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
63
|
+
NPCStopDialogNPC = "NPCStopDialogNPC"
|
|
64
|
+
}
|
|
65
|
+
export declare enum NPCAttackType {
|
|
66
|
+
Melee = "Melee",
|
|
67
|
+
Ranged = "Ranged",
|
|
68
|
+
None = "None"
|
|
69
|
+
}
|
|
70
|
+
export interface INPCPositionUpdatePayload {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
direction: string;
|
|
76
|
+
key: string;
|
|
77
|
+
layer: MapLayers;
|
|
78
|
+
textureKey: string;
|
|
79
|
+
scene: string;
|
|
80
|
+
speed: number;
|
|
81
|
+
alignment: NPCAlignment;
|
|
82
|
+
}
|
|
83
|
+
export interface INPCDataUpdatePayload {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}
|
|
86
|
+
export interface INPCGetInfoEmitterClient {
|
|
87
|
+
npcId: string;
|
|
88
|
+
}
|
|
89
|
+
export interface INPCGetInfoEmitterServer extends INPC {
|
|
90
|
+
}
|
|
91
|
+
export interface INPCStartDialog {
|
|
92
|
+
npcId: string;
|
|
93
|
+
dialogText: string;
|
|
94
|
+
}
|
|
95
|
+
export interface INPCStopDialog {
|
|
96
|
+
npcId: string;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=npc.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npc.types.d.ts","sourceRoot":"","sources":["../../src/types/npc.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NPCAttackType = 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
|
+
var NPCAttackType;
|
|
37
|
+
(function (NPCAttackType) {
|
|
38
|
+
NPCAttackType["Melee"] = "Melee";
|
|
39
|
+
NPCAttackType["Ranged"] = "Ranged";
|
|
40
|
+
NPCAttackType["None"] = "None";
|
|
41
|
+
})(NPCAttackType = exports.NPCAttackType || (exports.NPCAttackType = {}));
|
|
42
|
+
//# sourceMappingURL=npc.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npc.types.js","sourceRoot":"","sources":["../../src/types/npc.types.ts"],"names":[],"mappings":";;;AAuCA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;AACrB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;AAC7B,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,kDAA+B,CAAA;IAC/B,0DAAuC,CAAA;IACvC,gDAA6B,CAAA;IAC7B,0DAAuC,CAAA;IACvC,wDAAqC,CAAA;AACvC,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
|
|
@@ -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"}
|
|
@@ -0,0 +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
|
+
}
|
|
14
|
+
//# sourceMappingURL=pagination.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.types.d.ts","sourceRoot":"","sources":["../../src/types/pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.types.js","sourceRoot":"","sources":["../../src/types/pagination.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +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
|
+
}
|
|
17
|
+
//# sourceMappingURL=places.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"places.types.d.ts","sourceRoot":"","sources":["../../src/types/places.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +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 = {}));
|
|
10
|
+
//# sourceMappingURL=places.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"places.types.js","sourceRoot":"","sources":["../../src/types/places.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,sBAAS,CAAA;IACT,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preloadScene.types.d.ts","sourceRoot":"","sources":["../../src/types/preloadScene.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preloadScene.types.js","sourceRoot":"","sources":["../../src/types/preloadScene.types.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,cAAc;IACnB,MAAM,EAAE,EAAE;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.types.d.ts","sourceRoot":"","sources":["../../src/types/resource.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.types.js","sourceRoot":"","sources":["../../src/types/resource.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.types.d.ts","sourceRoot":"","sources":["../../src/types/scene.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,cAAc;;;;CAI1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.types.js","sourceRoot":"","sources":["../../src/types/scene.types.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B,SAAS,EAAE;QACT,GAAG,EAAE,aAAa;KACnB;CACF,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IResource } from "./resource.types";
|
|
2
|
+
export interface ISkill extends IResource {
|
|
3
|
+
owner: string;
|
|
4
|
+
level: number;
|
|
5
|
+
xpGainRate: number;
|
|
6
|
+
experience: number;
|
|
7
|
+
stamina: number;
|
|
8
|
+
magic: number;
|
|
9
|
+
strength: number;
|
|
10
|
+
resistance: number;
|
|
11
|
+
dexterity: number;
|
|
12
|
+
first: number;
|
|
13
|
+
club: number;
|
|
14
|
+
sword: number;
|
|
15
|
+
axe: number;
|
|
16
|
+
distance: number;
|
|
17
|
+
shielding: number;
|
|
18
|
+
fishing: number;
|
|
19
|
+
mining: number;
|
|
20
|
+
lumberjacking: number;
|
|
21
|
+
cooking: number;
|
|
22
|
+
alchemy: number;
|
|
23
|
+
magicResistance: number;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=skills.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.types.d.ts","sourceRoot":"","sources":["../../src/types/skills.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,MAAO,SAAQ,SAAS;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.types.js","sourceRoot":"","sources":["../../src/types/skills.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum SocketTypes {
|
|
2
|
+
TCP = "TCP",
|
|
3
|
+
UDP = "UDP"
|
|
4
|
+
}
|
|
5
|
+
export interface ISocket {
|
|
6
|
+
init: (socketType?: SocketTypes) => Promise<void> | void;
|
|
7
|
+
onConnect?: (callback: any) => void;
|
|
8
|
+
emitToUser<T>(channel: string, eventName: string, data?: T): any;
|
|
9
|
+
emitToAllUsers<T>(eventName: string, data?: T): void;
|
|
10
|
+
disconnect: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface ISocketTransmissionZone {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=socket.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socket.types.d.ts","sourceRoot":"","sources":["../../src/types/socket.types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AACD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACzD,SAAS,CAAC,EAAE,CAAC,QAAQ,KAAA,KAAK,IAAI,CAAC;IAC/B,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,OAAE;IAC5D,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACrD,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SocketTypes = void 0;
|
|
4
|
+
var SocketTypes;
|
|
5
|
+
(function (SocketTypes) {
|
|
6
|
+
SocketTypes["TCP"] = "TCP";
|
|
7
|
+
SocketTypes["UDP"] = "UDP";
|
|
8
|
+
})(SocketTypes = exports.SocketTypes || (exports.SocketTypes = {}));
|
|
9
|
+
//# sourceMappingURL=socket.types.js.map
|