@rpg-engine/shared 0.8.90 → 0.8.92
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/deviceHelpers.d.ts +2 -2
- package/dist/helpers/deviceHelpers.js +16 -16
- package/dist/helpers/itemSlotHelper.d.ts +7 -7
- package/dist/helpers/itemSlotHelper.js +27 -27
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/helpers/weightHelper.d.ts +1 -1
- package/dist/helpers/weightHelper.js +14 -14
- package/dist/index.d.ts +57 -57
- package/dist/index.js +73 -73
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.js +37 -37
- 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 +69 -69
- package/dist/types/animation.types.js +46 -46
- 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 +41 -41
- package/dist/types/battle.types.js +18 -18
- package/dist/types/buff.types.d.ts +39 -39
- package/dist/types/buff.types.js +13 -13
- package/dist/types/character.types.d.ts +233 -233
- package/dist/types/character.types.js +65 -65
- package/dist/types/chat.types.d.ts +72 -72
- package/dist/types/chat.types.js +22 -22
- package/dist/types/depot.types.d.ts +18 -18
- package/dist/types/depot.types.js +9 -9
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/displayText.types.d.ts +10 -10
- package/dist/types/displayText.types.js +7 -7
- package/dist/types/entity.types.d.ts +30 -30
- package/dist/types/entity.types.js +20 -20
- 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 +377 -376
- package/dist/types/item.types.d.ts.map +1 -1
- package/dist/types/item.types.js +154 -154
- package/dist/types/item.types.js.map +1 -1
- package/dist/types/itemContainer.types.d.ts +83 -83
- package/dist/types/itemContainer.types.js +11 -11
- package/dist/types/leaderboard.types.d.ts +32 -32
- package/dist/types/leaderboard.types.js +9 -9
- package/dist/types/macro.types.d.ts +8 -8
- package/dist/types/macro.types.js +12 -12
- package/dist/types/maps.types.d.ts +90 -90
- package/dist/types/maps.types.js +85 -85
- package/dist/types/marketplace.types.d.ts +61 -61
- package/dist/types/marketplace.types.js +15 -15
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +165 -165
- package/dist/types/npc.types.js +49 -49
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/party.types.d.ts +83 -83
- package/dist/types/party.types.js +54 -54
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.js +9 -9
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/premiumAccount.types.d.ts +7 -7
- package/dist/types/premiumAccount.types.js +11 -11
- package/dist/types/quest.types.d.ts +74 -74
- package/dist/types/quest.types.js +21 -21
- package/dist/types/raid.types.d.ts +6 -6
- package/dist/types/raid.types.js +2 -2
- 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/shortcut.types.d.ts +11 -11
- package/dist/types/shortcut.types.js +9 -9
- package/dist/types/skills.types.d.ts +144 -144
- package/dist/types/skills.types.js +106 -106
- package/dist/types/socket.types.d.ts +18 -18
- package/dist/types/socket.types.js +8 -8
- package/dist/types/spell.types.d.ts +156 -156
- package/dist/types/spell.types.js +108 -108
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/trade.types.d.ts +65 -65
- package/dist/types/trade.types.js +15 -15
- 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/useWith.types.d.ts +25 -25
- package/dist/types/useWith.types.js +9 -9
- package/dist/types/user.types.d.ts +104 -104
- 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 +15 -15
- package/dist/types/view.types.js +7 -7
- package/package.json +43 -43
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LeaderboardSocketEvents = void 0;
|
|
4
|
-
var LeaderboardSocketEvents;
|
|
5
|
-
(function (LeaderboardSocketEvents) {
|
|
6
|
-
LeaderboardSocketEvents["GetLevelRanking"] = "LeaderboardGetLevelRanking";
|
|
7
|
-
LeaderboardSocketEvents["GetClassRanking"] = "LeaderboardGetClassRanking";
|
|
8
|
-
LeaderboardSocketEvents["GetSkillRanking"] = "LeaderboardGetSkillRanking";
|
|
9
|
-
})(LeaderboardSocketEvents = exports.LeaderboardSocketEvents || (exports.LeaderboardSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeaderboardSocketEvents = void 0;
|
|
4
|
+
var LeaderboardSocketEvents;
|
|
5
|
+
(function (LeaderboardSocketEvents) {
|
|
6
|
+
LeaderboardSocketEvents["GetLevelRanking"] = "LeaderboardGetLevelRanking";
|
|
7
|
+
LeaderboardSocketEvents["GetClassRanking"] = "LeaderboardGetClassRanking";
|
|
8
|
+
LeaderboardSocketEvents["GetSkillRanking"] = "LeaderboardGetSkillRanking";
|
|
9
|
+
})(LeaderboardSocketEvents = exports.LeaderboardSocketEvents || (exports.LeaderboardSocketEvents = {}));
|
|
10
10
|
//# sourceMappingURL=leaderboard.types.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare enum MacroSocketEvents {
|
|
2
|
-
TriggerMacro = "TriggerMacro",
|
|
3
|
-
OpenMacroModal = "OpenMacroModal",
|
|
4
|
-
CheckIfMacroInProgess = "CheckIfMacroInProgess",
|
|
5
|
-
MacroVerifySuccess = "MacroVerifySuccess",
|
|
6
|
-
MacroVerifyFailed = "MacroVerifyFailed",
|
|
7
|
-
MacroSendVerification = "MacroSendVerification"
|
|
8
|
-
}
|
|
1
|
+
export declare enum MacroSocketEvents {
|
|
2
|
+
TriggerMacro = "TriggerMacro",
|
|
3
|
+
OpenMacroModal = "OpenMacroModal",
|
|
4
|
+
CheckIfMacroInProgess = "CheckIfMacroInProgess",
|
|
5
|
+
MacroVerifySuccess = "MacroVerifySuccess",
|
|
6
|
+
MacroVerifyFailed = "MacroVerifyFailed",
|
|
7
|
+
MacroSendVerification = "MacroSendVerification"
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=macro.types.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MacroSocketEvents = void 0;
|
|
4
|
-
var MacroSocketEvents;
|
|
5
|
-
(function (MacroSocketEvents) {
|
|
6
|
-
MacroSocketEvents["TriggerMacro"] = "TriggerMacro";
|
|
7
|
-
MacroSocketEvents["OpenMacroModal"] = "OpenMacroModal";
|
|
8
|
-
MacroSocketEvents["CheckIfMacroInProgess"] = "CheckIfMacroInProgess";
|
|
9
|
-
MacroSocketEvents["MacroVerifySuccess"] = "MacroVerifySuccess";
|
|
10
|
-
MacroSocketEvents["MacroVerifyFailed"] = "MacroVerifyFailed";
|
|
11
|
-
MacroSocketEvents["MacroSendVerification"] = "MacroSendVerification";
|
|
12
|
-
})(MacroSocketEvents = exports.MacroSocketEvents || (exports.MacroSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MacroSocketEvents = void 0;
|
|
4
|
+
var MacroSocketEvents;
|
|
5
|
+
(function (MacroSocketEvents) {
|
|
6
|
+
MacroSocketEvents["TriggerMacro"] = "TriggerMacro";
|
|
7
|
+
MacroSocketEvents["OpenMacroModal"] = "OpenMacroModal";
|
|
8
|
+
MacroSocketEvents["CheckIfMacroInProgess"] = "CheckIfMacroInProgess";
|
|
9
|
+
MacroSocketEvents["MacroVerifySuccess"] = "MacroVerifySuccess";
|
|
10
|
+
MacroSocketEvents["MacroVerifyFailed"] = "MacroVerifyFailed";
|
|
11
|
+
MacroSocketEvents["MacroSendVerification"] = "MacroSendVerification";
|
|
12
|
+
})(MacroSocketEvents = exports.MacroSocketEvents || (exports.MacroSocketEvents = {}));
|
|
13
13
|
//# sourceMappingURL=macro.types.js.map
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
export declare enum MapLayers {
|
|
2
|
-
Ground = 0,
|
|
3
|
-
OverGround = 1,
|
|
4
|
-
Decoration = 2,
|
|
5
|
-
Character = 3,
|
|
6
|
-
OverCharacter = 4,
|
|
7
|
-
OverCharacterDecoration = 5,
|
|
8
|
-
Roof = 6
|
|
9
|
-
}
|
|
10
|
-
export declare const TiledLayerNames: {
|
|
11
|
-
0: string;
|
|
12
|
-
1: string;
|
|
13
|
-
2: string;
|
|
14
|
-
3: string;
|
|
15
|
-
4: string;
|
|
16
|
-
5: string;
|
|
17
|
-
6: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const MAP_OBJECT_LAYERS: string[];
|
|
20
|
-
export declare const MAP_LAYERS: string[];
|
|
21
|
-
export declare const MAP_LAYERS_TO_ID: {
|
|
22
|
-
ground: number;
|
|
23
|
-
"over-ground": number;
|
|
24
|
-
decoration: number;
|
|
25
|
-
character: number;
|
|
26
|
-
"over-character": number;
|
|
27
|
-
"over-character-decoration": number;
|
|
28
|
-
roof: number;
|
|
29
|
-
};
|
|
30
|
-
export declare const MAP_REQUIRED_LAYERS: string[];
|
|
31
|
-
export interface IMapMetadataTileset {
|
|
32
|
-
name: string;
|
|
33
|
-
}
|
|
34
|
-
export declare enum MapLighteningType {
|
|
35
|
-
Static = "Static",
|
|
36
|
-
Dynamic = "Dynamic"
|
|
37
|
-
}
|
|
38
|
-
export interface IMapMetaData {
|
|
39
|
-
key: string;
|
|
40
|
-
name: string;
|
|
41
|
-
version: number;
|
|
42
|
-
layers: string[];
|
|
43
|
-
tileWidth: number;
|
|
44
|
-
tileHeight: number;
|
|
45
|
-
tilesets: IMapMetadataTileset[];
|
|
46
|
-
width: number;
|
|
47
|
-
height: number;
|
|
48
|
-
lightening?: {
|
|
49
|
-
type: MapLighteningType;
|
|
50
|
-
value?: number;
|
|
51
|
-
};
|
|
52
|
-
weather?: AvailableWeather;
|
|
53
|
-
}
|
|
54
|
-
export declare enum MapSocketEvents {
|
|
55
|
-
ChangeMap = "ChangeMap",
|
|
56
|
-
NonPVPZone = "NonPVPZone",
|
|
57
|
-
SameMapTeleport = "SameMapTeleport"
|
|
58
|
-
}
|
|
59
|
-
export interface IMapDestination {
|
|
60
|
-
map: string;
|
|
61
|
-
gridX: number;
|
|
62
|
-
gridY: number;
|
|
63
|
-
}
|
|
64
|
-
export declare enum PeriodOfDay {
|
|
65
|
-
Morning = "Morning",
|
|
66
|
-
Afternoon = "Afternoon",
|
|
67
|
-
Night = "Night"
|
|
68
|
-
}
|
|
69
|
-
export declare enum AvailableWeather {
|
|
70
|
-
Standard = "Standard",
|
|
71
|
-
SoftRain = "SoftRain",
|
|
72
|
-
HeavyRain = "HeavyRain",
|
|
73
|
-
Snowing = "Snowing"
|
|
74
|
-
}
|
|
75
|
-
export interface IControlTime {
|
|
76
|
-
time: string;
|
|
77
|
-
period: PeriodOfDay;
|
|
78
|
-
weather: AvailableWeather;
|
|
79
|
-
}
|
|
80
|
-
export declare enum WeatherSocketEvents {
|
|
81
|
-
TimeWeatherControl = "TimeWeatherControl"
|
|
82
|
-
}
|
|
83
|
-
export interface IMapTransitionChangeMapPayload {
|
|
84
|
-
map: string;
|
|
85
|
-
x: number;
|
|
86
|
-
y: number;
|
|
87
|
-
}
|
|
88
|
-
export declare enum CharacterTransitionSocketEvents {
|
|
89
|
-
ForcedMapChange = "ForcedMapChange"
|
|
90
|
-
}
|
|
1
|
+
export declare enum MapLayers {
|
|
2
|
+
Ground = 0,
|
|
3
|
+
OverGround = 1,
|
|
4
|
+
Decoration = 2,
|
|
5
|
+
Character = 3,
|
|
6
|
+
OverCharacter = 4,
|
|
7
|
+
OverCharacterDecoration = 5,
|
|
8
|
+
Roof = 6
|
|
9
|
+
}
|
|
10
|
+
export declare const TiledLayerNames: {
|
|
11
|
+
0: string;
|
|
12
|
+
1: string;
|
|
13
|
+
2: string;
|
|
14
|
+
3: string;
|
|
15
|
+
4: string;
|
|
16
|
+
5: string;
|
|
17
|
+
6: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const MAP_OBJECT_LAYERS: string[];
|
|
20
|
+
export declare const MAP_LAYERS: string[];
|
|
21
|
+
export declare const MAP_LAYERS_TO_ID: {
|
|
22
|
+
ground: number;
|
|
23
|
+
"over-ground": number;
|
|
24
|
+
decoration: number;
|
|
25
|
+
character: number;
|
|
26
|
+
"over-character": number;
|
|
27
|
+
"over-character-decoration": number;
|
|
28
|
+
roof: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const MAP_REQUIRED_LAYERS: string[];
|
|
31
|
+
export interface IMapMetadataTileset {
|
|
32
|
+
name: string;
|
|
33
|
+
}
|
|
34
|
+
export declare enum MapLighteningType {
|
|
35
|
+
Static = "Static",
|
|
36
|
+
Dynamic = "Dynamic"
|
|
37
|
+
}
|
|
38
|
+
export interface IMapMetaData {
|
|
39
|
+
key: string;
|
|
40
|
+
name: string;
|
|
41
|
+
version: number;
|
|
42
|
+
layers: string[];
|
|
43
|
+
tileWidth: number;
|
|
44
|
+
tileHeight: number;
|
|
45
|
+
tilesets: IMapMetadataTileset[];
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
lightening?: {
|
|
49
|
+
type: MapLighteningType;
|
|
50
|
+
value?: number;
|
|
51
|
+
};
|
|
52
|
+
weather?: AvailableWeather;
|
|
53
|
+
}
|
|
54
|
+
export declare enum MapSocketEvents {
|
|
55
|
+
ChangeMap = "ChangeMap",
|
|
56
|
+
NonPVPZone = "NonPVPZone",
|
|
57
|
+
SameMapTeleport = "SameMapTeleport"
|
|
58
|
+
}
|
|
59
|
+
export interface IMapDestination {
|
|
60
|
+
map: string;
|
|
61
|
+
gridX: number;
|
|
62
|
+
gridY: number;
|
|
63
|
+
}
|
|
64
|
+
export declare enum PeriodOfDay {
|
|
65
|
+
Morning = "Morning",
|
|
66
|
+
Afternoon = "Afternoon",
|
|
67
|
+
Night = "Night"
|
|
68
|
+
}
|
|
69
|
+
export declare enum AvailableWeather {
|
|
70
|
+
Standard = "Standard",
|
|
71
|
+
SoftRain = "SoftRain",
|
|
72
|
+
HeavyRain = "HeavyRain",
|
|
73
|
+
Snowing = "Snowing"
|
|
74
|
+
}
|
|
75
|
+
export interface IControlTime {
|
|
76
|
+
time: string;
|
|
77
|
+
period: PeriodOfDay;
|
|
78
|
+
weather: AvailableWeather;
|
|
79
|
+
}
|
|
80
|
+
export declare enum WeatherSocketEvents {
|
|
81
|
+
TimeWeatherControl = "TimeWeatherControl"
|
|
82
|
+
}
|
|
83
|
+
export interface IMapTransitionChangeMapPayload {
|
|
84
|
+
map: string;
|
|
85
|
+
x: number;
|
|
86
|
+
y: number;
|
|
87
|
+
}
|
|
88
|
+
export declare enum CharacterTransitionSocketEvents {
|
|
89
|
+
ForcedMapChange = "ForcedMapChange"
|
|
90
|
+
}
|
|
91
91
|
//# sourceMappingURL=maps.types.d.ts.map
|
package/dist/types/maps.types.js
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CharacterTransitionSocketEvents = exports.WeatherSocketEvents = exports.AvailableWeather = exports.PeriodOfDay = exports.MapSocketEvents = exports.MapLighteningType = exports.MAP_REQUIRED_LAYERS = exports.MAP_LAYERS_TO_ID = exports.MAP_LAYERS = exports.MAP_OBJECT_LAYERS = exports.TiledLayerNames = 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["Decoration"] = 2] = "Decoration";
|
|
9
|
-
MapLayers[MapLayers["Character"] = 3] = "Character";
|
|
10
|
-
MapLayers[MapLayers["OverCharacter"] = 4] = "OverCharacter";
|
|
11
|
-
MapLayers[MapLayers["OverCharacterDecoration"] = 5] = "OverCharacterDecoration";
|
|
12
|
-
MapLayers[MapLayers["Roof"] = 6] = "Roof";
|
|
13
|
-
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
14
|
-
exports.TiledLayerNames = {
|
|
15
|
-
0: "ground",
|
|
16
|
-
1: "over-ground",
|
|
17
|
-
2: "decoration",
|
|
18
|
-
3: "character",
|
|
19
|
-
4: "over-character",
|
|
20
|
-
5: "over-character-decoration",
|
|
21
|
-
6: "roof",
|
|
22
|
-
};
|
|
23
|
-
exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
|
|
24
|
-
exports.MAP_LAYERS = [
|
|
25
|
-
"ground",
|
|
26
|
-
"over-ground",
|
|
27
|
-
"decoration",
|
|
28
|
-
"character",
|
|
29
|
-
"over-character",
|
|
30
|
-
"over-character-decoration",
|
|
31
|
-
"roof",
|
|
32
|
-
];
|
|
33
|
-
exports.MAP_LAYERS_TO_ID = {
|
|
34
|
-
ground: 0,
|
|
35
|
-
"over-ground": 1,
|
|
36
|
-
decoration: 2,
|
|
37
|
-
character: 3,
|
|
38
|
-
"over-character": 4,
|
|
39
|
-
"over-character-decoration": 5,
|
|
40
|
-
roof: 6,
|
|
41
|
-
};
|
|
42
|
-
exports.MAP_REQUIRED_LAYERS = [
|
|
43
|
-
"Roofs",
|
|
44
|
-
"roof",
|
|
45
|
-
"over-character",
|
|
46
|
-
"NPCs",
|
|
47
|
-
"Transitions",
|
|
48
|
-
"character",
|
|
49
|
-
"Items",
|
|
50
|
-
"decoration",
|
|
51
|
-
"over-ground",
|
|
52
|
-
"ground",
|
|
53
|
-
];
|
|
54
|
-
var MapLighteningType;
|
|
55
|
-
(function (MapLighteningType) {
|
|
56
|
-
MapLighteningType["Static"] = "Static";
|
|
57
|
-
MapLighteningType["Dynamic"] = "Dynamic";
|
|
58
|
-
})(MapLighteningType = exports.MapLighteningType || (exports.MapLighteningType = {}));
|
|
59
|
-
var MapSocketEvents;
|
|
60
|
-
(function (MapSocketEvents) {
|
|
61
|
-
MapSocketEvents["ChangeMap"] = "ChangeMap";
|
|
62
|
-
MapSocketEvents["NonPVPZone"] = "NonPVPZone";
|
|
63
|
-
MapSocketEvents["SameMapTeleport"] = "SameMapTeleport";
|
|
64
|
-
})(MapSocketEvents = exports.MapSocketEvents || (exports.MapSocketEvents = {}));
|
|
65
|
-
var PeriodOfDay;
|
|
66
|
-
(function (PeriodOfDay) {
|
|
67
|
-
PeriodOfDay["Morning"] = "Morning";
|
|
68
|
-
PeriodOfDay["Afternoon"] = "Afternoon";
|
|
69
|
-
PeriodOfDay["Night"] = "Night";
|
|
70
|
-
})(PeriodOfDay = exports.PeriodOfDay || (exports.PeriodOfDay = {}));
|
|
71
|
-
var AvailableWeather;
|
|
72
|
-
(function (AvailableWeather) {
|
|
73
|
-
AvailableWeather["Standard"] = "Standard";
|
|
74
|
-
AvailableWeather["SoftRain"] = "SoftRain";
|
|
75
|
-
AvailableWeather["HeavyRain"] = "HeavyRain";
|
|
76
|
-
AvailableWeather["Snowing"] = "Snowing";
|
|
77
|
-
})(AvailableWeather = exports.AvailableWeather || (exports.AvailableWeather = {}));
|
|
78
|
-
var WeatherSocketEvents;
|
|
79
|
-
(function (WeatherSocketEvents) {
|
|
80
|
-
WeatherSocketEvents["TimeWeatherControl"] = "TimeWeatherControl";
|
|
81
|
-
})(WeatherSocketEvents = exports.WeatherSocketEvents || (exports.WeatherSocketEvents = {}));
|
|
82
|
-
var CharacterTransitionSocketEvents;
|
|
83
|
-
(function (CharacterTransitionSocketEvents) {
|
|
84
|
-
CharacterTransitionSocketEvents["ForcedMapChange"] = "ForcedMapChange";
|
|
85
|
-
})(CharacterTransitionSocketEvents = exports.CharacterTransitionSocketEvents || (exports.CharacterTransitionSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CharacterTransitionSocketEvents = exports.WeatherSocketEvents = exports.AvailableWeather = exports.PeriodOfDay = exports.MapSocketEvents = exports.MapLighteningType = exports.MAP_REQUIRED_LAYERS = exports.MAP_LAYERS_TO_ID = exports.MAP_LAYERS = exports.MAP_OBJECT_LAYERS = exports.TiledLayerNames = 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["Decoration"] = 2] = "Decoration";
|
|
9
|
+
MapLayers[MapLayers["Character"] = 3] = "Character";
|
|
10
|
+
MapLayers[MapLayers["OverCharacter"] = 4] = "OverCharacter";
|
|
11
|
+
MapLayers[MapLayers["OverCharacterDecoration"] = 5] = "OverCharacterDecoration";
|
|
12
|
+
MapLayers[MapLayers["Roof"] = 6] = "Roof";
|
|
13
|
+
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
14
|
+
exports.TiledLayerNames = {
|
|
15
|
+
0: "ground",
|
|
16
|
+
1: "over-ground",
|
|
17
|
+
2: "decoration",
|
|
18
|
+
3: "character",
|
|
19
|
+
4: "over-character",
|
|
20
|
+
5: "over-character-decoration",
|
|
21
|
+
6: "roof",
|
|
22
|
+
};
|
|
23
|
+
exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
|
|
24
|
+
exports.MAP_LAYERS = [
|
|
25
|
+
"ground",
|
|
26
|
+
"over-ground",
|
|
27
|
+
"decoration",
|
|
28
|
+
"character",
|
|
29
|
+
"over-character",
|
|
30
|
+
"over-character-decoration",
|
|
31
|
+
"roof",
|
|
32
|
+
];
|
|
33
|
+
exports.MAP_LAYERS_TO_ID = {
|
|
34
|
+
ground: 0,
|
|
35
|
+
"over-ground": 1,
|
|
36
|
+
decoration: 2,
|
|
37
|
+
character: 3,
|
|
38
|
+
"over-character": 4,
|
|
39
|
+
"over-character-decoration": 5,
|
|
40
|
+
roof: 6,
|
|
41
|
+
};
|
|
42
|
+
exports.MAP_REQUIRED_LAYERS = [
|
|
43
|
+
"Roofs",
|
|
44
|
+
"roof",
|
|
45
|
+
"over-character",
|
|
46
|
+
"NPCs",
|
|
47
|
+
"Transitions",
|
|
48
|
+
"character",
|
|
49
|
+
"Items",
|
|
50
|
+
"decoration",
|
|
51
|
+
"over-ground",
|
|
52
|
+
"ground",
|
|
53
|
+
];
|
|
54
|
+
var MapLighteningType;
|
|
55
|
+
(function (MapLighteningType) {
|
|
56
|
+
MapLighteningType["Static"] = "Static";
|
|
57
|
+
MapLighteningType["Dynamic"] = "Dynamic";
|
|
58
|
+
})(MapLighteningType = exports.MapLighteningType || (exports.MapLighteningType = {}));
|
|
59
|
+
var MapSocketEvents;
|
|
60
|
+
(function (MapSocketEvents) {
|
|
61
|
+
MapSocketEvents["ChangeMap"] = "ChangeMap";
|
|
62
|
+
MapSocketEvents["NonPVPZone"] = "NonPVPZone";
|
|
63
|
+
MapSocketEvents["SameMapTeleport"] = "SameMapTeleport";
|
|
64
|
+
})(MapSocketEvents = exports.MapSocketEvents || (exports.MapSocketEvents = {}));
|
|
65
|
+
var PeriodOfDay;
|
|
66
|
+
(function (PeriodOfDay) {
|
|
67
|
+
PeriodOfDay["Morning"] = "Morning";
|
|
68
|
+
PeriodOfDay["Afternoon"] = "Afternoon";
|
|
69
|
+
PeriodOfDay["Night"] = "Night";
|
|
70
|
+
})(PeriodOfDay = exports.PeriodOfDay || (exports.PeriodOfDay = {}));
|
|
71
|
+
var AvailableWeather;
|
|
72
|
+
(function (AvailableWeather) {
|
|
73
|
+
AvailableWeather["Standard"] = "Standard";
|
|
74
|
+
AvailableWeather["SoftRain"] = "SoftRain";
|
|
75
|
+
AvailableWeather["HeavyRain"] = "HeavyRain";
|
|
76
|
+
AvailableWeather["Snowing"] = "Snowing";
|
|
77
|
+
})(AvailableWeather = exports.AvailableWeather || (exports.AvailableWeather = {}));
|
|
78
|
+
var WeatherSocketEvents;
|
|
79
|
+
(function (WeatherSocketEvents) {
|
|
80
|
+
WeatherSocketEvents["TimeWeatherControl"] = "TimeWeatherControl";
|
|
81
|
+
})(WeatherSocketEvents = exports.WeatherSocketEvents || (exports.WeatherSocketEvents = {}));
|
|
82
|
+
var CharacterTransitionSocketEvents;
|
|
83
|
+
(function (CharacterTransitionSocketEvents) {
|
|
84
|
+
CharacterTransitionSocketEvents["ForcedMapChange"] = "ForcedMapChange";
|
|
85
|
+
})(CharacterTransitionSocketEvents = exports.CharacterTransitionSocketEvents || (exports.CharacterTransitionSocketEvents = {}));
|
|
86
86
|
//# sourceMappingURL=maps.types.js.map
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { IItem } from "./item.types";
|
|
2
|
-
export interface IMarketplaceItem {
|
|
3
|
-
_id: string;
|
|
4
|
-
price: number;
|
|
5
|
-
item: IItem;
|
|
6
|
-
owner: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IGetMarketplaceItemsOptions {
|
|
9
|
-
name?: string;
|
|
10
|
-
orderBy?: string;
|
|
11
|
-
order?: string;
|
|
12
|
-
owner?: string;
|
|
13
|
-
mainLevel?: [number | undefined, number | undefined];
|
|
14
|
-
secondaryLevel?: [number | undefined, number | undefined];
|
|
15
|
-
price?: [number | undefined, number | undefined];
|
|
16
|
-
itemType?: string;
|
|
17
|
-
itemRarity?: string;
|
|
18
|
-
limit?: number;
|
|
19
|
-
page?: number;
|
|
20
|
-
}
|
|
21
|
-
export declare enum MarketplaceSocketEvents {
|
|
22
|
-
AvailableMoneyNotification = "MarketplaceAvailableMoneyNotification",
|
|
23
|
-
GetItems = "MarketplaceGetItems",
|
|
24
|
-
RefreshItems = "MarketplaceRefreshItems",
|
|
25
|
-
AddItem = "MarketplaceAddItem",
|
|
26
|
-
RemoveItem = "MarketplaceRemoveItem",
|
|
27
|
-
BuyItem = "MarketplaceBuyItem",
|
|
28
|
-
WithdrawMoney = "MarketplaceWithdrawMoney",
|
|
29
|
-
GetAvailableMoney = "MarketplaceGetAvailableMoney",
|
|
30
|
-
GetNonPVPZone = "MarketplaceGetNonPVPZone"
|
|
31
|
-
}
|
|
32
|
-
export interface IMarketplaceAvailableMoneyNotification {
|
|
33
|
-
moneyAvailable: number;
|
|
34
|
-
}
|
|
35
|
-
export interface IMarketplaceGetItems {
|
|
36
|
-
npcId: string;
|
|
37
|
-
options: IGetMarketplaceItemsOptions;
|
|
38
|
-
}
|
|
39
|
-
export interface IMarketplaceGetItemsResponse {
|
|
40
|
-
items: IMarketplaceItem[];
|
|
41
|
-
moneyAvailable: number;
|
|
42
|
-
totalItems: number;
|
|
43
|
-
}
|
|
44
|
-
export interface IMarketplaceAddItem {
|
|
45
|
-
npcId: string;
|
|
46
|
-
marketplaceItem: {
|
|
47
|
-
price: number;
|
|
48
|
-
itemId: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export interface IMarketplaceRemoveItem {
|
|
52
|
-
npcId: string;
|
|
53
|
-
marketplaceItemId: string;
|
|
54
|
-
}
|
|
55
|
-
export interface IMarketplaceBuyItem {
|
|
56
|
-
npcId: string;
|
|
57
|
-
marketplaceItemId: string;
|
|
58
|
-
}
|
|
59
|
-
export interface IMarketplaceWithdrawMoney {
|
|
60
|
-
npcId: string;
|
|
61
|
-
}
|
|
1
|
+
import { IItem } from "./item.types";
|
|
2
|
+
export interface IMarketplaceItem {
|
|
3
|
+
_id: string;
|
|
4
|
+
price: number;
|
|
5
|
+
item: IItem;
|
|
6
|
+
owner: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IGetMarketplaceItemsOptions {
|
|
9
|
+
name?: string;
|
|
10
|
+
orderBy?: string;
|
|
11
|
+
order?: string;
|
|
12
|
+
owner?: string;
|
|
13
|
+
mainLevel?: [number | undefined, number | undefined];
|
|
14
|
+
secondaryLevel?: [number | undefined, number | undefined];
|
|
15
|
+
price?: [number | undefined, number | undefined];
|
|
16
|
+
itemType?: string;
|
|
17
|
+
itemRarity?: string;
|
|
18
|
+
limit?: number;
|
|
19
|
+
page?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare enum MarketplaceSocketEvents {
|
|
22
|
+
AvailableMoneyNotification = "MarketplaceAvailableMoneyNotification",
|
|
23
|
+
GetItems = "MarketplaceGetItems",
|
|
24
|
+
RefreshItems = "MarketplaceRefreshItems",
|
|
25
|
+
AddItem = "MarketplaceAddItem",
|
|
26
|
+
RemoveItem = "MarketplaceRemoveItem",
|
|
27
|
+
BuyItem = "MarketplaceBuyItem",
|
|
28
|
+
WithdrawMoney = "MarketplaceWithdrawMoney",
|
|
29
|
+
GetAvailableMoney = "MarketplaceGetAvailableMoney",
|
|
30
|
+
GetNonPVPZone = "MarketplaceGetNonPVPZone"
|
|
31
|
+
}
|
|
32
|
+
export interface IMarketplaceAvailableMoneyNotification {
|
|
33
|
+
moneyAvailable: number;
|
|
34
|
+
}
|
|
35
|
+
export interface IMarketplaceGetItems {
|
|
36
|
+
npcId: string;
|
|
37
|
+
options: IGetMarketplaceItemsOptions;
|
|
38
|
+
}
|
|
39
|
+
export interface IMarketplaceGetItemsResponse {
|
|
40
|
+
items: IMarketplaceItem[];
|
|
41
|
+
moneyAvailable: number;
|
|
42
|
+
totalItems: number;
|
|
43
|
+
}
|
|
44
|
+
export interface IMarketplaceAddItem {
|
|
45
|
+
npcId: string;
|
|
46
|
+
marketplaceItem: {
|
|
47
|
+
price: number;
|
|
48
|
+
itemId: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface IMarketplaceRemoveItem {
|
|
52
|
+
npcId: string;
|
|
53
|
+
marketplaceItemId: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IMarketplaceBuyItem {
|
|
56
|
+
npcId: string;
|
|
57
|
+
marketplaceItemId: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IMarketplaceWithdrawMoney {
|
|
60
|
+
npcId: string;
|
|
61
|
+
}
|
|
62
62
|
//# sourceMappingURL=marketplace.types.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceSocketEvents = void 0;
|
|
4
|
-
var MarketplaceSocketEvents;
|
|
5
|
-
(function (MarketplaceSocketEvents) {
|
|
6
|
-
MarketplaceSocketEvents["AvailableMoneyNotification"] = "MarketplaceAvailableMoneyNotification";
|
|
7
|
-
MarketplaceSocketEvents["GetItems"] = "MarketplaceGetItems";
|
|
8
|
-
MarketplaceSocketEvents["RefreshItems"] = "MarketplaceRefreshItems";
|
|
9
|
-
MarketplaceSocketEvents["AddItem"] = "MarketplaceAddItem";
|
|
10
|
-
MarketplaceSocketEvents["RemoveItem"] = "MarketplaceRemoveItem";
|
|
11
|
-
MarketplaceSocketEvents["BuyItem"] = "MarketplaceBuyItem";
|
|
12
|
-
MarketplaceSocketEvents["WithdrawMoney"] = "MarketplaceWithdrawMoney";
|
|
13
|
-
MarketplaceSocketEvents["GetAvailableMoney"] = "MarketplaceGetAvailableMoney";
|
|
14
|
-
MarketplaceSocketEvents["GetNonPVPZone"] = "MarketplaceGetNonPVPZone";
|
|
15
|
-
})(MarketplaceSocketEvents = exports.MarketplaceSocketEvents || (exports.MarketplaceSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceSocketEvents = void 0;
|
|
4
|
+
var MarketplaceSocketEvents;
|
|
5
|
+
(function (MarketplaceSocketEvents) {
|
|
6
|
+
MarketplaceSocketEvents["AvailableMoneyNotification"] = "MarketplaceAvailableMoneyNotification";
|
|
7
|
+
MarketplaceSocketEvents["GetItems"] = "MarketplaceGetItems";
|
|
8
|
+
MarketplaceSocketEvents["RefreshItems"] = "MarketplaceRefreshItems";
|
|
9
|
+
MarketplaceSocketEvents["AddItem"] = "MarketplaceAddItem";
|
|
10
|
+
MarketplaceSocketEvents["RemoveItem"] = "MarketplaceRemoveItem";
|
|
11
|
+
MarketplaceSocketEvents["BuyItem"] = "MarketplaceBuyItem";
|
|
12
|
+
MarketplaceSocketEvents["WithdrawMoney"] = "MarketplaceWithdrawMoney";
|
|
13
|
+
MarketplaceSocketEvents["GetAvailableMoney"] = "MarketplaceGetAvailableMoney";
|
|
14
|
+
MarketplaceSocketEvents["GetNonPVPZone"] = "MarketplaceGetNonPVPZone";
|
|
15
|
+
})(MarketplaceSocketEvents = exports.MarketplaceSocketEvents || (exports.MarketplaceSocketEvents = {}));
|
|
16
16
|
//# sourceMappingURL=marketplace.types.js.map
|
|
@@ -1,15 +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
|
-
}
|
|
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
15
|
//# sourceMappingURL=notification.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=notification.types.js.map
|