@rpg-engine/shared 0.11.9 → 0.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/date.constants.d.ts +3 -0
- package/dist/constants/date.constants.d.ts.map +1 -0
- package/dist/constants/date.constants.js +6 -0
- package/dist/constants/date.constants.js.map +1 -0
- package/dist/constants/dc.constants.d.ts +4 -0
- package/dist/constants/dc.constants.d.ts.map +1 -0
- package/dist/constants/dc.constants.js +9 -0
- package/dist/constants/dc.constants.js.map +1 -0
- package/dist/constants/npc.constants.d.ts +2 -0
- package/dist/constants/npc.constants.d.ts.map +1 -0
- package/dist/constants/npc.constants.js +5 -0
- package/dist/constants/npc.constants.js.map +1 -0
- package/dist/constants/skillProgression.constants.d.ts +23 -0
- package/dist/constants/skillProgression.constants.d.ts.map +1 -0
- package/dist/constants/skillProgression.constants.js +194 -0
- package/dist/constants/skillProgression.constants.js.map +1 -0
- package/dist/constants/skillProgression.constants.test.d.ts +2 -0
- package/dist/constants/skillProgression.constants.test.d.ts.map +1 -0
- package/dist/constants/skillProgression.constants.test.js +74 -0
- package/dist/constants/skillProgression.constants.test.js.map +1 -0
- package/dist/constants/socket.constants.d.ts +3 -0
- package/dist/constants/socket.constants.d.ts.map +1 -0
- package/dist/constants/socket.constants.js +7 -0
- package/dist/constants/socket.constants.js.map +1 -0
- package/dist/constants/world.constants.d.ts +11 -0
- package/dist/constants/world.constants.d.ts.map +1 -0
- package/dist/constants/world.constants.js +14 -0
- package/dist/constants/world.constants.js.map +1 -0
- package/dist/helpers/deviceHelpers.d.ts +3 -0
- package/dist/helpers/deviceHelpers.d.ts.map +1 -0
- package/dist/helpers/deviceHelpers.js +22 -0
- package/dist/helpers/deviceHelpers.js.map +1 -0
- package/dist/helpers/itemSlotHelper.d.ts +8 -0
- package/dist/helpers/itemSlotHelper.d.ts.map +1 -0
- package/dist/helpers/itemSlotHelper.js +28 -0
- package/dist/helpers/itemSlotHelper.js.map +1 -0
- package/dist/helpers/skillHelpers.d.ts +14 -0
- package/dist/helpers/skillHelpers.d.ts.map +1 -0
- package/dist/helpers/skillHelpers.js +127 -0
- package/dist/helpers/skillHelpers.js.map +1 -0
- package/dist/helpers/skillHelpers.test.d.ts +2 -0
- package/dist/helpers/skillHelpers.test.d.ts.map +1 -0
- package/dist/helpers/skillHelpers.test.js +169 -0
- package/dist/helpers/skillHelpers.test.js.map +1 -0
- package/dist/helpers/weightHelper.d.ts +2 -0
- package/dist/helpers/weightHelper.d.ts.map +1 -0
- package/dist/helpers/weightHelper.js +14 -0
- package/dist/helpers/weightHelper.js.map +1 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -0
- package/dist/libs/GridHelper.d.ts +12 -0
- package/dist/libs/GridHelper.d.ts.map +1 -0
- package/dist/libs/GridHelper.js +38 -0
- package/dist/libs/GridHelper.js.map +1 -0
- package/dist/libs/MathHelper.d.ts +17 -0
- package/dist/libs/MathHelper.d.ts.map +1 -0
- package/dist/libs/MathHelper.js +15 -0
- package/dist/libs/MathHelper.js.map +1 -0
- package/dist/libs/SocketHelper.d.ts +3 -0
- package/dist/libs/SocketHelper.d.ts.map +1 -0
- package/dist/libs/SocketHelper.js +15 -0
- package/dist/libs/SocketHelper.js.map +1 -0
- package/dist/libs/TextHelper.d.ts +8 -0
- package/dist/libs/TextHelper.d.ts.map +1 -0
- package/dist/libs/TextHelper.js +22 -0
- package/dist/libs/TextHelper.js.map +1 -0
- package/dist/libs/TypeHelper.d.ts +4 -0
- package/dist/libs/TypeHelper.d.ts.map +1 -0
- package/dist/libs/TypeHelper.js +17 -0
- package/dist/libs/TypeHelper.js.map +1 -0
- package/dist/translations/app-rate.lang.json +38 -0
- package/dist/translations/assets.lang.json +82 -0
- package/dist/translations/auth.lang.json +182 -0
- package/dist/translations/email.lang.json +70 -0
- package/dist/translations/error.lang.json +18 -0
- package/dist/translations/form.lang.json +94 -0
- package/dist/translations/global.lang.json +90 -0
- package/dist/translations/logs.lang.json +6 -0
- package/dist/translations/onboarding.lang.d.ts +11 -0
- package/dist/translations/onboarding.lang.d.ts.map +1 -0
- package/dist/translations/onboarding.lang.js +22 -0
- package/dist/translations/onboarding.lang.js.map +1 -0
- package/dist/translations/onboarding.lang.json +50 -0
- package/dist/translations/order.lang.json +90 -0
- package/dist/translations/search.lang.json +50 -0
- package/dist/translations/settings.lang.json +14 -0
- package/dist/translations/tabs.lang.json +22 -0
- package/dist/translations/users.lang.json +22 -0
- package/dist/translations/validation.lang.json +86 -0
- package/dist/types/animation.types.d.ts +71 -0
- package/dist/types/animation.types.d.ts.map +1 -0
- package/dist/types/animation.types.js +47 -0
- package/dist/types/animation.types.js.map +1 -0
- package/dist/types/api.types.d.ts +23 -0
- package/dist/types/api.types.d.ts.map +1 -0
- package/dist/types/api.types.js +22 -0
- package/dist/types/api.types.js.map +1 -0
- package/dist/types/archiveIndex.types.d.ts +59 -0
- package/dist/types/archiveIndex.types.d.ts.map +1 -0
- package/dist/types/archiveIndex.types.js +33 -0
- package/dist/types/archiveIndex.types.js.map +1 -0
- package/dist/types/asset.types.d.ts +7 -0
- package/dist/types/asset.types.d.ts.map +1 -0
- package/dist/types/asset.types.js +3 -0
- package/dist/types/asset.types.js.map +1 -0
- package/dist/types/attribution.types.d.ts +16 -0
- package/dist/types/attribution.types.d.ts.map +1 -0
- package/dist/types/attribution.types.js +3 -0
- package/dist/types/attribution.types.js.map +1 -0
- package/dist/types/auth.types.d.ts +32 -0
- package/dist/types/auth.types.d.ts.map +1 -0
- package/dist/types/auth.types.js +3 -0
- package/dist/types/auth.types.js.map +1 -0
- package/dist/types/battle.types.d.ts +65 -0
- package/dist/types/battle.types.d.ts.map +1 -0
- package/dist/types/battle.types.js +22 -0
- package/dist/types/battle.types.js.map +1 -0
- package/dist/types/buff.types.d.ts +52 -0
- package/dist/types/buff.types.d.ts.map +1 -0
- package/dist/types/buff.types.js +14 -0
- package/dist/types/buff.types.js.map +1 -0
- package/dist/types/character.types.d.ts +288 -0
- package/dist/types/character.types.d.ts.map +1 -0
- package/dist/types/character.types.js +73 -0
- package/dist/types/character.types.js.map +1 -0
- package/dist/types/characterCustomizationTypes.d.ts +13 -0
- package/dist/types/characterCustomizationTypes.d.ts.map +1 -0
- package/dist/types/characterCustomizationTypes.js +9 -0
- package/dist/types/characterCustomizationTypes.js.map +1 -0
- package/dist/types/characterSkin.types.d.ts +23 -0
- package/dist/types/characterSkin.types.d.ts.map +1 -0
- package/dist/types/characterSkin.types.js +9 -0
- package/dist/types/characterSkin.types.js.map +1 -0
- package/dist/types/chat.types.d.ts +117 -0
- package/dist/types/chat.types.d.ts.map +1 -0
- package/dist/types/chat.types.js +32 -0
- package/dist/types/chat.types.js.map +1 -0
- package/dist/types/dailyTasks.types.d.ts +281 -0
- package/dist/types/dailyTasks.types.d.ts.map +1 -0
- package/dist/types/dailyTasks.types.js +83 -0
- package/dist/types/dailyTasks.types.js.map +1 -0
- package/dist/types/dc.types.d.ts +190 -0
- package/dist/types/dc.types.d.ts.map +1 -0
- package/dist/types/dc.types.js +54 -0
- package/dist/types/dc.types.js.map +1 -0
- package/dist/types/depot.types.d.ts +19 -0
- package/dist/types/depot.types.d.ts.map +1 -0
- package/dist/types/depot.types.js +10 -0
- package/dist/types/depot.types.js.map +1 -0
- package/dist/types/device.types.d.ts +25 -0
- package/dist/types/device.types.d.ts.map +1 -0
- package/dist/types/device.types.js +8 -0
- package/dist/types/device.types.js.map +1 -0
- package/dist/types/displayText.types.d.ts +11 -0
- package/dist/types/displayText.types.d.ts.map +1 -0
- package/dist/types/displayText.types.js +8 -0
- package/dist/types/displayText.types.js.map +1 -0
- package/dist/types/entity.types.d.ts +31 -0
- package/dist/types/entity.types.d.ts.map +1 -0
- package/dist/types/entity.types.js +21 -0
- package/dist/types/entity.types.js.map +1 -0
- package/dist/types/env.types.d.ts +6 -0
- package/dist/types/env.types.d.ts.map +1 -0
- package/dist/types/env.types.js +10 -0
- package/dist/types/env.types.js.map +1 -0
- package/dist/types/equipment.types.d.ts +36 -0
- package/dist/types/equipment.types.d.ts.map +1 -0
- package/dist/types/equipment.types.js +19 -0
- package/dist/types/equipment.types.js.map +1 -0
- package/dist/types/friends.types.d.ts +23 -0
- package/dist/types/friends.types.d.ts.map +1 -0
- package/dist/types/friends.types.js +12 -0
- package/dist/types/friends.types.js.map +1 -0
- package/dist/types/gem.types.d.ts +25 -0
- package/dist/types/gem.types.d.ts.map +1 -0
- package/dist/types/gem.types.js +3 -0
- package/dist/types/gem.types.js.map +1 -0
- package/dist/types/googleOAuth.types.d.ts +48 -0
- package/dist/types/googleOAuth.types.d.ts.map +1 -0
- package/dist/types/googleOAuth.types.js +3 -0
- package/dist/types/googleOAuth.types.js.map +1 -0
- package/dist/types/guild.types.d.ts +166 -0
- package/dist/types/guild.types.d.ts.map +1 -0
- package/dist/types/guild.types.js +57 -0
- package/dist/types/guild.types.js.map +1 -0
- package/dist/types/inGameStore.types.d.ts +10 -0
- package/dist/types/inGameStore.types.d.ts.map +1 -0
- package/dist/types/inGameStore.types.js +9 -0
- package/dist/types/inGameStore.types.js.map +1 -0
- package/dist/types/informationCenter.types.d.ts +135 -0
- package/dist/types/informationCenter.types.d.ts.map +1 -0
- package/dist/types/informationCenter.types.js +64 -0
- package/dist/types/informationCenter.types.js.map +1 -0
- package/dist/types/inventory.types.d.ts +8 -0
- package/dist/types/inventory.types.d.ts.map +1 -0
- package/dist/types/inventory.types.js +3 -0
- package/dist/types/inventory.types.js.map +1 -0
- package/dist/types/item.types.d.ts +468 -0
- package/dist/types/item.types.d.ts.map +1 -0
- package/dist/types/item.types.js +171 -0
- package/dist/types/item.types.js.map +1 -0
- package/dist/types/itemContainer.types.d.ts +84 -0
- package/dist/types/itemContainer.types.d.ts.map +1 -0
- package/dist/types/itemContainer.types.js +12 -0
- package/dist/types/itemContainer.types.js.map +1 -0
- package/dist/types/leaderboard.types.d.ts +33 -0
- package/dist/types/leaderboard.types.d.ts.map +1 -0
- package/dist/types/leaderboard.types.js +10 -0
- package/dist/types/leaderboard.types.js.map +1 -0
- package/dist/types/loginStreak.types.d.ts +29 -0
- package/dist/types/loginStreak.types.d.ts.map +1 -0
- package/dist/types/loginStreak.types.js +9 -0
- package/dist/types/loginStreak.types.js.map +1 -0
- package/dist/types/macro.types.d.ts +9 -0
- package/dist/types/macro.types.d.ts.map +1 -0
- package/dist/types/macro.types.js +13 -0
- package/dist/types/macro.types.js.map +1 -0
- package/dist/types/maps.types.d.ts +112 -0
- package/dist/types/maps.types.d.ts.map +1 -0
- package/dist/types/maps.types.js +90 -0
- package/dist/types/maps.types.js.map +1 -0
- package/dist/types/marketplace.types.d.ts +317 -0
- package/dist/types/marketplace.types.d.ts.map +1 -0
- package/dist/types/marketplace.types.js +69 -0
- package/dist/types/marketplace.types.js.map +1 -0
- package/dist/types/notification.types.d.ts +20 -0
- package/dist/types/notification.types.d.ts.map +1 -0
- package/dist/types/notification.types.js +3 -0
- package/dist/types/notification.types.js.map +1 -0
- package/dist/types/npc.types.d.ts +182 -0
- package/dist/types/npc.types.d.ts.map +1 -0
- package/dist/types/npc.types.js +56 -0
- package/dist/types/npc.types.js.map +1 -0
- package/dist/types/pagination.types.d.ts +14 -0
- package/dist/types/pagination.types.d.ts.map +1 -0
- package/dist/types/pagination.types.js +3 -0
- package/dist/types/pagination.types.js.map +1 -0
- package/dist/types/party.types.d.ts +84 -0
- package/dist/types/party.types.d.ts.map +1 -0
- package/dist/types/party.types.js +55 -0
- package/dist/types/party.types.js.map +1 -0
- package/dist/types/payment.types.d.ts +201 -0
- package/dist/types/payment.types.d.ts.map +1 -0
- package/dist/types/payment.types.js +23 -0
- package/dist/types/payment.types.js.map +1 -0
- package/dist/types/places.types.d.ts +17 -0
- package/dist/types/places.types.d.ts.map +1 -0
- package/dist/types/places.types.js +10 -0
- package/dist/types/places.types.js.map +1 -0
- package/dist/types/preloadScene.types.d.ts +5 -0
- package/dist/types/preloadScene.types.d.ts.map +1 -0
- package/dist/types/preloadScene.types.js +8 -0
- package/dist/types/preloadScene.types.js.map +1 -0
- package/dist/types/premiumAccount.types.d.ts +8 -0
- package/dist/types/premiumAccount.types.d.ts.map +1 -0
- package/dist/types/premiumAccount.types.js +12 -0
- package/dist/types/premiumAccount.types.js.map +1 -0
- package/dist/types/proficiency.types.d.ts +17 -0
- package/dist/types/proficiency.types.d.ts.map +1 -0
- package/dist/types/proficiency.types.js +22 -0
- package/dist/types/proficiency.types.js.map +1 -0
- package/dist/types/purchase.types.d.ts +155 -0
- package/dist/types/purchase.types.d.ts.map +1 -0
- package/dist/types/purchase.types.js +82 -0
- package/dist/types/purchase.types.js.map +1 -0
- package/dist/types/quest.types.d.ts +98 -0
- package/dist/types/quest.types.d.ts.map +1 -0
- package/dist/types/quest.types.js +22 -0
- package/dist/types/quest.types.js.map +1 -0
- package/dist/types/raid.types.d.ts +7 -0
- package/dist/types/raid.types.d.ts.map +1 -0
- package/dist/types/raid.types.js +3 -0
- package/dist/types/raid.types.js.map +1 -0
- package/dist/types/resource.types.d.ts +6 -0
- package/dist/types/resource.types.d.ts.map +1 -0
- package/dist/types/resource.types.js +3 -0
- package/dist/types/resource.types.js.map +1 -0
- package/dist/types/scene.types.d.ts +9 -0
- package/dist/types/scene.types.d.ts.map +1 -0
- package/dist/types/scene.types.js +9 -0
- package/dist/types/scene.types.js.map +1 -0
- package/dist/types/shortcut.types.d.ts +12 -0
- package/dist/types/shortcut.types.d.ts.map +1 -0
- package/dist/types/shortcut.types.js +10 -0
- package/dist/types/shortcut.types.js.map +1 -0
- package/dist/types/simpleTutorial.types.d.ts +7 -0
- package/dist/types/simpleTutorial.types.d.ts.map +1 -0
- package/dist/types/simpleTutorial.types.js +8 -0
- package/dist/types/simpleTutorial.types.js.map +1 -0
- package/dist/types/skills.types.d.ts +161 -0
- package/dist/types/skills.types.d.ts.map +1 -0
- package/dist/types/skills.types.js +120 -0
- package/dist/types/skills.types.js.map +1 -0
- package/dist/types/socket.types.d.ts +19 -0
- package/dist/types/socket.types.d.ts.map +1 -0
- package/dist/types/socket.types.js +9 -0
- package/dist/types/socket.types.js.map +1 -0
- package/dist/types/spell.types.d.ts +180 -0
- package/dist/types/spell.types.d.ts.map +1 -0
- package/dist/types/spell.types.js +123 -0
- package/dist/types/spell.types.js.map +1 -0
- package/dist/types/store.types.d.ts +35 -0
- package/dist/types/store.types.d.ts.map +1 -0
- package/dist/types/store.types.js +9 -0
- package/dist/types/store.types.js.map +1 -0
- package/dist/types/tiled.types.d.ts +120 -0
- package/dist/types/tiled.types.d.ts.map +1 -0
- package/dist/types/tiled.types.js +8 -0
- package/dist/types/tiled.types.js.map +1 -0
- package/dist/types/trade.types.d.ts +66 -0
- package/dist/types/trade.types.d.ts.map +1 -0
- package/dist/types/trade.types.js +16 -0
- package/dist/types/trade.types.js.map +1 -0
- package/dist/types/translation.types.d.ts +6 -0
- package/dist/types/translation.types.d.ts.map +1 -0
- package/dist/types/translation.types.js +9 -0
- package/dist/types/translation.types.js.map +1 -0
- package/dist/types/ui.types.d.ts +9 -0
- package/dist/types/ui.types.d.ts.map +1 -0
- package/dist/types/ui.types.js +8 -0
- package/dist/types/ui.types.js.map +1 -0
- package/dist/types/uiHighlight.types.d.ts +36 -0
- package/dist/types/uiHighlight.types.d.ts.map +1 -0
- package/dist/types/uiHighlight.types.js +29 -0
- package/dist/types/uiHighlight.types.js.map +1 -0
- package/dist/types/useWith.types.d.ts +44 -0
- package/dist/types/useWith.types.d.ts.map +1 -0
- package/dist/types/useWith.types.js +13 -0
- package/dist/types/useWith.types.js.map +1 -0
- package/dist/types/user.types.d.ts +109 -0
- package/dist/types/user.types.d.ts.map +1 -0
- package/dist/types/user.types.js +39 -0
- package/dist/types/user.types.js.map +1 -0
- package/dist/types/validation.types.d.ts +10 -0
- package/dist/types/validation.types.d.ts.map +1 -0
- package/dist/types/validation.types.js +3 -0
- package/dist/types/validation.types.js.map +1 -0
- package/dist/types/view.types.d.ts +17 -0
- package/dist/types/view.types.d.ts.map +1 -0
- package/dist/types/view.types.js +8 -0
- package/dist/types/view.types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../src/types/api.types.ts"],"names":[],"mappings":";;;AAMA,IAAY,UAgBX;AAhBD,WAAY,UAAU;IACpB,yCAAQ,CAAA;IACR,mDAAa,CAAA;IACb,uDAAe,CAAA;IACf,uEAAuB,CAAA;IACvB,uEAAuB,CAAA;IACvB,yDAAgB,CAAA;IAChB,6DAAkB,CAAA;IAClB,uDAAe,CAAA;IACf,qDAAc,CAAA;IACd,qEAAsB,CAAA;IACtB,qDAAc,CAAA;IACd,2EAAyB,CAAA;IACzB,mEAAqB,CAAA;IACrB,2EAAyB,CAAA;IACzB,yEAAwB,CAAA;AAC1B,CAAC,EAhBW,UAAU,0BAAV,UAAU,QAgBrB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IResource } from "./resource.types";
|
|
2
|
+
export interface IUploadFilesResponse {
|
|
3
|
+
url: string;
|
|
4
|
+
filename: string;
|
|
5
|
+
uploadDate: string;
|
|
6
|
+
size: number;
|
|
7
|
+
contentType: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IUploadFilesOptions {
|
|
10
|
+
contentType?: string;
|
|
11
|
+
metadata?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
export interface IUploadResponse {
|
|
14
|
+
url: string;
|
|
15
|
+
contentType: string;
|
|
16
|
+
}
|
|
17
|
+
export declare enum ArchiveFileTypes {
|
|
18
|
+
JSON = "application/json",
|
|
19
|
+
TEXT = "text/plain",
|
|
20
|
+
ZIP = "application/zip",
|
|
21
|
+
TAR = "application/x-tar",
|
|
22
|
+
GZ = "application/gzip",
|
|
23
|
+
BZ2 = "application/x-bzip2",
|
|
24
|
+
XZ = "application/x-xz"
|
|
25
|
+
}
|
|
26
|
+
export interface IArchiveFileMetadata {
|
|
27
|
+
characterId: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
archiveDate: string;
|
|
30
|
+
version: string;
|
|
31
|
+
checksum: string;
|
|
32
|
+
size: number;
|
|
33
|
+
lastLoginDate: string;
|
|
34
|
+
}
|
|
35
|
+
export declare enum ControllState {
|
|
36
|
+
Pending = "Pending",
|
|
37
|
+
Success = "Success",
|
|
38
|
+
Error = "Error"
|
|
39
|
+
}
|
|
40
|
+
export type ControllStateType = "Error" | "Success" | "Pending";
|
|
41
|
+
export declare const backupTypes: readonly ["character", "characterTexture", "characterBuffs", "characterQuests", "skills", "equipment", "depots", "marketplaceItems", "marketplaceMoney", "items", "itemsContainers"];
|
|
42
|
+
export type ArchiveTypes = typeof backupTypes[number];
|
|
43
|
+
export type IArchiveControllState = {
|
|
44
|
+
[key in ArchiveTypes]: ControllState;
|
|
45
|
+
};
|
|
46
|
+
export interface ICharacterOwnerPair {
|
|
47
|
+
userId: string;
|
|
48
|
+
characterId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface IArchiveIndex extends IResource {
|
|
51
|
+
userId: string;
|
|
52
|
+
characterId: string;
|
|
53
|
+
fileName: string;
|
|
54
|
+
fileType: ArchiveFileTypes;
|
|
55
|
+
cloudPath: string;
|
|
56
|
+
localPath?: string;
|
|
57
|
+
restoredAt: string | Date | null;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=archiveIndex.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archiveIndex.types.d.ts","sourceRoot":"","sources":["../../src/types/archiveIndex.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,gBAAgB;IAC1B,IAAI,qBAAqB;IACzB,IAAI,eAAe;IACnB,GAAG,oBAAoB;IACvB,GAAG,sBAAsB;IACzB,EAAE,qBAAqB;IACvB,GAAG,wBAAwB;IAC3B,EAAE,qBAAqB;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhE,eAAO,MAAM,WAAW,sLAYd,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG;KACjC,GAAG,IAAI,YAAY,GAAG,aAAa;CACrC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.backupTypes = exports.ControllState = exports.ArchiveFileTypes = void 0;
|
|
4
|
+
var ArchiveFileTypes;
|
|
5
|
+
(function (ArchiveFileTypes) {
|
|
6
|
+
ArchiveFileTypes["JSON"] = "application/json";
|
|
7
|
+
ArchiveFileTypes["TEXT"] = "text/plain";
|
|
8
|
+
ArchiveFileTypes["ZIP"] = "application/zip";
|
|
9
|
+
ArchiveFileTypes["TAR"] = "application/x-tar";
|
|
10
|
+
ArchiveFileTypes["GZ"] = "application/gzip";
|
|
11
|
+
ArchiveFileTypes["BZ2"] = "application/x-bzip2";
|
|
12
|
+
ArchiveFileTypes["XZ"] = "application/x-xz";
|
|
13
|
+
})(ArchiveFileTypes || (exports.ArchiveFileTypes = ArchiveFileTypes = {}));
|
|
14
|
+
var ControllState;
|
|
15
|
+
(function (ControllState) {
|
|
16
|
+
ControllState["Pending"] = "Pending";
|
|
17
|
+
ControllState["Success"] = "Success";
|
|
18
|
+
ControllState["Error"] = "Error";
|
|
19
|
+
})(ControllState || (exports.ControllState = ControllState = {}));
|
|
20
|
+
exports.backupTypes = [
|
|
21
|
+
"character",
|
|
22
|
+
"characterTexture",
|
|
23
|
+
"characterBuffs",
|
|
24
|
+
"characterQuests",
|
|
25
|
+
"skills",
|
|
26
|
+
"equipment",
|
|
27
|
+
"depots",
|
|
28
|
+
"marketplaceItems",
|
|
29
|
+
"marketplaceMoney",
|
|
30
|
+
"items",
|
|
31
|
+
"itemsContainers",
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=archiveIndex.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archiveIndex.types.js","sourceRoot":"","sources":["../../src/types/archiveIndex.types.ts"],"names":[],"mappings":";;;AAoBA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;AACzB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B;AAYD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAIY,QAAA,WAAW,GAAG;IACzB,WAAW;IACX,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,kBAAkB;IAClB,kBAAkB;IAClB,OAAO;IACP,iBAAiB;CACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.types.d.ts","sourceRoot":"","sources":["../../src/types/asset.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,wBAAwB,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.types.js","sourceRoot":"","sources":["../../src/types/asset.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IAttributionData {
|
|
2
|
+
fbclid?: string;
|
|
3
|
+
fbc?: string;
|
|
4
|
+
utmSource?: string;
|
|
5
|
+
utmCampaign?: string;
|
|
6
|
+
capturedAt?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IEnhancedAttributionData extends IAttributionData {
|
|
9
|
+
fbp?: string;
|
|
10
|
+
clientIp?: string;
|
|
11
|
+
city?: string;
|
|
12
|
+
region?: string;
|
|
13
|
+
country?: string;
|
|
14
|
+
countryCode?: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=attribution.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribution.types.d.ts","sourceRoot":"","sources":["../../src/types/attribution.types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAEhE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribution.types.js","sourceRoot":"","sources":["../../src/types/attribution.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IAuthResponse {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
refreshToken: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IAuthRefreshTokenResponse {
|
|
6
|
+
accessToken: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IGeolocationData {
|
|
9
|
+
country: string;
|
|
10
|
+
country_code: string;
|
|
11
|
+
region: string;
|
|
12
|
+
city: string;
|
|
13
|
+
latitude: number;
|
|
14
|
+
longitude: number;
|
|
15
|
+
timezone: string;
|
|
16
|
+
isp: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ISessionHistoryEntry {
|
|
19
|
+
ip: string;
|
|
20
|
+
geolocation?: IGeolocationData;
|
|
21
|
+
browserSignature: string;
|
|
22
|
+
loginDate: Date;
|
|
23
|
+
userAgent: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ISessionTrackingData {
|
|
26
|
+
lastLoginIP?: string;
|
|
27
|
+
lastLoginGeolocation?: IGeolocationData;
|
|
28
|
+
browserSignature?: string;
|
|
29
|
+
lastLoginDate?: Date;
|
|
30
|
+
sessionHistory?: ISessionHistoryEntry[];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=auth.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../src/types/auth.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../src/types/auth.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EntityType } from "./entity.types";
|
|
2
|
+
export declare enum BattleSocketEvents {
|
|
3
|
+
InitTargeting = "InitTargeting",
|
|
4
|
+
StopTargeting = "StopTargeting",
|
|
5
|
+
CancelTargeting = "CancelTargeting",
|
|
6
|
+
BattleEvent = "BattleEvent",
|
|
7
|
+
BattleDeath = "BattleDeath",
|
|
8
|
+
RangedAttackFailure = "RangedAttackFailure",
|
|
9
|
+
BattleLockChanged = "battle-lock:changed",
|
|
10
|
+
BattleLockLogoutBlocked = "battle-lock:logout-blocked",
|
|
11
|
+
BattleLockPZBlocked = "battle-lock:pz-blocked"
|
|
12
|
+
}
|
|
13
|
+
export declare enum BattleEventType {
|
|
14
|
+
Miss = "Miss",
|
|
15
|
+
Block = "Block",
|
|
16
|
+
Hit = "Hit"
|
|
17
|
+
}
|
|
18
|
+
export interface IBattleEventFromServer {
|
|
19
|
+
attackerId: string;
|
|
20
|
+
attackerType: "Character" | "NPC";
|
|
21
|
+
targetId: string;
|
|
22
|
+
targetType: "Character" | "NPC";
|
|
23
|
+
eventType: BattleEventType;
|
|
24
|
+
totalDamage?: number;
|
|
25
|
+
postDamageTargetHP?: number;
|
|
26
|
+
level?: number;
|
|
27
|
+
skill?: string;
|
|
28
|
+
isCriticalHit?: boolean;
|
|
29
|
+
attackSoundKey?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IBattleDeath {
|
|
32
|
+
id: string;
|
|
33
|
+
type: "Character" | "NPC";
|
|
34
|
+
}
|
|
35
|
+
export interface IBattleInitTargeting {
|
|
36
|
+
targetId: string;
|
|
37
|
+
type: EntityType;
|
|
38
|
+
}
|
|
39
|
+
export interface IBattleCancelTargeting {
|
|
40
|
+
targetId: string;
|
|
41
|
+
type: EntityType;
|
|
42
|
+
reason?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
|
|
45
|
+
}
|
|
46
|
+
export interface IBattleLockState {
|
|
47
|
+
hasLock: boolean;
|
|
48
|
+
type: "pve" | "pvp" | null;
|
|
49
|
+
remainingSeconds: number;
|
|
50
|
+
}
|
|
51
|
+
export interface IBattleLockChanged {
|
|
52
|
+
characterId: string;
|
|
53
|
+
lockState: IBattleLockState;
|
|
54
|
+
}
|
|
55
|
+
export interface IBattleLockLogoutBlocked {
|
|
56
|
+
characterId: string;
|
|
57
|
+
remainingSeconds: number;
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IBattleLockPZBlocked {
|
|
61
|
+
characterId: string;
|
|
62
|
+
remainingSeconds: number;
|
|
63
|
+
message: string;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=battle.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"battle.types.d.ts","sourceRoot":"","sources":["../../src/types/battle.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,oBAAY,kBAAkB;IAC5B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,mBAAmB,wBAAwB;IAC3C,iBAAiB,wBAAwB;IACzC,uBAAuB,+BAA+B;IACtD,mBAAmB,2BAA2B;CAC/C;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,WAAW,GAAG,KAAK,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,WAAW,GAAG,KAAK,CAAC;IAChC,SAAS,EAAE,eAAe,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,GAAG,KAAK,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;CAAG;AAE5E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BattleEventType = exports.BattleSocketEvents = void 0;
|
|
4
|
+
var BattleSocketEvents;
|
|
5
|
+
(function (BattleSocketEvents) {
|
|
6
|
+
BattleSocketEvents["InitTargeting"] = "InitTargeting";
|
|
7
|
+
BattleSocketEvents["StopTargeting"] = "StopTargeting";
|
|
8
|
+
BattleSocketEvents["CancelTargeting"] = "CancelTargeting";
|
|
9
|
+
BattleSocketEvents["BattleEvent"] = "BattleEvent";
|
|
10
|
+
BattleSocketEvents["BattleDeath"] = "BattleDeath";
|
|
11
|
+
BattleSocketEvents["RangedAttackFailure"] = "RangedAttackFailure";
|
|
12
|
+
BattleSocketEvents["BattleLockChanged"] = "battle-lock:changed";
|
|
13
|
+
BattleSocketEvents["BattleLockLogoutBlocked"] = "battle-lock:logout-blocked";
|
|
14
|
+
BattleSocketEvents["BattleLockPZBlocked"] = "battle-lock:pz-blocked";
|
|
15
|
+
})(BattleSocketEvents || (exports.BattleSocketEvents = BattleSocketEvents = {}));
|
|
16
|
+
var BattleEventType;
|
|
17
|
+
(function (BattleEventType) {
|
|
18
|
+
BattleEventType["Miss"] = "Miss";
|
|
19
|
+
BattleEventType["Block"] = "Block";
|
|
20
|
+
BattleEventType["Hit"] = "Hit";
|
|
21
|
+
})(BattleEventType || (exports.BattleEventType = BattleEventType = {}));
|
|
22
|
+
//# sourceMappingURL=battle.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"battle.types.js","sourceRoot":"","sources":["../../src/types/battle.types.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,qDAA+B,CAAA;IAC/B,qDAA+B,CAAA;IAC/B,yDAAmC,CAAA;IACnC,iDAA2B,CAAA;IAC3B,iDAA2B,CAAA;IAC3B,iEAA2C,CAAA;IAC3C,+DAAyC,CAAA;IACzC,4EAAsD,CAAA;IACtD,oEAA8C,CAAA;AAChD,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,8BAAW,CAAA;AACb,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BasicAttribute, CharacterAttributes, CharacterTrait, CombatSkill, CraftingSkill } from "./skills.types";
|
|
2
|
+
export declare enum CharacterBuffType {
|
|
3
|
+
Skill = "skill",
|
|
4
|
+
CharacterAttribute = "characterAttribute"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CharacterBuffDurationType {
|
|
7
|
+
Permanent = "permanent",
|
|
8
|
+
Temporary = "temporary"
|
|
9
|
+
}
|
|
10
|
+
export interface ICharacterBuff {
|
|
11
|
+
_id?: string;
|
|
12
|
+
type: CharacterBuffType;
|
|
13
|
+
trait: CharacterTrait;
|
|
14
|
+
buffPercentage: number;
|
|
15
|
+
absoluteChange?: number;
|
|
16
|
+
durationType: CharacterBuffDurationType;
|
|
17
|
+
options?: {
|
|
18
|
+
messages?: {
|
|
19
|
+
skipAllMessages?: boolean;
|
|
20
|
+
skipActivationMessage?: boolean;
|
|
21
|
+
skipDeactivationMessage?: boolean;
|
|
22
|
+
activation?: string;
|
|
23
|
+
deactivation?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
isStackable?: boolean;
|
|
27
|
+
originateFrom?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ISkillBuff extends ICharacterBuff {
|
|
30
|
+
type: CharacterBuffType.Skill;
|
|
31
|
+
trait: BasicAttribute | CombatSkill | CraftingSkill;
|
|
32
|
+
}
|
|
33
|
+
export interface ICharacterAttributeBuff extends ICharacterBuff {
|
|
34
|
+
type: CharacterBuffType.CharacterAttribute;
|
|
35
|
+
trait: CharacterAttributes;
|
|
36
|
+
}
|
|
37
|
+
export type ICharacterStrictBuff = ISkillBuff | ICharacterAttributeBuff;
|
|
38
|
+
export type ICharacterStrictPermanentBuff = ICharacterStrictBuff & {
|
|
39
|
+
durationType: CharacterBuffDurationType.Permanent;
|
|
40
|
+
};
|
|
41
|
+
export interface ICharacterPermanentBuff extends ICharacterBuff {
|
|
42
|
+
durationType: CharacterBuffDurationType.Permanent;
|
|
43
|
+
}
|
|
44
|
+
export interface ICharacterTemporaryBuff extends ICharacterBuff {
|
|
45
|
+
durationType: CharacterBuffDurationType.Temporary;
|
|
46
|
+
durationSeconds: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ICharacterItemBuff extends ICharacterPermanentBuff {
|
|
49
|
+
itemId: string;
|
|
50
|
+
itemKey: string;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=buff.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buff.types.d.ts","sourceRoot":"","sources":["../../src/types/buff.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjH,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,kBAAkB,uBAAuB;CAC1C;AAED,oBAAY,yBAAyB;IACnC,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,cAAc,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE;YACT,eAAe,CAAC,EAAE,OAAO,CAAC;YAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;YAChC,uBAAuB,CAAC,EAAE,OAAO,CAAC;YAClC,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;IACF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAAC;IAC9B,KAAK,EAAE,cAAc,GAAG,WAAW,GAAG,aAAa,CAAC;CACrD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,IAAI,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;IAC3C,KAAK,EAAE,mBAAmB,CAAC;CAC5B;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,uBAAuB,CAAC;AAExE,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,GAAG;IACjE,YAAY,EAAE,yBAAyB,CAAC,SAAS,CAAC;CACnD,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,YAAY,EAAE,yBAAyB,CAAC,SAAS,CAAC;CACnD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,YAAY,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAClD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CharacterBuffDurationType = exports.CharacterBuffType = void 0;
|
|
4
|
+
var CharacterBuffType;
|
|
5
|
+
(function (CharacterBuffType) {
|
|
6
|
+
CharacterBuffType["Skill"] = "skill";
|
|
7
|
+
CharacterBuffType["CharacterAttribute"] = "characterAttribute";
|
|
8
|
+
})(CharacterBuffType || (exports.CharacterBuffType = CharacterBuffType = {}));
|
|
9
|
+
var CharacterBuffDurationType;
|
|
10
|
+
(function (CharacterBuffDurationType) {
|
|
11
|
+
CharacterBuffDurationType["Permanent"] = "permanent";
|
|
12
|
+
CharacterBuffDurationType["Temporary"] = "temporary";
|
|
13
|
+
})(CharacterBuffDurationType || (exports.CharacterBuffDurationType = CharacterBuffDurationType = {}));
|
|
14
|
+
//# sourceMappingURL=buff.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buff.types.js","sourceRoot":"","sources":["../../src/types/buff.types.ts"],"names":[],"mappings":";;;AAEA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,8DAAyC,CAAA;AAC3C,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,oDAAuB,CAAA;IACvB,oDAAuB,CAAA;AACzB,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC"}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
import { AnimationDirection } from "./animation.types";
|
|
3
|
+
import { EntityAttackType, EntityType } from "./entity.types";
|
|
4
|
+
import { IEquipmentSet } from "./equipment.types";
|
|
5
|
+
import { IGuildPayload } from "./guild.types";
|
|
6
|
+
import { IItem } from "./item.types";
|
|
7
|
+
import { MapLayers } from "./maps.types";
|
|
8
|
+
import { IResource } from "./resource.types";
|
|
9
|
+
import { ISkill } from "./skills.types";
|
|
10
|
+
import { IUser } from "./user.types";
|
|
11
|
+
export interface ICharacter extends IResource {
|
|
12
|
+
name: string;
|
|
13
|
+
owner: IUser;
|
|
14
|
+
health: number;
|
|
15
|
+
maxHealth: number;
|
|
16
|
+
mana: number;
|
|
17
|
+
maxMana: number;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
initialX: number;
|
|
21
|
+
initialY: number;
|
|
22
|
+
direction: AnimationDirection;
|
|
23
|
+
class: CharacterClass;
|
|
24
|
+
textureKey: string;
|
|
25
|
+
isOnline: boolean;
|
|
26
|
+
layer: MapLayers;
|
|
27
|
+
scene: string;
|
|
28
|
+
initialScene: string;
|
|
29
|
+
channelId: string;
|
|
30
|
+
otherEntitiesInView: any;
|
|
31
|
+
speed: number;
|
|
32
|
+
baseSpeed: number;
|
|
33
|
+
weight: number;
|
|
34
|
+
maxWeight: number;
|
|
35
|
+
movementIntervalMs: number;
|
|
36
|
+
baseMovementIntervalMs: number;
|
|
37
|
+
lastMovement: Date;
|
|
38
|
+
isBanned: boolean;
|
|
39
|
+
penalty: number;
|
|
40
|
+
banRemovalDate: Date;
|
|
41
|
+
hasPermanentBan: Date;
|
|
42
|
+
skills: ISkill;
|
|
43
|
+
target?: {
|
|
44
|
+
id: string;
|
|
45
|
+
type: EntityType;
|
|
46
|
+
} | null;
|
|
47
|
+
attackType: EntityAttackType;
|
|
48
|
+
attackIntervalSpeed: number;
|
|
49
|
+
equipment?: IEquipmentSet | string;
|
|
50
|
+
inventory: Promise<IItem | string>;
|
|
51
|
+
type: string;
|
|
52
|
+
isAlive: boolean;
|
|
53
|
+
alpha?: number;
|
|
54
|
+
isGiantForm?: boolean;
|
|
55
|
+
hasSkull?: boolean;
|
|
56
|
+
skullType?: CharacterSkullType;
|
|
57
|
+
skullExpiresAt?: Date;
|
|
58
|
+
isOnParty?: boolean;
|
|
59
|
+
friends?: string[];
|
|
60
|
+
friendRequests?: string[];
|
|
61
|
+
isOnGuild?: boolean;
|
|
62
|
+
isPvPEnabled?: boolean;
|
|
63
|
+
marketplaceCurrencyPreference?: "gold" | "gold_or_dc";
|
|
64
|
+
isListedForSale?: boolean;
|
|
65
|
+
tradedAt?: Date | string | null;
|
|
66
|
+
}
|
|
67
|
+
export declare enum CharacterClass {
|
|
68
|
+
None = "None",
|
|
69
|
+
Warrior = "Warrior",
|
|
70
|
+
Berserker = "Berserker",
|
|
71
|
+
Druid = "Druid",
|
|
72
|
+
Sorcerer = "Sorcerer",
|
|
73
|
+
Rogue = "Rogue",
|
|
74
|
+
Hunter = "Hunter"
|
|
75
|
+
}
|
|
76
|
+
export declare enum CharacterGender {
|
|
77
|
+
Male = "Male",
|
|
78
|
+
Female = "Female"
|
|
79
|
+
}
|
|
80
|
+
export declare enum CharacterSocketEvents {
|
|
81
|
+
CharacterRefresh = "CharacterRefresh",
|
|
82
|
+
CharacterCreate = "CharacterCreate",
|
|
83
|
+
CharacterPositionUpdate = "CharacterPositionUpdate",
|
|
84
|
+
CharacterPositionUpdateAll = "CharacterPositionUpdateAll",
|
|
85
|
+
CharacterPositionUpdateConfirm = "CharacterPositionUpdateConfirm",
|
|
86
|
+
CharacterLogout = "CharacterLogout",
|
|
87
|
+
CharacterPrivateMessage = "CharacterPrivateMessage",
|
|
88
|
+
CharacterPing = "CharacterPing",
|
|
89
|
+
CharacterForceDisconnect = "CharacterForceDisconnect",
|
|
90
|
+
CharacterForceReconnect = "CharacterForceReconnect",
|
|
91
|
+
CharacterSyncPosition = "CharacterSyncPosition",
|
|
92
|
+
RequestPosition = "RequestPosition",
|
|
93
|
+
PositionResponse = "PositionResponse",
|
|
94
|
+
Login = "Login",
|
|
95
|
+
ItemConsumed = "ItemConsumed",
|
|
96
|
+
AttributeChanged = "AttributeChanged",
|
|
97
|
+
CharacterRemoveFromView = "CharacterRemoveFromView",
|
|
98
|
+
CharacterPayload = "CharacterPayload",
|
|
99
|
+
CharacterSearchByName = "CharacterSearchByName",
|
|
100
|
+
CharacterAutoLoot = "CharacterAutoLoot",
|
|
101
|
+
CharacterTogglePvP = "CharacterTogglePvP",
|
|
102
|
+
ClientVersionOutdated = "client_version_outdated"
|
|
103
|
+
}
|
|
104
|
+
export declare enum CharacterFactions {
|
|
105
|
+
LifeBringer = "Life Bringer",
|
|
106
|
+
ShadowWalker = "Shadow Walker"
|
|
107
|
+
}
|
|
108
|
+
export declare enum LifeBringerRaces {
|
|
109
|
+
Human = "Human",
|
|
110
|
+
Elf = "Elf",
|
|
111
|
+
Dwarf = "Dwarf"
|
|
112
|
+
}
|
|
113
|
+
export declare enum ShadowWalkerRaces {
|
|
114
|
+
Human = "Human",
|
|
115
|
+
Orc = "Orc",
|
|
116
|
+
Minotaur = "Minotaur"
|
|
117
|
+
}
|
|
118
|
+
export type CharacterRaces = LifeBringerRaces | ShadowWalkerRaces;
|
|
119
|
+
export declare enum Modes {
|
|
120
|
+
SoftMode = "Soft",
|
|
121
|
+
HardcoreMode = "Hardcore",
|
|
122
|
+
PermadeathMode = "Permadeath"
|
|
123
|
+
}
|
|
124
|
+
export interface ICharacterPing {
|
|
125
|
+
id: string;
|
|
126
|
+
}
|
|
127
|
+
export interface ICharacterSyncPosition {
|
|
128
|
+
id: string;
|
|
129
|
+
position: {
|
|
130
|
+
originX: number;
|
|
131
|
+
originY: number;
|
|
132
|
+
direction: AnimationDirection;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export interface ICharacterPositionResponse {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
scene: string;
|
|
139
|
+
}
|
|
140
|
+
export interface ICharacterPositionUpdateConfirm {
|
|
141
|
+
id: string;
|
|
142
|
+
isValid: boolean;
|
|
143
|
+
position: {
|
|
144
|
+
originX: number;
|
|
145
|
+
originY: number;
|
|
146
|
+
direction: AnimationDirection;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
export type Events = CharacterSocketEvents;
|
|
150
|
+
export interface ICharacterCreateFromClient {
|
|
151
|
+
id: string;
|
|
152
|
+
channelId: string;
|
|
153
|
+
}
|
|
154
|
+
export interface ICharacterCreateFromServer {
|
|
155
|
+
id: string;
|
|
156
|
+
channelId: string;
|
|
157
|
+
name: string;
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
direction: AnimationDirection;
|
|
161
|
+
layer: MapLayers;
|
|
162
|
+
speed: number;
|
|
163
|
+
movementIntervalMs: number;
|
|
164
|
+
health: number;
|
|
165
|
+
maxHealth: number;
|
|
166
|
+
mana: number;
|
|
167
|
+
maxMana: number;
|
|
168
|
+
textureKey: string;
|
|
169
|
+
alpha?: number;
|
|
170
|
+
isGiantForm?: boolean;
|
|
171
|
+
hasSkull?: boolean;
|
|
172
|
+
skullType?: CharacterSkullType;
|
|
173
|
+
isOnParty?: boolean;
|
|
174
|
+
owner?: Record<string, unknown>;
|
|
175
|
+
isOnGuild?: boolean;
|
|
176
|
+
guild?: IGuildPayload;
|
|
177
|
+
isPvPEnabled?: boolean;
|
|
178
|
+
faction?: CharacterFactions;
|
|
179
|
+
battleLock?: {
|
|
180
|
+
hasLock: boolean;
|
|
181
|
+
type: "pve" | "pvp" | null;
|
|
182
|
+
remainingSeconds: number;
|
|
183
|
+
} | null;
|
|
184
|
+
}
|
|
185
|
+
export interface ICharacterPositionUpdateFromClient {
|
|
186
|
+
originX: number;
|
|
187
|
+
originY: number;
|
|
188
|
+
newX: number;
|
|
189
|
+
newY: number;
|
|
190
|
+
direction: AnimationDirection;
|
|
191
|
+
timestamp?: number;
|
|
192
|
+
}
|
|
193
|
+
export interface ICharacterPositionUpdateFromServer {
|
|
194
|
+
id: string;
|
|
195
|
+
x: number;
|
|
196
|
+
y: number;
|
|
197
|
+
newX: number;
|
|
198
|
+
newY: number;
|
|
199
|
+
name: string;
|
|
200
|
+
direction: AnimationDirection;
|
|
201
|
+
isMoving: boolean;
|
|
202
|
+
layer: MapLayers;
|
|
203
|
+
channelId: string;
|
|
204
|
+
speed: number;
|
|
205
|
+
movementIntervalMs: number;
|
|
206
|
+
health: number;
|
|
207
|
+
maxHealth: number;
|
|
208
|
+
mana: number;
|
|
209
|
+
maxMana: number;
|
|
210
|
+
textureKey: string;
|
|
211
|
+
alpha?: number;
|
|
212
|
+
owner?: Record<string, unknown>;
|
|
213
|
+
faction?: CharacterFactions;
|
|
214
|
+
}
|
|
215
|
+
export interface IAllCharacterPositionUpdateFromServer {
|
|
216
|
+
nearbyCharacters: ICharacterPositionUpdateFromServer[];
|
|
217
|
+
}
|
|
218
|
+
export interface ICharacterLogout {
|
|
219
|
+
id: string;
|
|
220
|
+
}
|
|
221
|
+
export interface ICameraCoordinates {
|
|
222
|
+
x: number;
|
|
223
|
+
y: number;
|
|
224
|
+
width: number;
|
|
225
|
+
height: number;
|
|
226
|
+
}
|
|
227
|
+
export interface ICharacterForceDisconnect {
|
|
228
|
+
reason: string;
|
|
229
|
+
}
|
|
230
|
+
export interface ICharacterTexture {
|
|
231
|
+
class: string[];
|
|
232
|
+
race: string[];
|
|
233
|
+
textureKey: string;
|
|
234
|
+
textureDisplayName: string;
|
|
235
|
+
isGloballyAvailable?: boolean;
|
|
236
|
+
}
|
|
237
|
+
export interface ICharacterAttributeChanged {
|
|
238
|
+
targetId: string;
|
|
239
|
+
health?: number;
|
|
240
|
+
mana?: number;
|
|
241
|
+
speed?: number;
|
|
242
|
+
maxMana?: number;
|
|
243
|
+
maxHealth?: number;
|
|
244
|
+
attackIntervalSpeed?: number;
|
|
245
|
+
weight?: number;
|
|
246
|
+
maxWeight?: number;
|
|
247
|
+
alpha?: number;
|
|
248
|
+
textureKey?: string;
|
|
249
|
+
isGiantForm?: boolean;
|
|
250
|
+
hasSkull?: boolean;
|
|
251
|
+
skullType?: CharacterSkullType;
|
|
252
|
+
isOnParty?: boolean;
|
|
253
|
+
isOnGuild?: boolean;
|
|
254
|
+
isPvPEnabled?: boolean;
|
|
255
|
+
faction?: CharacterFactions;
|
|
256
|
+
}
|
|
257
|
+
export interface IAppliedBuffsEffect {
|
|
258
|
+
_id: Types.ObjectId;
|
|
259
|
+
key: string;
|
|
260
|
+
value: number;
|
|
261
|
+
}
|
|
262
|
+
export declare enum CharacterSkullType {
|
|
263
|
+
WhiteSkull = "WhiteSkull",
|
|
264
|
+
YellowSkull = "YellowSkull",
|
|
265
|
+
RedSkull = "RedSkull"
|
|
266
|
+
}
|
|
267
|
+
export interface ICharacterSearchByNameResponse {
|
|
268
|
+
characters: ICharacter[];
|
|
269
|
+
}
|
|
270
|
+
export interface ICharacterAutoLootFromClient {
|
|
271
|
+
itemIdsToLoot: string[];
|
|
272
|
+
}
|
|
273
|
+
export interface ICharacterTogglePvP {
|
|
274
|
+
isPvPEnabled: boolean;
|
|
275
|
+
}
|
|
276
|
+
export interface IClientVersionOutdated {
|
|
277
|
+
minimumVersion: string;
|
|
278
|
+
currentVersion: string;
|
|
279
|
+
clientVersion: string | null;
|
|
280
|
+
updateUrls: {
|
|
281
|
+
web: string;
|
|
282
|
+
android: string;
|
|
283
|
+
steam: string;
|
|
284
|
+
desktop: string;
|
|
285
|
+
};
|
|
286
|
+
message: string;
|
|
287
|
+
}
|
|
288
|
+
//# sourceMappingURL=character.types.d.ts.map
|