Update types
This commit is contained in:
parent
1d7113a549
commit
60eaeb9daa
@ -28,5 +28,9 @@ export declare class BotCallbacks {
|
|||||||
* @returns string
|
* @returns string
|
||||||
*/
|
*/
|
||||||
getBotCap(): string;
|
getBotCap(): string;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/bot/getBotBehaviours
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
getBotBehaviours(): string;
|
getBotBehaviours(): string;
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { ISuit } from "../models/eft/common/tables/ITrader";
|
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||||
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||||
|
import { IGetSuitsResponse } from "../models/eft/customization/IGetSuitsResponse";
|
||||||
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
@ -13,10 +14,15 @@ export declare class CustomizationCallbacks {
|
|||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
constructor(customizationController: CustomizationController, saveServer: SaveServer, httpResponse: HttpResponseUtil);
|
constructor(customizationController: CustomizationController, saveServer: SaveServer, httpResponse: HttpResponseUtil);
|
||||||
getSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<{
|
/**
|
||||||
_id: string;
|
* Handles client/trading/customization/storage
|
||||||
suites: string[];
|
* @returns
|
||||||
}>;
|
*/
|
||||||
|
getSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetSuitsResponse>;
|
||||||
|
/**
|
||||||
|
* Handles client/trading/customization
|
||||||
|
* @returns ISuit[]
|
||||||
|
*/
|
||||||
getTraderSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISuit[]>;
|
getTraderSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISuit[]>;
|
||||||
wearClothing(pmcData: IPmcData, body: IWearClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
wearClothing(pmcData: IPmcData, body: IWearClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
buyClothing(pmcData: IPmcData, body: IBuyClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
buyClothing(pmcData: IPmcData, body: IBuyClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -19,11 +19,35 @@ export declare class DataCallbacks {
|
|||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
||||||
|
/**
|
||||||
|
* Handles client/settings
|
||||||
|
* @returns ISettingsBase
|
||||||
|
*/
|
||||||
getSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISettingsBase>;
|
getSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISettingsBase>;
|
||||||
|
/**
|
||||||
|
* Handles client/globals
|
||||||
|
* @returns IGlobals
|
||||||
|
*/
|
||||||
getGlobals(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGlobals>;
|
getGlobals(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGlobals>;
|
||||||
|
/**
|
||||||
|
* Handles client/items
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
getTemplateItems(url: string, info: IEmptyRequestData, sessionID: string): string;
|
getTemplateItems(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
/**
|
||||||
|
* Handles client/handbook/templates
|
||||||
|
* @returns IHandbookBase
|
||||||
|
*/
|
||||||
getTemplateHandbook(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHandbookBase>;
|
getTemplateHandbook(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHandbookBase>;
|
||||||
|
/**
|
||||||
|
* Handles client/customization
|
||||||
|
* @returns Record<string, ICustomizationItem
|
||||||
|
*/
|
||||||
getTemplateSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, ICustomizationItem>>;
|
getTemplateSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, ICustomizationItem>>;
|
||||||
|
/**
|
||||||
|
* Handles client/account/customization
|
||||||
|
* @returns string[]
|
||||||
|
*/
|
||||||
getTemplateCharacter(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string[]>;
|
getTemplateCharacter(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string[]>;
|
||||||
getTemplateQuests(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IQuest[]>;
|
getTemplateQuests(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IQuest[]>;
|
||||||
getHideoutSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutSettingsBase>;
|
getHideoutSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutSettingsBase>;
|
||||||
@ -31,6 +55,6 @@ export declare class DataCallbacks {
|
|||||||
gethideoutProduction(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutProduction[]>;
|
gethideoutProduction(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutProduction[]>;
|
||||||
getHideoutScavcase(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutScavCase[]>;
|
getHideoutScavcase(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutScavCase[]>;
|
||||||
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ILanguageBase[]>;
|
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ILanguageBase[]>;
|
||||||
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
}
|
}
|
||||||
|
@ -26,15 +26,27 @@ export declare class DialogueCallbacks extends OnUpdate {
|
|||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected dialogueController: DialogueController;
|
protected dialogueController: DialogueController;
|
||||||
constructor(hashUtil: HashUtil, timeUtil: TimeUtil, httpResponse: HttpResponseUtil, dialogueController: DialogueController);
|
constructor(hashUtil: HashUtil, timeUtil: TimeUtil, httpResponse: HttpResponseUtil, dialogueController: DialogueController);
|
||||||
|
/**
|
||||||
|
* Handles client/friend/list
|
||||||
|
* @returns IGetFriendListDataResponse
|
||||||
|
*/
|
||||||
getFriendList(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetFriendListDataResponse>;
|
getFriendList(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetFriendListDataResponse>;
|
||||||
|
/**
|
||||||
|
* Handles client/chatServer/list
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
getChatServerList(url: string, info: IGetChatServerListRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
getChatServerList(url: string, info: IGetChatServerListRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
getMailDialogList(url: string, info: IGetMailDialogListRequestData, sessionID: string): IGetBodyResponseData<DialogueInfo[]>;
|
getMailDialogList(url: string, info: IGetMailDialogListRequestData, sessionID: string): IGetBodyResponseData<DialogueInfo[]>;
|
||||||
getMailDialogView(url: string, info: IGetMailDialogViewRequestData, sessionID: string): IGetBodyResponseData<IGetMailDialogViewResponseData>;
|
getMailDialogView(url: string, info: IGetMailDialogViewRequestData, sessionID: string): IGetBodyResponseData<IGetMailDialogViewResponseData>;
|
||||||
getMailDialogInfo(url: string, info: IGetMailDialogInfoRequestData, sessionID: string): IGetBodyResponseData<any>;
|
getMailDialogInfo(url: string, info: IGetMailDialogInfoRequestData, sessionID: string): IGetBodyResponseData<DialogueInfo>;
|
||||||
removeDialog(url: string, info: IRemoveDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
removeDialog(url: string, info: IRemoveDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
pinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
pinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
unpinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
unpinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
setRead(url: string, info: ISetDialogReadRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
setRead(url: string, info: ISetDialogReadRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
/**
|
||||||
|
* Handles client/mail/dialog/getAllAttachments
|
||||||
|
* @returns IGetAllAttachmentsResponse
|
||||||
|
*/
|
||||||
getAllAttachments(url: string, info: IGetAllAttachmentsRequestData, sessionID: string): IGetBodyResponseData<IGetAllAttachmentsResponse>;
|
getAllAttachments(url: string, info: IGetAllAttachmentsRequestData, sessionID: string): IGetBodyResponseData<IGetAllAttachmentsResponse>;
|
||||||
listOutbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
listOutbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
listInbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
listInbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
@ -3,6 +3,9 @@ import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|||||||
import { ICheckVersionResponse } from "../models/eft/game/ICheckVersionResponse";
|
import { ICheckVersionResponse } from "../models/eft/game/ICheckVersionResponse";
|
||||||
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
||||||
import { IGameEmptyCrcRequestData } from "../models/eft/game/IGameEmptyCrcRequestData";
|
import { IGameEmptyCrcRequestData } from "../models/eft/game/IGameEmptyCrcRequestData";
|
||||||
|
import { IGameKeepAliveResponse } from "../models/eft/game/IGameKeepAliveResponse";
|
||||||
|
import { IGameLogoutResponseData } from "../models/eft/game/IGameLogoutResponseData";
|
||||||
|
import { IGameStartResponse } from "../models/eft/game/IGameStartResponse";
|
||||||
import { IReportNicknameRequestData } from "../models/eft/game/IReportNicknameRequestData";
|
import { IReportNicknameRequestData } from "../models/eft/game/IReportNicknameRequestData";
|
||||||
import { IServerDetails } from "../models/eft/game/IServerDetails";
|
import { IServerDetails } from "../models/eft/game/IServerDetails";
|
||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
@ -15,13 +18,37 @@ declare class GameCallbacks {
|
|||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
||||||
|
/**
|
||||||
|
* Handle client/game/version/validate
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
versionValidate(url: string, info: IVersionValidateRequestData, sessionID: string): INullResponseData;
|
versionValidate(url: string, info: IVersionValidateRequestData, sessionID: string): INullResponseData;
|
||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
/**
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
* Handle client/game/start
|
||||||
|
* @returns IGameStartResponse
|
||||||
|
*/
|
||||||
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/logout
|
||||||
|
* @returns IGameLogoutResponseData
|
||||||
|
*/
|
||||||
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/config
|
||||||
|
* @returns IGameConfigResponse
|
||||||
|
*/
|
||||||
getGameConfig(url: string, info: IGameEmptyCrcRequestData, sessionID: string): IGetBodyResponseData<IGameConfigResponse>;
|
getGameConfig(url: string, info: IGameEmptyCrcRequestData, sessionID: string): IGetBodyResponseData<IGameConfigResponse>;
|
||||||
getServer(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IServerDetails[]>;
|
getServer(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IServerDetails[]>;
|
||||||
validateGameVersion(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ICheckVersionResponse>;
|
validateGameVersion(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ICheckVersionResponse>;
|
||||||
gameKeepalive(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
/**
|
||||||
|
* Handle client/game/keepalive
|
||||||
|
* @returns IGameKeepAliveResponse
|
||||||
|
*/
|
||||||
|
gameKeepalive(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameKeepAliveResponse>;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/version
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
getVersion(url: string, info: IEmptyRequestData, sessionID: string): string;
|
getVersion(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
reportNickname(url: string, info: IReportNicknameRequestData, sessionID: string): INullResponseData;
|
reportNickname(url: string, info: IReportNicknameRequestData, sessionID: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,19 @@ export declare class HealthCallbacks {
|
|||||||
* @returns empty response, no data sent back to client
|
* @returns empty response, no data sent back to client
|
||||||
*/
|
*/
|
||||||
syncHealth(url: string, info: ISyncHealthRequestData, sessionID: string): IGetBodyResponseData<string>;
|
syncHealth(url: string, info: ISyncHealthRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
/**
|
||||||
|
* Handle Eat
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
offraidEat(pmcData: IPmcData, body: IOffraidEatRequestData, sessionID: string): IItemEventRouterResponse;
|
offraidEat(pmcData: IPmcData, body: IOffraidEatRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle Heal
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
offraidHeal(pmcData: IPmcData, body: IOffraidHealRequestData, sessionID: string): IItemEventRouterResponse;
|
offraidHeal(pmcData: IPmcData, body: IOffraidHealRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle RestoreHealth
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
healthTreatment(pmcData: IPmcData, info: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
healthTreatment(pmcData: IPmcData, info: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,15 @@ export declare class InsuranceCallbacks extends OnUpdate {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected insuranceConfig: IInsuranceConfig;
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
constructor(insuranceController: InsuranceController, insuranceService: InsuranceService, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
constructor(insuranceController: InsuranceController, insuranceService: InsuranceService, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
||||||
|
/**
|
||||||
|
* Handle client/insurance/items/list/cost
|
||||||
|
* @returns IGetInsuranceCostResponseData
|
||||||
|
*/
|
||||||
getInsuranceCost(url: string, info: IGetInsuranceCostRequestData, sessionID: string): IGetBodyResponseData<IGetInsuranceCostResponseData>;
|
getInsuranceCost(url: string, info: IGetInsuranceCostRequestData, sessionID: string): IGetBodyResponseData<IGetInsuranceCostResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle Insure
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
insure(pmcData: IPmcData, body: IInsureRequestData, sessionID: string): IItemEventRouterResponse;
|
insure(pmcData: IPmcData, body: IInsureRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
onUpdate(secondsSinceLastRun: number): boolean;
|
onUpdate(secondsSinceLastRun: number): boolean;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
|
@ -34,6 +34,10 @@ export declare class MatchCallbacks {
|
|||||||
serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any> | IGetBodyResponseData<true>;
|
serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any> | IGetBodyResponseData<true>;
|
||||||
joinMatch(url: string, info: IJoinMatchRequestData, sessionID: string): IGetBodyResponseData<IJoinMatchResult[]>;
|
joinMatch(url: string, info: IJoinMatchRequestData, sessionID: string): IGetBodyResponseData<IJoinMatchResult[]>;
|
||||||
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
/**
|
||||||
|
* Handle client/match/group/status
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
getGroupStatus(url: string, info: IGetGroupStatusRequestData, sessionID: string): IGetBodyResponseData<any>;
|
getGroupStatus(url: string, info: IGetGroupStatusRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
createGroup(url: string, info: ICreateGroupRequestData, sessionID: string): IGetBodyResponseData<any>;
|
createGroup(url: string, info: ICreateGroupRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
||||||
|
@ -4,6 +4,7 @@ import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
||||||
import { ISelectProfileRequestData } from "../models/eft/notifier/ISelectProfileRequestData";
|
import { ISelectProfileRequestData } from "../models/eft/notifier/ISelectProfileRequestData";
|
||||||
|
import { ISelectProfileResponse } from "../models/eft/notifier/ISelectProfileResponse";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class NotifierCallbacks {
|
export declare class NotifierCallbacks {
|
||||||
protected httpServerHelper: HttpServerHelper;
|
protected httpServerHelper: HttpServerHelper;
|
||||||
@ -19,6 +20,10 @@ export declare class NotifierCallbacks {
|
|||||||
sendNotification(sessionID: string, req: any, resp: any, data: any): void;
|
sendNotification(sessionID: string, req: any, resp: any, data: any): void;
|
||||||
getNotifier(url: string, info: any, sessionID: string): IGetBodyResponseData<any[]>;
|
getNotifier(url: string, info: any, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
createNotifierChannel(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<INotifierChannel>;
|
createNotifierChannel(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<INotifierChannel>;
|
||||||
selectProfile(url: string, info: ISelectProfileRequestData, sessionID: string): IGetBodyResponseData<any>;
|
/**
|
||||||
|
* Handle client/game/profile/select
|
||||||
|
* @returns ISelectProfileResponse
|
||||||
|
*/
|
||||||
|
selectProfile(url: string, info: ISelectProfileRequestData, sessionID: string): IGetBodyResponseData<ISelectProfileResponse>;
|
||||||
notify(url: string, info: any, sessionID: string): string;
|
notify(url: string, info: any, sessionID: string): string;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ export declare class RagfairCallbacks extends OnLoadOnUpdate {
|
|||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
search(url: string, info: ISearchRequestData, sessionID: string): IGetBodyResponseData<IGetOffersResult>;
|
search(url: string, info: ISearchRequestData, sessionID: string): IGetBodyResponseData<IGetOffersResult>;
|
||||||
getMarketPrice(url: string, info: IGetMarketPriceRequestData, sessionID: string): IGetBodyResponseData<IGetItemPriceResult>;
|
getMarketPrice(url: string, info: IGetMarketPriceRequestData, sessionID: string): IGetBodyResponseData<IGetItemPriceResult>;
|
||||||
getItemPrices(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
getItemPrices(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, number>>;
|
||||||
addOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
addOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
removeOffer(pmcData: IPmcData, info: IRemoveOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
removeOffer(pmcData: IPmcData, info: IRemoveOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
extendOffer(pmcData: IPmcData, info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
extendOffer(pmcData: IPmcData, info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -12,6 +12,10 @@ export declare class TraderCallbacks extends OnLoadOnUpdate {
|
|||||||
onUpdate(): boolean;
|
onUpdate(): boolean;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
getTraderSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderBase[]>;
|
getTraderSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderBase[]>;
|
||||||
|
/**
|
||||||
|
* Handle client/trading/api/getUserAssortPrice/trader
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
getProfilePurchases(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, IBarterScheme[][]>>;
|
getProfilePurchases(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, IBarterScheme[][]>>;
|
||||||
getTrader(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderBase>;
|
getTrader(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderBase>;
|
||||||
getAssort(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderAssort>;
|
getAssort(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderAssort>;
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
import { WeatherController } from "../controllers/WeatherController";
|
import { WeatherController } from "../controllers/WeatherController";
|
||||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IWeatherData } from "../models/eft/weather/IWeatherData";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class WeatherCallbacks {
|
export declare class WeatherCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected weatherController: WeatherController;
|
protected weatherController: WeatherController;
|
||||||
constructor(httpResponse: HttpResponseUtil, weatherController: WeatherController);
|
constructor(httpResponse: HttpResponseUtil, weatherController: WeatherController);
|
||||||
getWeather(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
/**
|
||||||
|
* Handle client/weather
|
||||||
|
* @returns IWeatherData
|
||||||
|
*/
|
||||||
|
getWeather(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IWeatherData>;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ export declare class DialogueController {
|
|||||||
* Get the content of a dialogue
|
* Get the content of a dialogue
|
||||||
* @param dialogueID Dialog id
|
* @param dialogueID Dialog id
|
||||||
* @param sessionID Session Id
|
* @param sessionID Session Id
|
||||||
* @returns
|
* @returns DialogueInfo
|
||||||
*/
|
*/
|
||||||
getDialogueInfo(dialogueID: string, sessionID: string): DialogueInfo;
|
getDialogueInfo(dialogueID: string, sessionID: string): DialogueInfo;
|
||||||
/**
|
/**
|
||||||
|
@ -25,17 +25,34 @@ export declare class BotInventoryGenerator {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, databaseServer: DatabaseServer, botWeaponGenerator: BotWeaponGenerator, botLootGenerator: BotLootGenerator, botGeneratorHelper: BotGeneratorHelper, weightedRandomHelper: WeightedRandomHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, databaseServer: DatabaseServer, botWeaponGenerator: BotWeaponGenerator, botLootGenerator: BotLootGenerator, botGeneratorHelper: BotGeneratorHelper, weightedRandomHelper: WeightedRandomHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
|
/**
|
||||||
|
* Add equipment/weapons/loot to bot
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param templateInventory bot/x.json data from db
|
||||||
|
* @param equipmentChances Chances each item will be added to bot
|
||||||
|
* @param itemGenerationLimitsMinMax item gen limits for bot role
|
||||||
|
* @param botRole Role bot has (assault/pmcBot)
|
||||||
|
* @param isPmc Is bot being converted into a pmc
|
||||||
|
* @returns PmcInventory object with equipment/weapons/loot
|
||||||
|
*/
|
||||||
generateInventory(sessionId: string, templateInventory: Inventory, equipmentChances: Chances, itemGenerationLimitsMinMax: Generation, botRole: string, isPmc: boolean): PmcInventory;
|
generateInventory(sessionId: string, templateInventory: Inventory, equipmentChances: Chances, itemGenerationLimitsMinMax: Generation, botRole: string, isPmc: boolean): PmcInventory;
|
||||||
/**
|
/**
|
||||||
* Create a pmcInventory object with all the base/generic items needed
|
* Create a pmcInventory object with all the base/generic items needed
|
||||||
* @returns PmcInventory object
|
* @returns PmcInventory object
|
||||||
*/
|
*/
|
||||||
protected generateInventoryBase(): PmcInventory;
|
protected generateInventoryBase(): PmcInventory;
|
||||||
|
/**
|
||||||
|
* Add equipment to a bot
|
||||||
|
* @param templateInventory bot/x.json data from db
|
||||||
|
* @param equipmentChances Chances items will be added to bot
|
||||||
|
* @param botRole Role bot has (assault/pmcBot)
|
||||||
|
* @param botInventory Inventory to add equipment to
|
||||||
|
*/
|
||||||
protected generateAndAddEquipmentToBot(templateInventory: Inventory, equipmentChances: Chances, botRole: string, botInventory: PmcInventory): void;
|
protected generateAndAddEquipmentToBot(templateInventory: Inventory, equipmentChances: Chances, botRole: string, botInventory: PmcInventory): void;
|
||||||
protected generateEquipment(equipmentSlot: string, equipmentPool: Record<string, number>, modPool: Mods, spawnChances: Chances, botRole: string, inventory: PmcInventory): void;
|
protected generateEquipment(equipmentSlot: string, equipmentPool: Record<string, number>, modPool: Mods, spawnChances: Chances, botRole: string, inventory: PmcInventory): void;
|
||||||
/**
|
/**
|
||||||
* Work out what weapons bot should have equipped and add them to bot inventory
|
* Work out what weapons bot should have equipped and add them to bot inventory
|
||||||
* @param templateInventory bot json with equipment to use when generating weapons
|
* @param templateInventory bot/x.json data from db
|
||||||
* @param equipmentChances Chances bot can have equipment equipped
|
* @param equipmentChances Chances bot can have equipment equipped
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
* @param botInventory Inventory to add weapons to
|
* @param botInventory Inventory to add weapons to
|
||||||
@ -53,6 +70,17 @@ export declare class BotInventoryGenerator {
|
|||||||
slot: EquipmentSlots;
|
slot: EquipmentSlots;
|
||||||
shouldSpawn: boolean;
|
shouldSpawn: boolean;
|
||||||
}[];
|
}[];
|
||||||
|
/**
|
||||||
|
* Add weapon + spare mags/ammo to bots inventory
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param weaponSlot Weapon slot being generated
|
||||||
|
* @param templateInventory bot/x.json data from db
|
||||||
|
* @param botInventory Inventory to add weapon+mags/ammo to
|
||||||
|
* @param equipmentChances Chances bot can have equipment equipped
|
||||||
|
* @param botRole assault/pmcBot/bossTagilla etc
|
||||||
|
* @param isPmc Is the bot being generated as a pmc
|
||||||
|
* @param itemGenerationLimitsMinMax
|
||||||
|
*/
|
||||||
protected addWeaponAndMagazinesToInventory(sessionId: string, weaponSlot: {
|
protected addWeaponAndMagazinesToInventory(sessionId: string, weaponSlot: {
|
||||||
slot: EquipmentSlots;
|
slot: EquipmentSlots;
|
||||||
shouldSpawn: boolean;
|
shouldSpawn: boolean;
|
||||||
|
@ -77,12 +77,12 @@ export declare class BotGeneratorHelper {
|
|||||||
* @param modSlot Slot mod will fit into
|
* @param modSlot Slot mod will fit into
|
||||||
* @param isRandomisableSlot Will generate a randomised mod pool if true
|
* @param isRandomisableSlot Will generate a randomised mod pool if true
|
||||||
* @param modsParent Parent slot the item will be a part of
|
* @param modsParent Parent slot the item will be a part of
|
||||||
* @param botEquipBlacklist
|
* @param botEquipBlacklist Blacklist to prevent mods from being picked
|
||||||
* @param itemModPool
|
* @param itemModPool Pool of items to pick from
|
||||||
* @param weapon array with only weapon tpl in it, ready for mods to be added
|
* @param weapon array with only weapon tpl in it, ready for mods to be added
|
||||||
* @param ammoTpl ammo tpl to use if slot requires a cartridge to be added (e.g. mod_magazine)
|
* @param ammoTpl ammo tpl to use if slot requires a cartridge to be added (e.g. mod_magazine)
|
||||||
* @param parentTemplate Parent item the mod will go into
|
* @param parentTemplate Parent item the mod will go into
|
||||||
* @returns
|
* @returns ITemplateItem
|
||||||
*/
|
*/
|
||||||
protected chooseModToPutIntoSlot(modSlot: string, isRandomisableSlot: boolean, modsParent: Slot, botEquipBlacklist: EquipmentFilterDetails, itemModPool: Record<string, string[]>, weapon: Item[], ammoTpl: string, parentTemplate: ITemplateItem): [boolean, ITemplateItem];
|
protected chooseModToPutIntoSlot(modSlot: string, isRandomisableSlot: boolean, modsParent: Slot, botEquipBlacklist: EquipmentFilterDetails, itemModPool: Record<string, string[]>, weapon: Item[], ammoTpl: string, parentTemplate: ITemplateItem): [boolean, ITemplateItem];
|
||||||
/**
|
/**
|
||||||
@ -176,10 +176,10 @@ export declare class BotGeneratorHelper {
|
|||||||
*/
|
*/
|
||||||
protected getAmmoContainers(): string[];
|
protected getAmmoContainers(): string[];
|
||||||
/**
|
/**
|
||||||
* Get the slot details for an item (chamber/cartridge/slot)
|
* Get a Slot property for an item (chamber/cartridge/slot)
|
||||||
* @param modSlot e.g patron_in_weapon
|
* @param modSlot e.g patron_in_weapon
|
||||||
* @param parentTemplate item template
|
* @param parentTemplate item template
|
||||||
* @returns
|
* @returns Slot item
|
||||||
*/
|
*/
|
||||||
protected getModItemSlot(modSlot: string, parentTemplate: ITemplateItem): Slot;
|
protected getModItemSlot(modSlot: string, parentTemplate: ITemplateItem): Slot;
|
||||||
/**
|
/**
|
||||||
@ -191,7 +191,6 @@ export declare class BotGeneratorHelper {
|
|||||||
* @param modPool modPool which should include available cartrigdes
|
* @param modPool modPool which should include available cartrigdes
|
||||||
* @param parentId The CylinderMagazine's UID
|
* @param parentId The CylinderMagazine's UID
|
||||||
* @param parentTemplate The CylinderMagazine's template
|
* @param parentTemplate The CylinderMagazine's template
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
protected fillCamora(items: Item[], modPool: Mods, parentId: string, parentTemplate: ITemplateItem): void;
|
protected fillCamora(items: Item[], modPool: Mods, parentId: string, parentTemplate: ITemplateItem): void;
|
||||||
/**
|
/**
|
||||||
@ -226,16 +225,16 @@ export declare class BotGeneratorHelper {
|
|||||||
protected generateArmorRepairableProperties(itemTemplate: ITemplateItem, botRole: string): Repairable;
|
protected generateArmorRepairableProperties(itemTemplate: ITemplateItem, botRole: string): Repairable;
|
||||||
/**
|
/**
|
||||||
* Get a random mod from an items compatible mods Filter array
|
* Get a random mod from an items compatible mods Filter array
|
||||||
* @param modTpl
|
* @param modTpl ????
|
||||||
* @param parentSlot
|
* @param parentSlot item mod will go into, used to get combatible items
|
||||||
* @param modSlot
|
* @param modSlot Slot to get mod to fill
|
||||||
* @param items
|
* @param items items to ensure picked mod is compatible with
|
||||||
* @returns item tpl
|
* @returns item tpl
|
||||||
*/
|
*/
|
||||||
protected getModTplFromItemDb(modTpl: string, parentSlot: Slot, modSlot: string, items: Item[]): string;
|
protected getModTplFromItemDb(modTpl: string, parentSlot: Slot, modSlot: string, items: Item[]): string;
|
||||||
/**
|
/**
|
||||||
* Can an item be added to an item without issue
|
* Can an item be added to an item without issue
|
||||||
* @param items
|
* @param items items to check compatiblilities with
|
||||||
* @param tplToCheck tpl of the item to check for incompatibilities
|
* @param tplToCheck tpl of the item to check for incompatibilities
|
||||||
* @param equipmentSlot Slot the item will be placed into
|
* @param equipmentSlot Slot the item will be placed into
|
||||||
* @returns false if no incompatibilties
|
* @returns false if no incompatibilties
|
||||||
|
4
TypeScript/1LogToConsole/types/models/eft/customization/IGetSuitsResponse.d.ts
vendored
Normal file
4
TypeScript/1LogToConsole/types/models/eft/customization/IGetSuitsResponse.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IGetSuitsResponse {
|
||||||
|
_id: string;
|
||||||
|
suits: string[];
|
||||||
|
}
|
4
TypeScript/1LogToConsole/types/models/eft/game/IGameKeepAliveResponse.d.ts
vendored
Normal file
4
TypeScript/1LogToConsole/types/models/eft/game/IGameKeepAliveResponse.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IGameKeepAliveResponse {
|
||||||
|
msg: string;
|
||||||
|
utc_time: number;
|
||||||
|
}
|
3
TypeScript/1LogToConsole/types/models/eft/game/IGameLogoutResponseData.d.ts
vendored
Normal file
3
TypeScript/1LogToConsole/types/models/eft/game/IGameLogoutResponseData.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export interface IGameLogoutResponseData {
|
||||||
|
status: string;
|
||||||
|
}
|
3
TypeScript/1LogToConsole/types/models/eft/game/IGameStartResponse.d.ts
vendored
Normal file
3
TypeScript/1LogToConsole/types/models/eft/game/IGameStartResponse.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export interface IGameStartResponse {
|
||||||
|
utc_time: number;
|
||||||
|
}
|
6
TypeScript/1LogToConsole/types/models/eft/notifier/ISelectProfileResponse.d.ts
vendored
Normal file
6
TypeScript/1LogToConsole/types/models/eft/notifier/ISelectProfileResponse.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { INotifierChannel } from "./INotifier";
|
||||||
|
export interface ISelectProfileResponse {
|
||||||
|
status: string;
|
||||||
|
notifier: INotifierChannel;
|
||||||
|
notifierServer: string;
|
||||||
|
}
|
@ -12,7 +12,7 @@ export declare class BotGenerationCacheService {
|
|||||||
constructor(logger: ILogger, randomUtil: RandomUtil, jsonUtil: JsonUtil, botHelper: BotHelper);
|
constructor(logger: ILogger, randomUtil: RandomUtil, jsonUtil: JsonUtil, botHelper: BotHelper);
|
||||||
/**
|
/**
|
||||||
* Store array of bots in cache, shuffle results before storage
|
* Store array of bots in cache, shuffle results before storage
|
||||||
* @param botsToStore
|
* @param botsToStore Bots we want to store in the cache
|
||||||
*/
|
*/
|
||||||
storeBots(botsToStore: IBotBase[]): void;
|
storeBots(botsToStore: IBotBase[]): void;
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user