@rpg-engine/shared 0.8.49 → 0.8.51
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.d.ts.map +0 -0
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/date.constants.js.map +0 -0
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.d.ts.map +0 -0
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/npc.constants.js.map +0 -0
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.d.ts.map +0 -0
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/socket.constants.js.map +0 -0
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.d.ts.map +0 -0
- package/dist/constants/world.constants.js +13 -13
- package/dist/constants/world.constants.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/helpers/itemSlotHelper.js +27 -27
- package/dist/helpers/itemSlotHelper.js.map +0 -0
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.d.ts.map +0 -0
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/helpers/skillHelpers.js.map +0 -0
- package/dist/helpers/weightHelper.d.ts +1 -1
- package/dist/helpers/weightHelper.js +14 -14
- package/dist/index.d.ts +55 -55
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +71 -71
- package/dist/index.js.map +0 -0
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.d.ts.map +0 -0
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/GridHelper.js.map +0 -0
- package/dist/libs/MathHelper.d.ts +16 -16
- package/dist/libs/MathHelper.d.ts.map +0 -0
- package/dist/libs/MathHelper.js +14 -14
- package/dist/libs/MathHelper.js.map +0 -0
- package/dist/libs/SocketHelper.d.ts +2 -2
- package/dist/libs/SocketHelper.d.ts.map +0 -0
- package/dist/libs/SocketHelper.js +14 -14
- package/dist/libs/SocketHelper.js.map +0 -0
- package/dist/libs/TextHelper.d.ts +7 -7
- package/dist/libs/TextHelper.d.ts.map +0 -0
- package/dist/libs/TextHelper.js +21 -21
- package/dist/libs/TextHelper.js.map +0 -0
- package/dist/libs/TypeHelper.d.ts +3 -3
- package/dist/libs/TypeHelper.d.ts.map +0 -0
- package/dist/libs/TypeHelper.js +16 -16
- package/dist/libs/TypeHelper.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/translations/onboarding.lang.js +21 -21
- package/dist/translations/onboarding.lang.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/types/animation.types.js +46 -46
- package/dist/types/animation.types.js.map +0 -0
- package/dist/types/api.types.d.ts +21 -21
- package/dist/types/api.types.d.ts.map +0 -0
- package/dist/types/api.types.js +20 -20
- package/dist/types/api.types.js.map +0 -0
- package/dist/types/asset.types.d.ts +6 -6
- package/dist/types/asset.types.d.ts.map +0 -0
- package/dist/types/asset.types.js +2 -2
- package/dist/types/asset.types.js.map +0 -0
- package/dist/types/auth.types.d.ts +7 -7
- package/dist/types/auth.types.d.ts.map +0 -0
- package/dist/types/auth.types.js +2 -2
- package/dist/types/auth.types.js.map +0 -0
- package/dist/types/battle.types.d.ts +41 -41
- package/dist/types/battle.types.d.ts.map +0 -0
- package/dist/types/battle.types.js +18 -18
- package/dist/types/battle.types.js.map +0 -0
- package/dist/types/buff.types.d.ts +39 -39
- package/dist/types/buff.types.js +13 -13
- package/dist/types/character.types.d.ts +228 -228
- package/dist/types/character.types.d.ts.map +0 -0
- package/dist/types/character.types.js +65 -65
- package/dist/types/character.types.js.map +0 -0
- package/dist/types/chat.types.d.ts +30 -30
- package/dist/types/chat.types.d.ts.map +0 -0
- package/dist/types/chat.types.js +14 -14
- package/dist/types/chat.types.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/types/device.types.js +7 -7
- package/dist/types/device.types.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/types/entity.types.js +20 -20
- package/dist/types/entity.types.js.map +0 -0
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.d.ts.map +0 -0
- package/dist/types/env.types.js +9 -9
- package/dist/types/env.types.js.map +0 -0
- package/dist/types/equipment.types.d.ts +35 -35
- package/dist/types/equipment.types.d.ts.map +0 -0
- package/dist/types/equipment.types.js +18 -18
- package/dist/types/equipment.types.js.map +0 -0
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.d.ts.map +0 -0
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/googleOAuth.types.js.map +0 -0
- package/dist/types/inventory.types.d.ts +7 -7
- package/dist/types/inventory.types.d.ts.map +0 -0
- package/dist/types/inventory.types.js +2 -2
- package/dist/types/inventory.types.js.map +0 -0
- package/dist/types/item.types.d.ts +370 -370
- 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.d.ts.map +0 -0
- package/dist/types/itemContainer.types.js +11 -11
- package/dist/types/itemContainer.types.js.map +0 -0
- package/dist/types/macro.types.d.ts +8 -8
- package/dist/types/macro.types.js +12 -12
- package/dist/types/maps.types.d.ts +82 -82
- package/dist/types/maps.types.d.ts.map +0 -0
- package/dist/types/maps.types.js +81 -81
- package/dist/types/maps.types.js.map +0 -0
- package/dist/types/marketplace.types.d.ts +61 -60
- package/dist/types/marketplace.types.d.ts.map +1 -1
- package/dist/types/marketplace.types.js +15 -14
- package/dist/types/marketplace.types.js.map +1 -1
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.d.ts.map +0 -0
- package/dist/types/notification.types.js +2 -2
- package/dist/types/notification.types.js.map +0 -0
- package/dist/types/npc.types.d.ts +152 -152
- package/dist/types/npc.types.d.ts.map +0 -0
- package/dist/types/npc.types.js +48 -48
- package/dist/types/npc.types.js.map +0 -0
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.d.ts.map +0 -0
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/pagination.types.js.map +0 -0
- package/dist/types/party.types.d.ts +82 -82
- package/dist/types/party.types.js +54 -54
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.d.ts.map +0 -0
- package/dist/types/places.types.js +9 -9
- package/dist/types/places.types.js.map +0 -0
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.d.ts.map +0 -0
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/preloadScene.types.js.map +0 -0
- package/dist/types/quest.types.d.ts +74 -74
- package/dist/types/quest.types.d.ts.map +0 -0
- package/dist/types/quest.types.js +21 -21
- package/dist/types/quest.types.js.map +0 -0
- package/dist/types/resource.types.d.ts +5 -5
- package/dist/types/resource.types.d.ts.map +0 -0
- package/dist/types/resource.types.js +2 -2
- package/dist/types/resource.types.js.map +0 -0
- package/dist/types/scene.types.d.ts +8 -8
- package/dist/types/scene.types.d.ts.map +0 -0
- package/dist/types/scene.types.js +8 -8
- package/dist/types/scene.types.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/types/skills.types.js +106 -106
- package/dist/types/skills.types.js.map +0 -0
- package/dist/types/socket.types.d.ts +18 -18
- package/dist/types/socket.types.d.ts.map +0 -0
- package/dist/types/socket.types.js +8 -8
- package/dist/types/socket.types.js.map +0 -0
- package/dist/types/spell.types.d.ts +127 -127
- package/dist/types/spell.types.js +86 -86
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.d.ts.map +0 -0
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/tiled.types.js.map +0 -0
- package/dist/types/trade.types.d.ts +65 -65
- package/dist/types/trade.types.d.ts.map +0 -0
- package/dist/types/trade.types.js +15 -15
- package/dist/types/trade.types.js.map +0 -0
- package/dist/types/translation.types.d.ts +5 -5
- package/dist/types/translation.types.d.ts.map +0 -0
- package/dist/types/translation.types.js +8 -8
- package/dist/types/translation.types.js.map +0 -0
- package/dist/types/ui.types.d.ts +8 -8
- package/dist/types/ui.types.d.ts.map +0 -0
- package/dist/types/ui.types.js +7 -7
- package/dist/types/ui.types.js.map +0 -0
- package/dist/types/useWith.types.d.ts +25 -25
- package/dist/types/useWith.types.d.ts.map +0 -0
- package/dist/types/useWith.types.js +9 -9
- package/dist/types/useWith.types.js.map +0 -0
- package/dist/types/user.types.d.ts +101 -101
- package/dist/types/user.types.d.ts.map +0 -0
- package/dist/types/user.types.js +38 -38
- package/dist/types/user.types.js.map +0 -0
- package/dist/types/validation.types.d.ts +9 -9
- package/dist/types/validation.types.d.ts.map +0 -0
- package/dist/types/validation.types.js +2 -2
- package/dist/types/validation.types.js.map +0 -0
- package/dist/types/view.types.d.ts +15 -15
- package/dist/types/view.types.d.ts.map +0 -0
- package/dist/types/view.types.js +7 -7
- package/dist/types/view.types.js.map +0 -0
- package/package.json +43 -43
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
export interface ITiled {
|
|
2
|
-
compressionlevel: number;
|
|
3
|
-
height: number;
|
|
4
|
-
infinite: boolean;
|
|
5
|
-
layers: ITiledLayer[];
|
|
6
|
-
nextlayerid: number;
|
|
7
|
-
nextobjectid: number;
|
|
8
|
-
orientation: string;
|
|
9
|
-
renderorder: string;
|
|
10
|
-
tiledversion: string;
|
|
11
|
-
tileheight: number;
|
|
12
|
-
tilesets: ITileset[];
|
|
13
|
-
tilewidth: number;
|
|
14
|
-
type: string;
|
|
15
|
-
version: string;
|
|
16
|
-
width: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ITiledLayer {
|
|
19
|
-
chunks: ITiledChunk[];
|
|
20
|
-
height: number;
|
|
21
|
-
id: number;
|
|
22
|
-
name: string;
|
|
23
|
-
opacity: number;
|
|
24
|
-
properties: ILayerProperty[];
|
|
25
|
-
startx: number;
|
|
26
|
-
starty: number;
|
|
27
|
-
type: string;
|
|
28
|
-
visible: boolean;
|
|
29
|
-
width: number;
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
objects?: ITiledObject[];
|
|
33
|
-
}
|
|
34
|
-
export interface ITiledObject {
|
|
35
|
-
height: number;
|
|
36
|
-
id: number;
|
|
37
|
-
name: string;
|
|
38
|
-
properties: ITiledObjectProperty[];
|
|
39
|
-
rotation: number;
|
|
40
|
-
type: string;
|
|
41
|
-
visible: boolean;
|
|
42
|
-
width: number;
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
}
|
|
46
|
-
export interface ITiledObjectProperty {
|
|
47
|
-
name: string;
|
|
48
|
-
type: string;
|
|
49
|
-
value: string;
|
|
50
|
-
}
|
|
51
|
-
export interface ITiledChunk {
|
|
52
|
-
data: number[];
|
|
53
|
-
height: number;
|
|
54
|
-
width: number;
|
|
55
|
-
x: number;
|
|
56
|
-
y: number;
|
|
57
|
-
}
|
|
58
|
-
export interface ILayerProperty {
|
|
59
|
-
name: string;
|
|
60
|
-
type: string;
|
|
61
|
-
value: string;
|
|
62
|
-
}
|
|
63
|
-
export interface ITileset {
|
|
64
|
-
columns: number;
|
|
65
|
-
firstgid: number;
|
|
66
|
-
image: string;
|
|
67
|
-
imageheight: number;
|
|
68
|
-
imagewidth: number;
|
|
69
|
-
margin: number;
|
|
70
|
-
name: string;
|
|
71
|
-
spacing: number;
|
|
72
|
-
tilecount: number;
|
|
73
|
-
tileheight: number;
|
|
74
|
-
tiles: ITile[];
|
|
75
|
-
tilewidth: number;
|
|
76
|
-
wangsets: IWangset[];
|
|
77
|
-
}
|
|
78
|
-
export interface ITile {
|
|
79
|
-
id: number;
|
|
80
|
-
properties: ITileProperty[];
|
|
81
|
-
animation?: ITileAnimation[];
|
|
82
|
-
}
|
|
83
|
-
export interface ITileAnimation {
|
|
84
|
-
duration: number;
|
|
85
|
-
tileid: number;
|
|
86
|
-
}
|
|
87
|
-
export interface ITileProperty {
|
|
88
|
-
name: string;
|
|
89
|
-
type: Type;
|
|
90
|
-
value: boolean;
|
|
91
|
-
}
|
|
92
|
-
export declare enum Type {
|
|
93
|
-
Bool = "bool"
|
|
94
|
-
}
|
|
95
|
-
export interface IWangset {
|
|
96
|
-
colors: IColor[];
|
|
97
|
-
name: string;
|
|
98
|
-
tile: number;
|
|
99
|
-
type: string;
|
|
100
|
-
wangtiles: IWangTile[];
|
|
101
|
-
}
|
|
102
|
-
export interface IColor {
|
|
103
|
-
color: string;
|
|
104
|
-
name: string;
|
|
105
|
-
probability: number;
|
|
106
|
-
tile: number;
|
|
107
|
-
}
|
|
108
|
-
export interface IWangTile {
|
|
109
|
-
tileid: number;
|
|
110
|
-
wangid: number[];
|
|
111
|
-
}
|
|
112
|
-
export interface IGetTileXYResult {
|
|
113
|
-
x: number;
|
|
114
|
-
y: number;
|
|
115
|
-
}
|
|
116
|
-
export interface ITiledTile {
|
|
117
|
-
id: number;
|
|
118
|
-
properties: ITileProperty[];
|
|
119
|
-
}
|
|
1
|
+
export interface ITiled {
|
|
2
|
+
compressionlevel: number;
|
|
3
|
+
height: number;
|
|
4
|
+
infinite: boolean;
|
|
5
|
+
layers: ITiledLayer[];
|
|
6
|
+
nextlayerid: number;
|
|
7
|
+
nextobjectid: number;
|
|
8
|
+
orientation: string;
|
|
9
|
+
renderorder: string;
|
|
10
|
+
tiledversion: string;
|
|
11
|
+
tileheight: number;
|
|
12
|
+
tilesets: ITileset[];
|
|
13
|
+
tilewidth: number;
|
|
14
|
+
type: string;
|
|
15
|
+
version: string;
|
|
16
|
+
width: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ITiledLayer {
|
|
19
|
+
chunks: ITiledChunk[];
|
|
20
|
+
height: number;
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
opacity: number;
|
|
24
|
+
properties: ILayerProperty[];
|
|
25
|
+
startx: number;
|
|
26
|
+
starty: number;
|
|
27
|
+
type: string;
|
|
28
|
+
visible: boolean;
|
|
29
|
+
width: number;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
objects?: ITiledObject[];
|
|
33
|
+
}
|
|
34
|
+
export interface ITiledObject {
|
|
35
|
+
height: number;
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
properties: ITiledObjectProperty[];
|
|
39
|
+
rotation: number;
|
|
40
|
+
type: string;
|
|
41
|
+
visible: boolean;
|
|
42
|
+
width: number;
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
}
|
|
46
|
+
export interface ITiledObjectProperty {
|
|
47
|
+
name: string;
|
|
48
|
+
type: string;
|
|
49
|
+
value: string;
|
|
50
|
+
}
|
|
51
|
+
export interface ITiledChunk {
|
|
52
|
+
data: number[];
|
|
53
|
+
height: number;
|
|
54
|
+
width: number;
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
}
|
|
58
|
+
export interface ILayerProperty {
|
|
59
|
+
name: string;
|
|
60
|
+
type: string;
|
|
61
|
+
value: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ITileset {
|
|
64
|
+
columns: number;
|
|
65
|
+
firstgid: number;
|
|
66
|
+
image: string;
|
|
67
|
+
imageheight: number;
|
|
68
|
+
imagewidth: number;
|
|
69
|
+
margin: number;
|
|
70
|
+
name: string;
|
|
71
|
+
spacing: number;
|
|
72
|
+
tilecount: number;
|
|
73
|
+
tileheight: number;
|
|
74
|
+
tiles: ITile[];
|
|
75
|
+
tilewidth: number;
|
|
76
|
+
wangsets: IWangset[];
|
|
77
|
+
}
|
|
78
|
+
export interface ITile {
|
|
79
|
+
id: number;
|
|
80
|
+
properties: ITileProperty[];
|
|
81
|
+
animation?: ITileAnimation[];
|
|
82
|
+
}
|
|
83
|
+
export interface ITileAnimation {
|
|
84
|
+
duration: number;
|
|
85
|
+
tileid: number;
|
|
86
|
+
}
|
|
87
|
+
export interface ITileProperty {
|
|
88
|
+
name: string;
|
|
89
|
+
type: Type;
|
|
90
|
+
value: boolean;
|
|
91
|
+
}
|
|
92
|
+
export declare enum Type {
|
|
93
|
+
Bool = "bool"
|
|
94
|
+
}
|
|
95
|
+
export interface IWangset {
|
|
96
|
+
colors: IColor[];
|
|
97
|
+
name: string;
|
|
98
|
+
tile: number;
|
|
99
|
+
type: string;
|
|
100
|
+
wangtiles: IWangTile[];
|
|
101
|
+
}
|
|
102
|
+
export interface IColor {
|
|
103
|
+
color: string;
|
|
104
|
+
name: string;
|
|
105
|
+
probability: number;
|
|
106
|
+
tile: number;
|
|
107
|
+
}
|
|
108
|
+
export interface IWangTile {
|
|
109
|
+
tileid: number;
|
|
110
|
+
wangid: number[];
|
|
111
|
+
}
|
|
112
|
+
export interface IGetTileXYResult {
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
}
|
|
116
|
+
export interface ITiledTile {
|
|
117
|
+
id: number;
|
|
118
|
+
properties: ITileProperty[];
|
|
119
|
+
}
|
|
120
120
|
//# sourceMappingURL=tiled.types.d.ts.map
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Type = void 0;
|
|
4
|
-
var Type;
|
|
5
|
-
(function (Type) {
|
|
6
|
-
Type["Bool"] = "bool";
|
|
7
|
-
})(Type = exports.Type || (exports.Type = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = void 0;
|
|
4
|
+
var Type;
|
|
5
|
+
(function (Type) {
|
|
6
|
+
Type["Bool"] = "bool";
|
|
7
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
8
8
|
//# sourceMappingURL=tiled.types.js.map
|
|
File without changes
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { IItem } from "./item.types";
|
|
2
|
-
export declare enum CharacterTradeSocketEvents {
|
|
3
|
-
TradeWithNPC = "TradeWithNPC",
|
|
4
|
-
TradeWithMarketplace = "TradeWithMarketplace",
|
|
5
|
-
TradeInit = "TradeInit",
|
|
6
|
-
MarketplaceTradeInit = "MarketplaceTradeInit"
|
|
7
|
-
}
|
|
8
|
-
export declare enum TradingEntity {
|
|
9
|
-
NPC = "NPC",
|
|
10
|
-
Marketplace = "Marketplace"
|
|
11
|
-
}
|
|
12
|
-
export declare type TradeTransactionType = "buy" | "sell";
|
|
13
|
-
export interface ITraderItem {
|
|
14
|
-
key: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ITradeRequestItem {
|
|
17
|
-
key: string;
|
|
18
|
-
qty: number;
|
|
19
|
-
}
|
|
20
|
-
export interface ITradeResponseItem extends IItem {
|
|
21
|
-
price: number;
|
|
22
|
-
qty?: number;
|
|
23
|
-
}
|
|
24
|
-
export interface ICharacterNPCTradeRequest {
|
|
25
|
-
npcId: string;
|
|
26
|
-
type: TradeTransactionType;
|
|
27
|
-
items: ITradeRequestItem[];
|
|
28
|
-
}
|
|
29
|
-
export interface ICharacterMarketplaceTradeRequest {
|
|
30
|
-
marketplaceId: string;
|
|
31
|
-
type: TradeTransactionType;
|
|
32
|
-
items: ITradeRequestItem[];
|
|
33
|
-
}
|
|
34
|
-
export interface ICharacterNPCTradeInit {
|
|
35
|
-
npcId: string;
|
|
36
|
-
type: TradeTransactionType;
|
|
37
|
-
}
|
|
38
|
-
export interface ICharacterMarketplaceTradeInit {
|
|
39
|
-
marketplaceId: string;
|
|
40
|
-
type: TradeTransactionType;
|
|
41
|
-
}
|
|
42
|
-
export interface ICharacterNPCTradeInitBuyResponse {
|
|
43
|
-
npcId: string;
|
|
44
|
-
type: TradeTransactionType;
|
|
45
|
-
traderItems: ITradeResponseItem[];
|
|
46
|
-
characterAvailableGold: number;
|
|
47
|
-
}
|
|
48
|
-
export interface ICharacterMarketplaceTradeInitBuyResponse {
|
|
49
|
-
marketplaceId: string;
|
|
50
|
-
type: TradeTransactionType;
|
|
51
|
-
items: ITradeResponseItem[];
|
|
52
|
-
characterAvailableGold: number;
|
|
53
|
-
}
|
|
54
|
-
export interface ICharacterNPCTradeInitSellResponse {
|
|
55
|
-
npcId: string;
|
|
56
|
-
type: TradeTransactionType;
|
|
57
|
-
characterItems: ITradeResponseItem[];
|
|
58
|
-
characterAvailableGold: number;
|
|
59
|
-
}
|
|
60
|
-
export interface ICharacterMarketplaceTradeInitSellResponse {
|
|
61
|
-
marketplaceId: string;
|
|
62
|
-
type: TradeTransactionType;
|
|
63
|
-
characterItems: ITradeResponseItem[];
|
|
64
|
-
characterAvailableGold: number;
|
|
65
|
-
}
|
|
1
|
+
import { IItem } from "./item.types";
|
|
2
|
+
export declare enum CharacterTradeSocketEvents {
|
|
3
|
+
TradeWithNPC = "TradeWithNPC",
|
|
4
|
+
TradeWithMarketplace = "TradeWithMarketplace",
|
|
5
|
+
TradeInit = "TradeInit",
|
|
6
|
+
MarketplaceTradeInit = "MarketplaceTradeInit"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TradingEntity {
|
|
9
|
+
NPC = "NPC",
|
|
10
|
+
Marketplace = "Marketplace"
|
|
11
|
+
}
|
|
12
|
+
export declare type TradeTransactionType = "buy" | "sell";
|
|
13
|
+
export interface ITraderItem {
|
|
14
|
+
key: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ITradeRequestItem {
|
|
17
|
+
key: string;
|
|
18
|
+
qty: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ITradeResponseItem extends IItem {
|
|
21
|
+
price: number;
|
|
22
|
+
qty?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface ICharacterNPCTradeRequest {
|
|
25
|
+
npcId: string;
|
|
26
|
+
type: TradeTransactionType;
|
|
27
|
+
items: ITradeRequestItem[];
|
|
28
|
+
}
|
|
29
|
+
export interface ICharacterMarketplaceTradeRequest {
|
|
30
|
+
marketplaceId: string;
|
|
31
|
+
type: TradeTransactionType;
|
|
32
|
+
items: ITradeRequestItem[];
|
|
33
|
+
}
|
|
34
|
+
export interface ICharacterNPCTradeInit {
|
|
35
|
+
npcId: string;
|
|
36
|
+
type: TradeTransactionType;
|
|
37
|
+
}
|
|
38
|
+
export interface ICharacterMarketplaceTradeInit {
|
|
39
|
+
marketplaceId: string;
|
|
40
|
+
type: TradeTransactionType;
|
|
41
|
+
}
|
|
42
|
+
export interface ICharacterNPCTradeInitBuyResponse {
|
|
43
|
+
npcId: string;
|
|
44
|
+
type: TradeTransactionType;
|
|
45
|
+
traderItems: ITradeResponseItem[];
|
|
46
|
+
characterAvailableGold: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ICharacterMarketplaceTradeInitBuyResponse {
|
|
49
|
+
marketplaceId: string;
|
|
50
|
+
type: TradeTransactionType;
|
|
51
|
+
items: ITradeResponseItem[];
|
|
52
|
+
characterAvailableGold: number;
|
|
53
|
+
}
|
|
54
|
+
export interface ICharacterNPCTradeInitSellResponse {
|
|
55
|
+
npcId: string;
|
|
56
|
+
type: TradeTransactionType;
|
|
57
|
+
characterItems: ITradeResponseItem[];
|
|
58
|
+
characterAvailableGold: number;
|
|
59
|
+
}
|
|
60
|
+
export interface ICharacterMarketplaceTradeInitSellResponse {
|
|
61
|
+
marketplaceId: string;
|
|
62
|
+
type: TradeTransactionType;
|
|
63
|
+
characterItems: ITradeResponseItem[];
|
|
64
|
+
characterAvailableGold: number;
|
|
65
|
+
}
|
|
66
66
|
//# sourceMappingURL=trade.types.d.ts.map
|
|
File without changes
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TradingEntity = exports.CharacterTradeSocketEvents = void 0;
|
|
4
|
-
var CharacterTradeSocketEvents;
|
|
5
|
-
(function (CharacterTradeSocketEvents) {
|
|
6
|
-
CharacterTradeSocketEvents["TradeWithNPC"] = "TradeWithNPC";
|
|
7
|
-
CharacterTradeSocketEvents["TradeWithMarketplace"] = "TradeWithMarketplace";
|
|
8
|
-
CharacterTradeSocketEvents["TradeInit"] = "TradeInit";
|
|
9
|
-
CharacterTradeSocketEvents["MarketplaceTradeInit"] = "MarketplaceTradeInit";
|
|
10
|
-
})(CharacterTradeSocketEvents = exports.CharacterTradeSocketEvents || (exports.CharacterTradeSocketEvents = {}));
|
|
11
|
-
var TradingEntity;
|
|
12
|
-
(function (TradingEntity) {
|
|
13
|
-
TradingEntity["NPC"] = "NPC";
|
|
14
|
-
TradingEntity["Marketplace"] = "Marketplace";
|
|
15
|
-
})(TradingEntity = exports.TradingEntity || (exports.TradingEntity = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TradingEntity = exports.CharacterTradeSocketEvents = void 0;
|
|
4
|
+
var CharacterTradeSocketEvents;
|
|
5
|
+
(function (CharacterTradeSocketEvents) {
|
|
6
|
+
CharacterTradeSocketEvents["TradeWithNPC"] = "TradeWithNPC";
|
|
7
|
+
CharacterTradeSocketEvents["TradeWithMarketplace"] = "TradeWithMarketplace";
|
|
8
|
+
CharacterTradeSocketEvents["TradeInit"] = "TradeInit";
|
|
9
|
+
CharacterTradeSocketEvents["MarketplaceTradeInit"] = "MarketplaceTradeInit";
|
|
10
|
+
})(CharacterTradeSocketEvents = exports.CharacterTradeSocketEvents || (exports.CharacterTradeSocketEvents = {}));
|
|
11
|
+
var TradingEntity;
|
|
12
|
+
(function (TradingEntity) {
|
|
13
|
+
TradingEntity["NPC"] = "NPC";
|
|
14
|
+
TradingEntity["Marketplace"] = "Marketplace";
|
|
15
|
+
})(TradingEntity = exports.TradingEntity || (exports.TradingEntity = {}));
|
|
16
16
|
//# sourceMappingURL=trade.types.js.map
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare type TranslationTypes = "auth" | "form" | "global" | "logs" | "users" | "validation" | "error" | "email" | "collections" | "settings" | "trackers" | "assets" | "help" | "portfolios" | "search" | "news" | "rankings" | "tabs" | "order" | "company" | "onboarding" | "portfolio-picker" | "marketing" | "app-rate";
|
|
2
|
-
export declare enum Languages {
|
|
3
|
-
eng = "eng",
|
|
4
|
-
ptBr = "ptBr"
|
|
5
|
-
}
|
|
1
|
+
export declare type TranslationTypes = "auth" | "form" | "global" | "logs" | "users" | "validation" | "error" | "email" | "collections" | "settings" | "trackers" | "assets" | "help" | "portfolios" | "search" | "news" | "rankings" | "tabs" | "order" | "company" | "onboarding" | "portfolio-picker" | "marketing" | "app-rate";
|
|
2
|
+
export declare enum Languages {
|
|
3
|
+
eng = "eng",
|
|
4
|
+
ptBr = "ptBr"
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=translation.types.d.ts.map
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Languages = void 0;
|
|
4
|
-
var Languages;
|
|
5
|
-
(function (Languages) {
|
|
6
|
-
Languages["eng"] = "eng";
|
|
7
|
-
Languages["ptBr"] = "ptBr";
|
|
8
|
-
})(Languages = exports.Languages || (exports.Languages = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Languages = void 0;
|
|
4
|
+
var Languages;
|
|
5
|
+
(function (Languages) {
|
|
6
|
+
Languages["eng"] = "eng";
|
|
7
|
+
Languages["ptBr"] = "ptBr";
|
|
8
|
+
})(Languages = exports.Languages || (exports.Languages = {}));
|
|
9
9
|
//# sourceMappingURL=translation.types.js.map
|
|
File without changes
|
package/dist/types/ui.types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare enum UISocketEvents {
|
|
2
|
-
ShowMessage = "ShowMessage"
|
|
3
|
-
}
|
|
4
|
-
export declare type UIMessageType = "info" | "warning" | "error";
|
|
5
|
-
export interface IUIShowMessage {
|
|
6
|
-
message: string;
|
|
7
|
-
type: UIMessageType;
|
|
8
|
-
}
|
|
1
|
+
export declare enum UISocketEvents {
|
|
2
|
+
ShowMessage = "ShowMessage"
|
|
3
|
+
}
|
|
4
|
+
export declare type UIMessageType = "info" | "warning" | "error";
|
|
5
|
+
export interface IUIShowMessage {
|
|
6
|
+
message: string;
|
|
7
|
+
type: UIMessageType;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=ui.types.d.ts.map
|
|
File without changes
|
package/dist/types/ui.types.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UISocketEvents = void 0;
|
|
4
|
-
var UISocketEvents;
|
|
5
|
-
(function (UISocketEvents) {
|
|
6
|
-
UISocketEvents["ShowMessage"] = "ShowMessage";
|
|
7
|
-
})(UISocketEvents = exports.UISocketEvents || (exports.UISocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UISocketEvents = void 0;
|
|
4
|
+
var UISocketEvents;
|
|
5
|
+
(function (UISocketEvents) {
|
|
6
|
+
UISocketEvents["ShowMessage"] = "ShowMessage";
|
|
7
|
+
})(UISocketEvents = exports.UISocketEvents || (exports.UISocketEvents = {}));
|
|
8
8
|
//# sourceMappingURL=ui.types.js.map
|
|
File without changes
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { EntityType } from "./entity.types";
|
|
2
|
-
import { MapLayers } from "./maps.types";
|
|
3
|
-
export interface IUseWithItem {
|
|
4
|
-
originItemId: string;
|
|
5
|
-
targetItemId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IUseWithTile {
|
|
8
|
-
originItemId: string;
|
|
9
|
-
targetTile: {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
map: string;
|
|
13
|
-
layer: MapLayers;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface IUseWithEntity {
|
|
17
|
-
itemId: string;
|
|
18
|
-
entityId: string;
|
|
19
|
-
entityType: EntityType;
|
|
20
|
-
}
|
|
21
|
-
export declare enum UseWithSocketEvents {
|
|
22
|
-
UseWithItem = "UseWithItem",
|
|
23
|
-
UseWithTile = "UseWithTile",
|
|
24
|
-
UseWithEntity = "UseWithEntity"
|
|
25
|
-
}
|
|
1
|
+
import { EntityType } from "./entity.types";
|
|
2
|
+
import { MapLayers } from "./maps.types";
|
|
3
|
+
export interface IUseWithItem {
|
|
4
|
+
originItemId: string;
|
|
5
|
+
targetItemId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IUseWithTile {
|
|
8
|
+
originItemId: string;
|
|
9
|
+
targetTile: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
map: string;
|
|
13
|
+
layer: MapLayers;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface IUseWithEntity {
|
|
17
|
+
itemId: string;
|
|
18
|
+
entityId: string;
|
|
19
|
+
entityType: EntityType;
|
|
20
|
+
}
|
|
21
|
+
export declare enum UseWithSocketEvents {
|
|
22
|
+
UseWithItem = "UseWithItem",
|
|
23
|
+
UseWithTile = "UseWithTile",
|
|
24
|
+
UseWithEntity = "UseWithEntity"
|
|
25
|
+
}
|
|
26
26
|
//# sourceMappingURL=useWith.types.d.ts.map
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UseWithSocketEvents = void 0;
|
|
4
|
-
var UseWithSocketEvents;
|
|
5
|
-
(function (UseWithSocketEvents) {
|
|
6
|
-
UseWithSocketEvents["UseWithItem"] = "UseWithItem";
|
|
7
|
-
UseWithSocketEvents["UseWithTile"] = "UseWithTile";
|
|
8
|
-
UseWithSocketEvents["UseWithEntity"] = "UseWithEntity";
|
|
9
|
-
})(UseWithSocketEvents = exports.UseWithSocketEvents || (exports.UseWithSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseWithSocketEvents = void 0;
|
|
4
|
+
var UseWithSocketEvents;
|
|
5
|
+
(function (UseWithSocketEvents) {
|
|
6
|
+
UseWithSocketEvents["UseWithItem"] = "UseWithItem";
|
|
7
|
+
UseWithSocketEvents["UseWithTile"] = "UseWithTile";
|
|
8
|
+
UseWithSocketEvents["UseWithEntity"] = "UseWithEntity";
|
|
9
|
+
})(UseWithSocketEvents = exports.UseWithSocketEvents || (exports.UseWithSocketEvents = {}));
|
|
10
10
|
//# sourceMappingURL=useWith.types.js.map
|
|
File without changes
|