@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,166 +1,166 @@
|
|
|
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
|
-
import { ITraderItem } from "./trade.types";
|
|
8
|
-
export interface INPC extends IResource {
|
|
9
|
-
tiledId?: number;
|
|
10
|
-
key: string;
|
|
11
|
-
textureKey: string;
|
|
12
|
-
name: string;
|
|
13
|
-
health: number;
|
|
14
|
-
maxHealth: number;
|
|
15
|
-
mana: number;
|
|
16
|
-
maxMana: number;
|
|
17
|
-
alignment: NPCAlignment;
|
|
18
|
-
targetType: NPCTargetType;
|
|
19
|
-
targetCharacter?: ICharacter | null;
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
initialX: number;
|
|
23
|
-
initialY: number;
|
|
24
|
-
direction: AnimationDirection;
|
|
25
|
-
scene: string;
|
|
26
|
-
class: CharacterClass;
|
|
27
|
-
gender: CharacterGender;
|
|
28
|
-
layer: MapLayers;
|
|
29
|
-
attackType: EntityAttackType;
|
|
30
|
-
originalMovementType: NPCMovementType;
|
|
31
|
-
currentMovementType: NPCMovementType;
|
|
32
|
-
maxRangeInGridCells?: number;
|
|
33
|
-
maxRangedDistanceInGridCells?: number;
|
|
34
|
-
pathOrientation?: NPCPathOrientation;
|
|
35
|
-
fixedPath?: {
|
|
36
|
-
endGridX: number;
|
|
37
|
-
endGridY: number;
|
|
38
|
-
};
|
|
39
|
-
pm2InstanceManager: number;
|
|
40
|
-
speed: number;
|
|
41
|
-
dialogText: string;
|
|
42
|
-
skills: ISkill | string;
|
|
43
|
-
spawnIntervalMin: number;
|
|
44
|
-
nextSpawnTime: Date;
|
|
45
|
-
fleeOnLowHealth: boolean;
|
|
46
|
-
experience?: number;
|
|
47
|
-
xpToRelease?: {
|
|
48
|
-
charId: number;
|
|
49
|
-
xp: number;
|
|
50
|
-
}[];
|
|
51
|
-
loots?: INPCLoot[];
|
|
52
|
-
hasQuest?: boolean;
|
|
53
|
-
hasDepot?: boolean;
|
|
54
|
-
baseHealth?: number;
|
|
55
|
-
healthRandomizerDice?: number;
|
|
56
|
-
skillRandomizerDice?: number;
|
|
57
|
-
skillsToBeRandomized?: string[];
|
|
58
|
-
isTrader?: boolean;
|
|
59
|
-
traderItem?: ITraderItem;
|
|
60
|
-
}
|
|
61
|
-
export declare enum NPCTargetType {
|
|
62
|
-
Default = "Default",
|
|
63
|
-
Talking = "Talking"
|
|
64
|
-
}
|
|
65
|
-
export declare enum NPCAlignment {
|
|
66
|
-
Friendly = "Friendly",
|
|
67
|
-
Neutral = "Neutral",
|
|
68
|
-
Hostile = "Hostile"
|
|
69
|
-
}
|
|
70
|
-
export declare enum NPCPathOrientation {
|
|
71
|
-
Forward = "Forward",
|
|
72
|
-
Backward = "Backward"
|
|
73
|
-
}
|
|
74
|
-
export declare enum NPCMovementType {
|
|
75
|
-
Random = "Random",
|
|
76
|
-
FixedPath = "FixedPath",
|
|
77
|
-
Stopped = "Stopped",
|
|
78
|
-
MoveAway = "MoveAway",
|
|
79
|
-
MoveTowards = "MoveTowards"
|
|
80
|
-
}
|
|
81
|
-
export declare enum NPCSocketEvents {
|
|
82
|
-
NPCDataUpdate = "NPCDataUpdate",
|
|
83
|
-
NPCPositionCreate = "NPCPositionCreate",
|
|
84
|
-
NPCPositionUpdate = "NPCPositionUpdate",
|
|
85
|
-
NPCPositionRequest = "NPCPositionRequest",
|
|
86
|
-
NPCTalkToNPC = "NPCTalkToNPC",
|
|
87
|
-
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
88
|
-
NPCStopDialogNPC = "NPCStopDialogNPC",
|
|
89
|
-
NPCAttributeChanged = "NPCAttributeChanged"
|
|
90
|
-
}
|
|
91
|
-
export interface INPCAttributeChanged {
|
|
92
|
-
targetId: string;
|
|
93
|
-
health?: number;
|
|
94
|
-
mana?: number;
|
|
95
|
-
speed?: number;
|
|
96
|
-
maxMana?: number;
|
|
97
|
-
maxHealth?: number;
|
|
98
|
-
attackIntervalSpeed?: number;
|
|
99
|
-
textureKey?: string;
|
|
100
|
-
isGiantForm?: boolean;
|
|
101
|
-
}
|
|
102
|
-
export interface INPCPositionRequestPayload {
|
|
103
|
-
type: "create" | "update";
|
|
104
|
-
id: string;
|
|
105
|
-
}
|
|
106
|
-
export interface INPCPositionCreatePayload {
|
|
107
|
-
id: string;
|
|
108
|
-
name: string;
|
|
109
|
-
x: number;
|
|
110
|
-
y: number;
|
|
111
|
-
direction: string;
|
|
112
|
-
key: string;
|
|
113
|
-
layer: MapLayers;
|
|
114
|
-
textureKey: string;
|
|
115
|
-
scene: string;
|
|
116
|
-
speed: number;
|
|
117
|
-
alignment: NPCAlignment;
|
|
118
|
-
health: number;
|
|
119
|
-
maxHealth: number;
|
|
120
|
-
mana: number;
|
|
121
|
-
maxMana: number;
|
|
122
|
-
hasQuest: boolean;
|
|
123
|
-
hasDepot?: boolean;
|
|
124
|
-
isTrader?: boolean;
|
|
125
|
-
traderItems?: ITraderItem[];
|
|
126
|
-
isGiantForm?: boolean;
|
|
127
|
-
}
|
|
128
|
-
export interface INPCPositionUpdatePayload {
|
|
129
|
-
id: string;
|
|
130
|
-
x: number;
|
|
131
|
-
y: number;
|
|
132
|
-
direction: string;
|
|
133
|
-
alignment: NPCAlignment;
|
|
134
|
-
}
|
|
135
|
-
export declare enum NPCSubtype {
|
|
136
|
-
Animal = "Animal",
|
|
137
|
-
Bird = "Bird",
|
|
138
|
-
Insect = "Insect",
|
|
139
|
-
Undead = "Undead",
|
|
140
|
-
Magical = "Magical",
|
|
141
|
-
Humanoid = "Humanoid",
|
|
142
|
-
Dragon = "Dragon",
|
|
143
|
-
Elemental = "Elemental"
|
|
144
|
-
}
|
|
145
|
-
export interface INPCDataUpdatePayload {
|
|
146
|
-
[key: string]: any;
|
|
147
|
-
}
|
|
148
|
-
export interface INPCGetInfoEmitterClient {
|
|
149
|
-
npcId: string;
|
|
150
|
-
}
|
|
151
|
-
export interface INPCGetInfoEmitterServer extends INPC {
|
|
152
|
-
}
|
|
153
|
-
export interface INPCStartDialog {
|
|
154
|
-
npcId: string;
|
|
155
|
-
dialogText: string;
|
|
156
|
-
}
|
|
157
|
-
export interface INPCStopDialog {
|
|
158
|
-
npcId: string;
|
|
159
|
-
}
|
|
160
|
-
export interface INPCLoot {
|
|
161
|
-
itemBlueprintKey: string;
|
|
162
|
-
chance: number;
|
|
163
|
-
quantityRange?: number[];
|
|
164
|
-
raidKey?: string;
|
|
165
|
-
}
|
|
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
|
+
import { ITraderItem } from "./trade.types";
|
|
8
|
+
export interface INPC extends IResource {
|
|
9
|
+
tiledId?: number;
|
|
10
|
+
key: string;
|
|
11
|
+
textureKey: string;
|
|
12
|
+
name: string;
|
|
13
|
+
health: number;
|
|
14
|
+
maxHealth: number;
|
|
15
|
+
mana: number;
|
|
16
|
+
maxMana: number;
|
|
17
|
+
alignment: NPCAlignment;
|
|
18
|
+
targetType: NPCTargetType;
|
|
19
|
+
targetCharacter?: ICharacter | null;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
initialX: number;
|
|
23
|
+
initialY: number;
|
|
24
|
+
direction: AnimationDirection;
|
|
25
|
+
scene: string;
|
|
26
|
+
class: CharacterClass;
|
|
27
|
+
gender: CharacterGender;
|
|
28
|
+
layer: MapLayers;
|
|
29
|
+
attackType: EntityAttackType;
|
|
30
|
+
originalMovementType: NPCMovementType;
|
|
31
|
+
currentMovementType: NPCMovementType;
|
|
32
|
+
maxRangeInGridCells?: number;
|
|
33
|
+
maxRangedDistanceInGridCells?: number;
|
|
34
|
+
pathOrientation?: NPCPathOrientation;
|
|
35
|
+
fixedPath?: {
|
|
36
|
+
endGridX: number;
|
|
37
|
+
endGridY: number;
|
|
38
|
+
};
|
|
39
|
+
pm2InstanceManager: number;
|
|
40
|
+
speed: number;
|
|
41
|
+
dialogText: string;
|
|
42
|
+
skills: ISkill | string;
|
|
43
|
+
spawnIntervalMin: number;
|
|
44
|
+
nextSpawnTime: Date;
|
|
45
|
+
fleeOnLowHealth: boolean;
|
|
46
|
+
experience?: number;
|
|
47
|
+
xpToRelease?: {
|
|
48
|
+
charId: number;
|
|
49
|
+
xp: number;
|
|
50
|
+
}[];
|
|
51
|
+
loots?: INPCLoot[];
|
|
52
|
+
hasQuest?: boolean;
|
|
53
|
+
hasDepot?: boolean;
|
|
54
|
+
baseHealth?: number;
|
|
55
|
+
healthRandomizerDice?: number;
|
|
56
|
+
skillRandomizerDice?: number;
|
|
57
|
+
skillsToBeRandomized?: string[];
|
|
58
|
+
isTrader?: boolean;
|
|
59
|
+
traderItem?: ITraderItem;
|
|
60
|
+
}
|
|
61
|
+
export declare enum NPCTargetType {
|
|
62
|
+
Default = "Default",
|
|
63
|
+
Talking = "Talking"
|
|
64
|
+
}
|
|
65
|
+
export declare enum NPCAlignment {
|
|
66
|
+
Friendly = "Friendly",
|
|
67
|
+
Neutral = "Neutral",
|
|
68
|
+
Hostile = "Hostile"
|
|
69
|
+
}
|
|
70
|
+
export declare enum NPCPathOrientation {
|
|
71
|
+
Forward = "Forward",
|
|
72
|
+
Backward = "Backward"
|
|
73
|
+
}
|
|
74
|
+
export declare enum NPCMovementType {
|
|
75
|
+
Random = "Random",
|
|
76
|
+
FixedPath = "FixedPath",
|
|
77
|
+
Stopped = "Stopped",
|
|
78
|
+
MoveAway = "MoveAway",
|
|
79
|
+
MoveTowards = "MoveTowards"
|
|
80
|
+
}
|
|
81
|
+
export declare enum NPCSocketEvents {
|
|
82
|
+
NPCDataUpdate = "NPCDataUpdate",
|
|
83
|
+
NPCPositionCreate = "NPCPositionCreate",
|
|
84
|
+
NPCPositionUpdate = "NPCPositionUpdate",
|
|
85
|
+
NPCPositionRequest = "NPCPositionRequest",
|
|
86
|
+
NPCTalkToNPC = "NPCTalkToNPC",
|
|
87
|
+
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
88
|
+
NPCStopDialogNPC = "NPCStopDialogNPC",
|
|
89
|
+
NPCAttributeChanged = "NPCAttributeChanged"
|
|
90
|
+
}
|
|
91
|
+
export interface INPCAttributeChanged {
|
|
92
|
+
targetId: string;
|
|
93
|
+
health?: number;
|
|
94
|
+
mana?: number;
|
|
95
|
+
speed?: number;
|
|
96
|
+
maxMana?: number;
|
|
97
|
+
maxHealth?: number;
|
|
98
|
+
attackIntervalSpeed?: number;
|
|
99
|
+
textureKey?: string;
|
|
100
|
+
isGiantForm?: boolean;
|
|
101
|
+
}
|
|
102
|
+
export interface INPCPositionRequestPayload {
|
|
103
|
+
type: "create" | "update";
|
|
104
|
+
id: string;
|
|
105
|
+
}
|
|
106
|
+
export interface INPCPositionCreatePayload {
|
|
107
|
+
id: string;
|
|
108
|
+
name: string;
|
|
109
|
+
x: number;
|
|
110
|
+
y: number;
|
|
111
|
+
direction: string;
|
|
112
|
+
key: string;
|
|
113
|
+
layer: MapLayers;
|
|
114
|
+
textureKey: string;
|
|
115
|
+
scene: string;
|
|
116
|
+
speed: number;
|
|
117
|
+
alignment: NPCAlignment;
|
|
118
|
+
health: number;
|
|
119
|
+
maxHealth: number;
|
|
120
|
+
mana: number;
|
|
121
|
+
maxMana: number;
|
|
122
|
+
hasQuest: boolean;
|
|
123
|
+
hasDepot?: boolean;
|
|
124
|
+
isTrader?: boolean;
|
|
125
|
+
traderItems?: ITraderItem[];
|
|
126
|
+
isGiantForm?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface INPCPositionUpdatePayload {
|
|
129
|
+
id: string;
|
|
130
|
+
x: number;
|
|
131
|
+
y: number;
|
|
132
|
+
direction: string;
|
|
133
|
+
alignment: NPCAlignment;
|
|
134
|
+
}
|
|
135
|
+
export declare enum NPCSubtype {
|
|
136
|
+
Animal = "Animal",
|
|
137
|
+
Bird = "Bird",
|
|
138
|
+
Insect = "Insect",
|
|
139
|
+
Undead = "Undead",
|
|
140
|
+
Magical = "Magical",
|
|
141
|
+
Humanoid = "Humanoid",
|
|
142
|
+
Dragon = "Dragon",
|
|
143
|
+
Elemental = "Elemental"
|
|
144
|
+
}
|
|
145
|
+
export interface INPCDataUpdatePayload {
|
|
146
|
+
[key: string]: any;
|
|
147
|
+
}
|
|
148
|
+
export interface INPCGetInfoEmitterClient {
|
|
149
|
+
npcId: string;
|
|
150
|
+
}
|
|
151
|
+
export interface INPCGetInfoEmitterServer extends INPC {
|
|
152
|
+
}
|
|
153
|
+
export interface INPCStartDialog {
|
|
154
|
+
npcId: string;
|
|
155
|
+
dialogText: string;
|
|
156
|
+
}
|
|
157
|
+
export interface INPCStopDialog {
|
|
158
|
+
npcId: string;
|
|
159
|
+
}
|
|
160
|
+
export interface INPCLoot {
|
|
161
|
+
itemBlueprintKey: string;
|
|
162
|
+
chance: number;
|
|
163
|
+
quantityRange?: number[];
|
|
164
|
+
raidKey?: string;
|
|
165
|
+
}
|
|
166
166
|
//# sourceMappingURL=npc.types.d.ts.map
|
package/dist/types/npc.types.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NPCSubtype = 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["NPCPositionCreate"] = "NPCPositionCreate";
|
|
32
|
-
NPCSocketEvents["NPCPositionUpdate"] = "NPCPositionUpdate";
|
|
33
|
-
NPCSocketEvents["NPCPositionRequest"] = "NPCPositionRequest";
|
|
34
|
-
NPCSocketEvents["NPCTalkToNPC"] = "NPCTalkToNPC";
|
|
35
|
-
NPCSocketEvents["NPCStartDialogNPC"] = "NPCStartDialogNPC";
|
|
36
|
-
NPCSocketEvents["NPCStopDialogNPC"] = "NPCStopDialogNPC";
|
|
37
|
-
NPCSocketEvents["NPCAttributeChanged"] = "NPCAttributeChanged";
|
|
38
|
-
})(NPCSocketEvents = exports.NPCSocketEvents || (exports.NPCSocketEvents = {}));
|
|
39
|
-
var NPCSubtype;
|
|
40
|
-
(function (NPCSubtype) {
|
|
41
|
-
NPCSubtype["Animal"] = "Animal";
|
|
42
|
-
NPCSubtype["Bird"] = "Bird";
|
|
43
|
-
NPCSubtype["Insect"] = "Insect";
|
|
44
|
-
NPCSubtype["Undead"] = "Undead";
|
|
45
|
-
NPCSubtype["Magical"] = "Magical";
|
|
46
|
-
NPCSubtype["Humanoid"] = "Humanoid";
|
|
47
|
-
NPCSubtype["Dragon"] = "Dragon";
|
|
48
|
-
NPCSubtype["Elemental"] = "Elemental";
|
|
49
|
-
})(NPCSubtype = exports.NPCSubtype || (exports.NPCSubtype = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NPCSubtype = 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["NPCPositionCreate"] = "NPCPositionCreate";
|
|
32
|
+
NPCSocketEvents["NPCPositionUpdate"] = "NPCPositionUpdate";
|
|
33
|
+
NPCSocketEvents["NPCPositionRequest"] = "NPCPositionRequest";
|
|
34
|
+
NPCSocketEvents["NPCTalkToNPC"] = "NPCTalkToNPC";
|
|
35
|
+
NPCSocketEvents["NPCStartDialogNPC"] = "NPCStartDialogNPC";
|
|
36
|
+
NPCSocketEvents["NPCStopDialogNPC"] = "NPCStopDialogNPC";
|
|
37
|
+
NPCSocketEvents["NPCAttributeChanged"] = "NPCAttributeChanged";
|
|
38
|
+
})(NPCSocketEvents = exports.NPCSocketEvents || (exports.NPCSocketEvents = {}));
|
|
39
|
+
var NPCSubtype;
|
|
40
|
+
(function (NPCSubtype) {
|
|
41
|
+
NPCSubtype["Animal"] = "Animal";
|
|
42
|
+
NPCSubtype["Bird"] = "Bird";
|
|
43
|
+
NPCSubtype["Insect"] = "Insect";
|
|
44
|
+
NPCSubtype["Undead"] = "Undead";
|
|
45
|
+
NPCSubtype["Magical"] = "Magical";
|
|
46
|
+
NPCSubtype["Humanoid"] = "Humanoid";
|
|
47
|
+
NPCSubtype["Dragon"] = "Dragon";
|
|
48
|
+
NPCSubtype["Elemental"] = "Elemental";
|
|
49
|
+
})(NPCSubtype = exports.NPCSubtype || (exports.NPCSubtype = {}));
|
|
50
50
|
//# sourceMappingURL=npc.types.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface IPaginationResponse<T> {
|
|
2
|
-
docs: T[];
|
|
3
|
-
totalDocs: number;
|
|
4
|
-
offset: number;
|
|
5
|
-
limit: number;
|
|
6
|
-
totalPages: number;
|
|
7
|
-
page: number;
|
|
8
|
-
pagingCounter: number;
|
|
9
|
-
hasPrevPage: boolean;
|
|
10
|
-
hasNextPage: boolean;
|
|
11
|
-
prevPage: number | null;
|
|
12
|
-
nextPage: number | null;
|
|
13
|
-
}
|
|
1
|
+
export interface IPaginationResponse<T> {
|
|
2
|
+
docs: T[];
|
|
3
|
+
totalDocs: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
page: number;
|
|
8
|
+
pagingCounter: number;
|
|
9
|
+
hasPrevPage: boolean;
|
|
10
|
+
hasNextPage: boolean;
|
|
11
|
+
prevPage: number | null;
|
|
12
|
+
nextPage: number | null;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=pagination.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=pagination.types.js.map
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { CharacterClass } from "./character.types";
|
|
2
|
-
export interface IPartyManagementFromClient {
|
|
3
|
-
partyId?: string;
|
|
4
|
-
targetId?: string;
|
|
5
|
-
leaderId?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare enum PartySocketEvents {
|
|
8
|
-
InviteOrCreate = "inviteOrCreate",
|
|
9
|
-
PartyInvite = "partyInvite",
|
|
10
|
-
AcceptInvite = "acceptInvite",
|
|
11
|
-
LeaveParty = "leaveParty",
|
|
12
|
-
PartyInfoRead = "partyInfoRead",
|
|
13
|
-
PartyInfoOpen = "partyInfoOpen",
|
|
14
|
-
TransferLeadership = "transferLeadership",
|
|
15
|
-
Create = "create",
|
|
16
|
-
Invite = "invite"
|
|
17
|
-
}
|
|
18
|
-
export interface ICharacterPartyChange {
|
|
19
|
-
leader: {
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
22
|
-
members: Array<{
|
|
23
|
-
name: string;
|
|
24
|
-
}>;
|
|
25
|
-
maxSize: number;
|
|
26
|
-
benefits?: Array<{
|
|
27
|
-
benefit: string;
|
|
28
|
-
value: number;
|
|
29
|
-
}>;
|
|
30
|
-
}
|
|
31
|
-
export declare enum CharacterPartyBenefits {
|
|
32
|
-
Experience = "experience",
|
|
33
|
-
DropRatio = "drop-ratio",
|
|
34
|
-
Skill = "skill",
|
|
35
|
-
Distribution = "distribution"
|
|
36
|
-
}
|
|
37
|
-
export interface ICharacterPartyShared {
|
|
38
|
-
id?: string;
|
|
39
|
-
leader: {
|
|
40
|
-
_id: string;
|
|
41
|
-
class: CharacterClass;
|
|
42
|
-
name: string;
|
|
43
|
-
};
|
|
44
|
-
members: {
|
|
45
|
-
_id: string;
|
|
46
|
-
class: CharacterClass;
|
|
47
|
-
name: string;
|
|
48
|
-
}[];
|
|
49
|
-
maxSize: number;
|
|
50
|
-
size?: number;
|
|
51
|
-
benefits?: {
|
|
52
|
-
benefit: CharacterPartyBenefits;
|
|
53
|
-
value: number;
|
|
54
|
-
}[];
|
|
55
|
-
}
|
|
56
|
-
export declare enum CharacterPartyEXPBonus {
|
|
57
|
-
One = 20,
|
|
58
|
-
Two = 30,
|
|
59
|
-
Three = 40,
|
|
60
|
-
Four = 50,
|
|
61
|
-
Five = 60
|
|
62
|
-
}
|
|
63
|
-
export declare enum CharacterPartyDropBonus {
|
|
64
|
-
None = 0,
|
|
65
|
-
Two = 6,
|
|
66
|
-
Three = 9,
|
|
67
|
-
Four = 12,
|
|
68
|
-
Five = 15
|
|
69
|
-
}
|
|
70
|
-
export declare enum CharacterPartySkillBonus {
|
|
71
|
-
None = 0,
|
|
72
|
-
Two = 4,
|
|
73
|
-
Three = 6,
|
|
74
|
-
Four = 8,
|
|
75
|
-
Five = 10
|
|
76
|
-
}
|
|
77
|
-
export declare enum CharacterPartyDistributionBonus {
|
|
78
|
-
None = 1,
|
|
79
|
-
Two = 0.5,
|
|
80
|
-
Three = 0.33,
|
|
81
|
-
Four = 0.25,
|
|
82
|
-
Five = 0.2
|
|
83
|
-
}
|
|
1
|
+
import { CharacterClass } from "./character.types";
|
|
2
|
+
export interface IPartyManagementFromClient {
|
|
3
|
+
partyId?: string;
|
|
4
|
+
targetId?: string;
|
|
5
|
+
leaderId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare enum PartySocketEvents {
|
|
8
|
+
InviteOrCreate = "inviteOrCreate",
|
|
9
|
+
PartyInvite = "partyInvite",
|
|
10
|
+
AcceptInvite = "acceptInvite",
|
|
11
|
+
LeaveParty = "leaveParty",
|
|
12
|
+
PartyInfoRead = "partyInfoRead",
|
|
13
|
+
PartyInfoOpen = "partyInfoOpen",
|
|
14
|
+
TransferLeadership = "transferLeadership",
|
|
15
|
+
Create = "create",
|
|
16
|
+
Invite = "invite"
|
|
17
|
+
}
|
|
18
|
+
export interface ICharacterPartyChange {
|
|
19
|
+
leader: {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
members: Array<{
|
|
23
|
+
name: string;
|
|
24
|
+
}>;
|
|
25
|
+
maxSize: number;
|
|
26
|
+
benefits?: Array<{
|
|
27
|
+
benefit: string;
|
|
28
|
+
value: number;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
export declare enum CharacterPartyBenefits {
|
|
32
|
+
Experience = "experience",
|
|
33
|
+
DropRatio = "drop-ratio",
|
|
34
|
+
Skill = "skill",
|
|
35
|
+
Distribution = "distribution"
|
|
36
|
+
}
|
|
37
|
+
export interface ICharacterPartyShared {
|
|
38
|
+
id?: string;
|
|
39
|
+
leader: {
|
|
40
|
+
_id: string;
|
|
41
|
+
class: CharacterClass;
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
members: {
|
|
45
|
+
_id: string;
|
|
46
|
+
class: CharacterClass;
|
|
47
|
+
name: string;
|
|
48
|
+
}[];
|
|
49
|
+
maxSize: number;
|
|
50
|
+
size?: number;
|
|
51
|
+
benefits?: {
|
|
52
|
+
benefit: CharacterPartyBenefits;
|
|
53
|
+
value: number;
|
|
54
|
+
}[];
|
|
55
|
+
}
|
|
56
|
+
export declare enum CharacterPartyEXPBonus {
|
|
57
|
+
One = 20,
|
|
58
|
+
Two = 30,
|
|
59
|
+
Three = 40,
|
|
60
|
+
Four = 50,
|
|
61
|
+
Five = 60
|
|
62
|
+
}
|
|
63
|
+
export declare enum CharacterPartyDropBonus {
|
|
64
|
+
None = 0,
|
|
65
|
+
Two = 6,
|
|
66
|
+
Three = 9,
|
|
67
|
+
Four = 12,
|
|
68
|
+
Five = 15
|
|
69
|
+
}
|
|
70
|
+
export declare enum CharacterPartySkillBonus {
|
|
71
|
+
None = 0,
|
|
72
|
+
Two = 4,
|
|
73
|
+
Three = 6,
|
|
74
|
+
Four = 8,
|
|
75
|
+
Five = 10
|
|
76
|
+
}
|
|
77
|
+
export declare enum CharacterPartyDistributionBonus {
|
|
78
|
+
None = 1,
|
|
79
|
+
Two = 0.5,
|
|
80
|
+
Three = 0.33,
|
|
81
|
+
Four = 0.25,
|
|
82
|
+
Five = 0.2
|
|
83
|
+
}
|
|
84
84
|
//# sourceMappingURL=party.types.d.ts.map
|