@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
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { IItem, ItemType } from "./item.types";
|
|
2
|
-
import { IResource } from "./resource.types";
|
|
3
|
-
interface IItemContainerSlots {
|
|
4
|
-
[slot: number]: IItem;
|
|
5
|
-
}
|
|
6
|
-
export interface IItemContainer extends IResource {
|
|
7
|
-
owner?: string;
|
|
8
|
-
isOwnerRestricted?: boolean;
|
|
9
|
-
parentItem: string | IItem;
|
|
10
|
-
name?: string;
|
|
11
|
-
slotQty: number;
|
|
12
|
-
slots: IItemContainerSlots;
|
|
13
|
-
allowedItemTypes?: ItemType[];
|
|
14
|
-
isEmpty: boolean;
|
|
15
|
-
totalItemsQty?: number;
|
|
16
|
-
itemIds?: string[];
|
|
17
|
-
emptySlotsQty?: number;
|
|
18
|
-
firstAvailableSlot?: IItem | null;
|
|
19
|
-
firstAvailableSlotId?: number | null;
|
|
20
|
-
}
|
|
21
|
-
export declare enum ItemContainerType {
|
|
22
|
-
Inventory = "Inventory",
|
|
23
|
-
Equipment = "Equipment",
|
|
24
|
-
Loot = "Loot",
|
|
25
|
-
MapContainer = "MapContainer"
|
|
26
|
-
}
|
|
27
|
-
export interface IItemContainerOpen {
|
|
28
|
-
itemId: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IItemTransfer {
|
|
31
|
-
itemId: string;
|
|
32
|
-
fromContainerId: string;
|
|
33
|
-
toContainerId: string;
|
|
34
|
-
}
|
|
35
|
-
export interface IItemPickup {
|
|
36
|
-
itemId: string;
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
scene: string;
|
|
40
|
-
toContainerId: string;
|
|
41
|
-
fromContainerId: string;
|
|
42
|
-
}
|
|
43
|
-
export interface IItemDrop {
|
|
44
|
-
itemId: string;
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
47
|
-
scene: string;
|
|
48
|
-
fromContainerId: string;
|
|
49
|
-
fromEquipmentSet: boolean;
|
|
50
|
-
toPosition: {
|
|
51
|
-
x: number;
|
|
52
|
-
y: number;
|
|
53
|
-
scene: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export interface IItemContainerRead {
|
|
57
|
-
itemContainer: IItemContainer;
|
|
58
|
-
type: ItemContainerType;
|
|
59
|
-
}
|
|
60
|
-
export interface IItemContainerProps {
|
|
61
|
-
openedContainers: Set<string>;
|
|
62
|
-
containersData: {
|
|
63
|
-
[key: string]: IItemContainer;
|
|
64
|
-
};
|
|
65
|
-
onMouseOverElement: (element: any) => void;
|
|
66
|
-
}
|
|
67
|
-
export {};
|
|
1
|
+
import { IItem, ItemType } from "./item.types";
|
|
2
|
+
import { IResource } from "./resource.types";
|
|
3
|
+
interface IItemContainerSlots {
|
|
4
|
+
[slot: number]: IItem;
|
|
5
|
+
}
|
|
6
|
+
export interface IItemContainer extends IResource {
|
|
7
|
+
owner?: string;
|
|
8
|
+
isOwnerRestricted?: boolean;
|
|
9
|
+
parentItem: string | IItem;
|
|
10
|
+
name?: string;
|
|
11
|
+
slotQty: number;
|
|
12
|
+
slots: IItemContainerSlots;
|
|
13
|
+
allowedItemTypes?: ItemType[];
|
|
14
|
+
isEmpty: boolean;
|
|
15
|
+
totalItemsQty?: number;
|
|
16
|
+
itemIds?: string[];
|
|
17
|
+
emptySlotsQty?: number;
|
|
18
|
+
firstAvailableSlot?: IItem | null;
|
|
19
|
+
firstAvailableSlotId?: number | null;
|
|
20
|
+
}
|
|
21
|
+
export declare enum ItemContainerType {
|
|
22
|
+
Inventory = "Inventory",
|
|
23
|
+
Equipment = "Equipment",
|
|
24
|
+
Loot = "Loot",
|
|
25
|
+
MapContainer = "MapContainer"
|
|
26
|
+
}
|
|
27
|
+
export interface IItemContainerOpen {
|
|
28
|
+
itemId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IItemTransfer {
|
|
31
|
+
itemId: string;
|
|
32
|
+
fromContainerId: string;
|
|
33
|
+
toContainerId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IItemPickup {
|
|
36
|
+
itemId: string;
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
scene: string;
|
|
40
|
+
toContainerId: string;
|
|
41
|
+
fromContainerId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IItemDrop {
|
|
44
|
+
itemId: string;
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
scene: string;
|
|
48
|
+
fromContainerId: string;
|
|
49
|
+
fromEquipmentSet: boolean;
|
|
50
|
+
toPosition: {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
scene: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export interface IItemContainerRead {
|
|
57
|
+
itemContainer: IItemContainer;
|
|
58
|
+
type: ItemContainerType;
|
|
59
|
+
}
|
|
60
|
+
export interface IItemContainerProps {
|
|
61
|
+
openedContainers: Set<string>;
|
|
62
|
+
containersData: {
|
|
63
|
+
[key: string]: IItemContainer;
|
|
64
|
+
};
|
|
65
|
+
onMouseOverElement: (element: any) => void;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
68
68
|
//# sourceMappingURL=itemContainer.types.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ItemContainerType = void 0;
|
|
4
|
-
var ItemContainerType;
|
|
5
|
-
(function (ItemContainerType) {
|
|
6
|
-
ItemContainerType["Inventory"] = "Inventory";
|
|
7
|
-
ItemContainerType["Equipment"] = "Equipment";
|
|
8
|
-
ItemContainerType["Loot"] = "Loot";
|
|
9
|
-
ItemContainerType["MapContainer"] = "MapContainer";
|
|
10
|
-
})(ItemContainerType = exports.ItemContainerType || (exports.ItemContainerType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemContainerType = void 0;
|
|
4
|
+
var ItemContainerType;
|
|
5
|
+
(function (ItemContainerType) {
|
|
6
|
+
ItemContainerType["Inventory"] = "Inventory";
|
|
7
|
+
ItemContainerType["Equipment"] = "Equipment";
|
|
8
|
+
ItemContainerType["Loot"] = "Loot";
|
|
9
|
+
ItemContainerType["MapContainer"] = "MapContainer";
|
|
10
|
+
})(ItemContainerType = exports.ItemContainerType || (exports.ItemContainerType = {}));
|
|
11
11
|
//# sourceMappingURL=itemContainer.types.js.map
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export declare enum MapLayers {
|
|
2
|
-
Ground = 0,
|
|
3
|
-
OverGround = 1,
|
|
4
|
-
Decoration = 2,
|
|
5
|
-
Character = 3,
|
|
6
|
-
OverCharacter = 4,
|
|
7
|
-
Roof = 5
|
|
8
|
-
}
|
|
9
|
-
export declare const TiledLayerNames: {
|
|
10
|
-
0: string;
|
|
11
|
-
1: string;
|
|
12
|
-
2: string;
|
|
13
|
-
3: string;
|
|
14
|
-
4: string;
|
|
15
|
-
5: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const MAP_OBJECT_LAYERS: string[];
|
|
18
|
-
export declare const MAP_LAYERS: string[];
|
|
19
|
-
export declare const MAP_LAYERS_TO_ID: {
|
|
20
|
-
ground: number;
|
|
21
|
-
"over-ground": number;
|
|
22
|
-
decoration: number;
|
|
23
|
-
character: number;
|
|
24
|
-
"over-character": number;
|
|
25
|
-
roof: number;
|
|
26
|
-
};
|
|
27
|
-
export declare const MAP_REQUIRED_LAYERS: string[];
|
|
28
|
-
export interface IMapMetadataTileset {
|
|
29
|
-
name: string;
|
|
30
|
-
}
|
|
31
|
-
export interface IMapMetaData {
|
|
32
|
-
name: string;
|
|
33
|
-
hash: string;
|
|
34
|
-
layers: string[];
|
|
35
|
-
tileWidth: number;
|
|
36
|
-
tileHeight: number;
|
|
37
|
-
tilesets: IMapMetadataTileset[];
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
}
|
|
41
|
-
export declare enum MapSocketEvents {
|
|
42
|
-
ChangeMap = "ChangeMap",
|
|
43
|
-
NonPVPZone = "NonPVPZone"
|
|
44
|
-
}
|
|
1
|
+
export declare enum MapLayers {
|
|
2
|
+
Ground = 0,
|
|
3
|
+
OverGround = 1,
|
|
4
|
+
Decoration = 2,
|
|
5
|
+
Character = 3,
|
|
6
|
+
OverCharacter = 4,
|
|
7
|
+
Roof = 5
|
|
8
|
+
}
|
|
9
|
+
export declare const TiledLayerNames: {
|
|
10
|
+
0: string;
|
|
11
|
+
1: string;
|
|
12
|
+
2: string;
|
|
13
|
+
3: string;
|
|
14
|
+
4: string;
|
|
15
|
+
5: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const MAP_OBJECT_LAYERS: string[];
|
|
18
|
+
export declare const MAP_LAYERS: string[];
|
|
19
|
+
export declare const MAP_LAYERS_TO_ID: {
|
|
20
|
+
ground: number;
|
|
21
|
+
"over-ground": number;
|
|
22
|
+
decoration: number;
|
|
23
|
+
character: number;
|
|
24
|
+
"over-character": number;
|
|
25
|
+
roof: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const MAP_REQUIRED_LAYERS: string[];
|
|
28
|
+
export interface IMapMetadataTileset {
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IMapMetaData {
|
|
32
|
+
name: string;
|
|
33
|
+
hash: string;
|
|
34
|
+
layers: string[];
|
|
35
|
+
tileWidth: number;
|
|
36
|
+
tileHeight: number;
|
|
37
|
+
tilesets: IMapMetadataTileset[];
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
}
|
|
41
|
+
export declare enum MapSocketEvents {
|
|
42
|
+
ChangeMap = "ChangeMap",
|
|
43
|
+
NonPVPZone = "NonPVPZone"
|
|
44
|
+
}
|
|
45
45
|
//# sourceMappingURL=maps.types.d.ts.map
|
package/dist/types/maps.types.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MapSocketEvents = 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["Roof"] = 5] = "Roof";
|
|
12
|
-
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
13
|
-
exports.TiledLayerNames = {
|
|
14
|
-
0: "ground",
|
|
15
|
-
1: "over-ground",
|
|
16
|
-
2: "decoration",
|
|
17
|
-
3: "character",
|
|
18
|
-
4: "over-character",
|
|
19
|
-
5: "roof",
|
|
20
|
-
};
|
|
21
|
-
exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
|
|
22
|
-
exports.MAP_LAYERS = ["ground", "over-ground", "decoration", "character", "over-character", "roof"];
|
|
23
|
-
exports.MAP_LAYERS_TO_ID = {
|
|
24
|
-
ground: 0,
|
|
25
|
-
"over-ground": 1,
|
|
26
|
-
decoration: 2,
|
|
27
|
-
character: 3,
|
|
28
|
-
"over-character": 4,
|
|
29
|
-
roof: 5,
|
|
30
|
-
};
|
|
31
|
-
exports.MAP_REQUIRED_LAYERS = [
|
|
32
|
-
"Roofs",
|
|
33
|
-
"roof",
|
|
34
|
-
"over-character",
|
|
35
|
-
"NPCs",
|
|
36
|
-
"Transitions",
|
|
37
|
-
"character",
|
|
38
|
-
"Items",
|
|
39
|
-
"decoration",
|
|
40
|
-
"over-ground",
|
|
41
|
-
"ground",
|
|
42
|
-
];
|
|
43
|
-
var MapSocketEvents;
|
|
44
|
-
(function (MapSocketEvents) {
|
|
45
|
-
MapSocketEvents["ChangeMap"] = "ChangeMap";
|
|
46
|
-
MapSocketEvents["NonPVPZone"] = "NonPVPZone";
|
|
47
|
-
})(MapSocketEvents = exports.MapSocketEvents || (exports.MapSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MapSocketEvents = 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["Roof"] = 5] = "Roof";
|
|
12
|
+
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
13
|
+
exports.TiledLayerNames = {
|
|
14
|
+
0: "ground",
|
|
15
|
+
1: "over-ground",
|
|
16
|
+
2: "decoration",
|
|
17
|
+
3: "character",
|
|
18
|
+
4: "over-character",
|
|
19
|
+
5: "roof",
|
|
20
|
+
};
|
|
21
|
+
exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
|
|
22
|
+
exports.MAP_LAYERS = ["ground", "over-ground", "decoration", "character", "over-character", "roof"];
|
|
23
|
+
exports.MAP_LAYERS_TO_ID = {
|
|
24
|
+
ground: 0,
|
|
25
|
+
"over-ground": 1,
|
|
26
|
+
decoration: 2,
|
|
27
|
+
character: 3,
|
|
28
|
+
"over-character": 4,
|
|
29
|
+
roof: 5,
|
|
30
|
+
};
|
|
31
|
+
exports.MAP_REQUIRED_LAYERS = [
|
|
32
|
+
"Roofs",
|
|
33
|
+
"roof",
|
|
34
|
+
"over-character",
|
|
35
|
+
"NPCs",
|
|
36
|
+
"Transitions",
|
|
37
|
+
"character",
|
|
38
|
+
"Items",
|
|
39
|
+
"decoration",
|
|
40
|
+
"over-ground",
|
|
41
|
+
"ground",
|
|
42
|
+
];
|
|
43
|
+
var MapSocketEvents;
|
|
44
|
+
(function (MapSocketEvents) {
|
|
45
|
+
MapSocketEvents["ChangeMap"] = "ChangeMap";
|
|
46
|
+
MapSocketEvents["NonPVPZone"] = "NonPVPZone";
|
|
47
|
+
})(MapSocketEvents = exports.MapSocketEvents || (exports.MapSocketEvents = {}));
|
|
48
48
|
//# sourceMappingURL=maps.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
|
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
import { AnimationDirection } from "./animation.types";
|
|
2
|
-
import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
|
|
3
|
-
import { EntityAttackType } from "./entity.types";
|
|
4
|
-
import { MapLayers } from "./maps.types";
|
|
5
|
-
import { IResource } from "./resource.types";
|
|
6
|
-
import { ISkill } from "./skills.types";
|
|
7
|
-
export interface INPC extends IResource {
|
|
8
|
-
tiledId?: number;
|
|
9
|
-
key: string;
|
|
10
|
-
textureKey: string;
|
|
11
|
-
name: string;
|
|
12
|
-
health: number;
|
|
13
|
-
maxHealth: number;
|
|
14
|
-
mana: number;
|
|
15
|
-
maxMana: number;
|
|
16
|
-
alignment: NPCAlignment;
|
|
17
|
-
targetType: NPCTargetType;
|
|
18
|
-
targetCharacter?: ICharacter | null;
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
initialX: number;
|
|
22
|
-
initialY: number;
|
|
23
|
-
direction: AnimationDirection;
|
|
24
|
-
scene: string;
|
|
25
|
-
class: CharacterClass;
|
|
26
|
-
gender: CharacterGender;
|
|
27
|
-
layer: MapLayers;
|
|
28
|
-
attackType: EntityAttackType;
|
|
29
|
-
originalMovementType: NPCMovementType;
|
|
30
|
-
currentMovementType: NPCMovementType;
|
|
31
|
-
maxRangeInGridCells?: number;
|
|
32
|
-
maxRangedDistanceInGridCells?: number;
|
|
33
|
-
pathOrientation?: NPCPathOrientation;
|
|
34
|
-
fixedPath?: {
|
|
35
|
-
endGridX: number;
|
|
36
|
-
endGridY: number;
|
|
37
|
-
};
|
|
38
|
-
pm2InstanceManager: number;
|
|
39
|
-
speed: number;
|
|
40
|
-
dialogText: string;
|
|
41
|
-
skills: ISkill | string;
|
|
42
|
-
spawnIntervalMin: number;
|
|
43
|
-
nextSpawnTime: Date;
|
|
44
|
-
fleeOnLowHealth: boolean;
|
|
45
|
-
experience?: number;
|
|
46
|
-
xpToRelease?: {
|
|
47
|
-
charId: number;
|
|
48
|
-
xp: number;
|
|
49
|
-
}[];
|
|
50
|
-
loots?: INPCLoot[];
|
|
51
|
-
hasQuest?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export declare enum NPCTargetType {
|
|
54
|
-
Default = "Default",
|
|
55
|
-
Talking = "Talking"
|
|
56
|
-
}
|
|
57
|
-
export declare enum NPCAlignment {
|
|
58
|
-
Friendly = "Friendly",
|
|
59
|
-
Neutral = "Neutral",
|
|
60
|
-
Hostile = "Hostile"
|
|
61
|
-
}
|
|
62
|
-
export declare enum NPCPathOrientation {
|
|
63
|
-
Forward = "Forward",
|
|
64
|
-
Backward = "Backward"
|
|
65
|
-
}
|
|
66
|
-
export declare enum NPCMovementType {
|
|
67
|
-
Random = "Random",
|
|
68
|
-
FixedPath = "FixedPath",
|
|
69
|
-
Stopped = "Stopped",
|
|
70
|
-
MoveAway = "MoveAway",
|
|
71
|
-
MoveTowards = "MoveTowards"
|
|
72
|
-
}
|
|
73
|
-
export declare enum NPCSocketEvents {
|
|
74
|
-
NPCDataUpdate = "NPCDataUpdate",
|
|
75
|
-
NPCPositionUpdate = "NPCPositionUpdate",
|
|
76
|
-
NPCTalkToNPC = "NPCTalkToNPC",
|
|
77
|
-
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
78
|
-
NPCStopDialogNPC = "NPCStopDialogNPC"
|
|
79
|
-
}
|
|
80
|
-
export interface INPCPositionUpdatePayload {
|
|
81
|
-
id: string;
|
|
82
|
-
name: string;
|
|
83
|
-
x: number;
|
|
84
|
-
y: number;
|
|
85
|
-
direction: string;
|
|
86
|
-
key: string;
|
|
87
|
-
layer: MapLayers;
|
|
88
|
-
textureKey: string;
|
|
89
|
-
scene: string;
|
|
90
|
-
speed: number;
|
|
91
|
-
alignment: NPCAlignment;
|
|
92
|
-
health: number;
|
|
93
|
-
maxHealth: number;
|
|
94
|
-
mana: number;
|
|
95
|
-
maxMana: number;
|
|
96
|
-
hasQuest: boolean;
|
|
97
|
-
}
|
|
98
|
-
export interface INPCDataUpdatePayload {
|
|
99
|
-
[key: string]: any;
|
|
100
|
-
}
|
|
101
|
-
export interface INPCGetInfoEmitterClient {
|
|
102
|
-
npcId: string;
|
|
103
|
-
}
|
|
104
|
-
export interface INPCGetInfoEmitterServer extends INPC {
|
|
105
|
-
}
|
|
106
|
-
export interface INPCStartDialog {
|
|
107
|
-
npcId: string;
|
|
108
|
-
dialogText: string;
|
|
109
|
-
}
|
|
110
|
-
export interface INPCStopDialog {
|
|
111
|
-
npcId: string;
|
|
112
|
-
}
|
|
113
|
-
export interface INPCLoot {
|
|
114
|
-
itemBlueprintKey: string;
|
|
115
|
-
chance: number;
|
|
116
|
-
quantityRange?: number[];
|
|
117
|
-
}
|
|
1
|
+
import { AnimationDirection } from "./animation.types";
|
|
2
|
+
import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
|
|
3
|
+
import { EntityAttackType } from "./entity.types";
|
|
4
|
+
import { MapLayers } from "./maps.types";
|
|
5
|
+
import { IResource } from "./resource.types";
|
|
6
|
+
import { ISkill } from "./skills.types";
|
|
7
|
+
export interface INPC extends IResource {
|
|
8
|
+
tiledId?: number;
|
|
9
|
+
key: string;
|
|
10
|
+
textureKey: string;
|
|
11
|
+
name: string;
|
|
12
|
+
health: number;
|
|
13
|
+
maxHealth: number;
|
|
14
|
+
mana: number;
|
|
15
|
+
maxMana: number;
|
|
16
|
+
alignment: NPCAlignment;
|
|
17
|
+
targetType: NPCTargetType;
|
|
18
|
+
targetCharacter?: ICharacter | null;
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
initialX: number;
|
|
22
|
+
initialY: number;
|
|
23
|
+
direction: AnimationDirection;
|
|
24
|
+
scene: string;
|
|
25
|
+
class: CharacterClass;
|
|
26
|
+
gender: CharacterGender;
|
|
27
|
+
layer: MapLayers;
|
|
28
|
+
attackType: EntityAttackType;
|
|
29
|
+
originalMovementType: NPCMovementType;
|
|
30
|
+
currentMovementType: NPCMovementType;
|
|
31
|
+
maxRangeInGridCells?: number;
|
|
32
|
+
maxRangedDistanceInGridCells?: number;
|
|
33
|
+
pathOrientation?: NPCPathOrientation;
|
|
34
|
+
fixedPath?: {
|
|
35
|
+
endGridX: number;
|
|
36
|
+
endGridY: number;
|
|
37
|
+
};
|
|
38
|
+
pm2InstanceManager: number;
|
|
39
|
+
speed: number;
|
|
40
|
+
dialogText: string;
|
|
41
|
+
skills: ISkill | string;
|
|
42
|
+
spawnIntervalMin: number;
|
|
43
|
+
nextSpawnTime: Date;
|
|
44
|
+
fleeOnLowHealth: boolean;
|
|
45
|
+
experience?: number;
|
|
46
|
+
xpToRelease?: {
|
|
47
|
+
charId: number;
|
|
48
|
+
xp: number;
|
|
49
|
+
}[];
|
|
50
|
+
loots?: INPCLoot[];
|
|
51
|
+
hasQuest?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare enum NPCTargetType {
|
|
54
|
+
Default = "Default",
|
|
55
|
+
Talking = "Talking"
|
|
56
|
+
}
|
|
57
|
+
export declare enum NPCAlignment {
|
|
58
|
+
Friendly = "Friendly",
|
|
59
|
+
Neutral = "Neutral",
|
|
60
|
+
Hostile = "Hostile"
|
|
61
|
+
}
|
|
62
|
+
export declare enum NPCPathOrientation {
|
|
63
|
+
Forward = "Forward",
|
|
64
|
+
Backward = "Backward"
|
|
65
|
+
}
|
|
66
|
+
export declare enum NPCMovementType {
|
|
67
|
+
Random = "Random",
|
|
68
|
+
FixedPath = "FixedPath",
|
|
69
|
+
Stopped = "Stopped",
|
|
70
|
+
MoveAway = "MoveAway",
|
|
71
|
+
MoveTowards = "MoveTowards"
|
|
72
|
+
}
|
|
73
|
+
export declare enum NPCSocketEvents {
|
|
74
|
+
NPCDataUpdate = "NPCDataUpdate",
|
|
75
|
+
NPCPositionUpdate = "NPCPositionUpdate",
|
|
76
|
+
NPCTalkToNPC = "NPCTalkToNPC",
|
|
77
|
+
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
78
|
+
NPCStopDialogNPC = "NPCStopDialogNPC"
|
|
79
|
+
}
|
|
80
|
+
export interface INPCPositionUpdatePayload {
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
x: number;
|
|
84
|
+
y: number;
|
|
85
|
+
direction: string;
|
|
86
|
+
key: string;
|
|
87
|
+
layer: MapLayers;
|
|
88
|
+
textureKey: string;
|
|
89
|
+
scene: string;
|
|
90
|
+
speed: number;
|
|
91
|
+
alignment: NPCAlignment;
|
|
92
|
+
health: number;
|
|
93
|
+
maxHealth: number;
|
|
94
|
+
mana: number;
|
|
95
|
+
maxMana: number;
|
|
96
|
+
hasQuest: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface INPCDataUpdatePayload {
|
|
99
|
+
[key: string]: any;
|
|
100
|
+
}
|
|
101
|
+
export interface INPCGetInfoEmitterClient {
|
|
102
|
+
npcId: string;
|
|
103
|
+
}
|
|
104
|
+
export interface INPCGetInfoEmitterServer extends INPC {
|
|
105
|
+
}
|
|
106
|
+
export interface INPCStartDialog {
|
|
107
|
+
npcId: string;
|
|
108
|
+
dialogText: string;
|
|
109
|
+
}
|
|
110
|
+
export interface INPCStopDialog {
|
|
111
|
+
npcId: string;
|
|
112
|
+
}
|
|
113
|
+
export interface INPCLoot {
|
|
114
|
+
itemBlueprintKey: string;
|
|
115
|
+
chance: number;
|
|
116
|
+
quantityRange?: number[];
|
|
117
|
+
}
|
|
118
118
|
//# sourceMappingURL=npc.types.d.ts.map
|