Compare commits
2 Commits
59875bb794
...
d4fc5a2903
Author | SHA1 | Date | |
---|---|---|---|
|
d4fc5a2903 | ||
|
9ea2655ad0 |
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/10ScopesAndTypes/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/10ScopesAndTypes/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/11BundleLoadingSample/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/11BundleLoadingSample/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/12ClassExtensionOverride/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/12ClassExtensionOverride/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -54,7 +54,7 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod
|
|||||||
this.traderHelper = new TraderHelper();
|
this.traderHelper = new TraderHelper();
|
||||||
this.fluentTraderAssortHeper = new FluentAssortConstructor(hashUtil, this.logger);
|
this.fluentTraderAssortHeper = new FluentAssortConstructor(hashUtil, this.logger);
|
||||||
this.traderHelper.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg");
|
this.traderHelper.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg");
|
||||||
this.traderHelper.setTraderUpdateTime(traderConfig, baseJson, 3600);
|
this.traderHelper.setTraderUpdateTime(traderConfig, baseJson, 3600, 4000);
|
||||||
|
|
||||||
// Add trader to trader enum
|
// Add trader to trader enum
|
||||||
Traders[baseJson._id] = baseJson._id;
|
Traders[baseJson._id] = baseJson._id;
|
||||||
|
@ -28,14 +28,18 @@ export class TraderHelper
|
|||||||
* Add record to trader config to set the refresh time of trader in seconds (default is 60 minutes)
|
* Add record to trader config to set the refresh time of trader in seconds (default is 60 minutes)
|
||||||
* @param traderConfig trader config to add our trader to
|
* @param traderConfig trader config to add our trader to
|
||||||
* @param baseJson json file for trader (db/base.json)
|
* @param baseJson json file for trader (db/base.json)
|
||||||
* @param refreshTimeSeconds How many sections between trader stock refresh
|
* @param refreshTimeSecondsMin How many seconds between trader stock refresh min time
|
||||||
|
* @param refreshTimeSecondsMax How many seconds between trader stock refresh max time
|
||||||
*/
|
*/
|
||||||
public setTraderUpdateTime(traderConfig: ITraderConfig, baseJson: any, refreshTimeSeconds: number): void
|
public setTraderUpdateTime(traderConfig: ITraderConfig, baseJson: any, refreshTimeSecondsMin: number, refreshTimeSecondsMax: number): void
|
||||||
{
|
{
|
||||||
// Add refresh time in seconds to config
|
// Add refresh time in seconds to config
|
||||||
const traderRefreshRecord: UpdateTime = {
|
const traderRefreshRecord: UpdateTime = {
|
||||||
traderId: baseJson._id,
|
traderId: baseJson._id,
|
||||||
seconds: refreshTimeSeconds };
|
seconds: {
|
||||||
|
min: refreshTimeSecondsMin,
|
||||||
|
max: refreshTimeSecondsMax
|
||||||
|
} };
|
||||||
|
|
||||||
traderConfig.updateTime.push(traderRefreshRecord);
|
traderConfig.updateTime.push(traderRefreshRecord);
|
||||||
}
|
}
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/13AddTrader/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/13AddTrader/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/14AfterDBLoadHook/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/14AfterDBLoadHook/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/15HttpListenerExample/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/15HttpListenerExample/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/16ImporterUtil/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/16ImporterUtil/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/17AsyncImporterWithDependency1/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/17AsyncImporterWithDependency1/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/17AsyncImporterWithDependency2/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/17AsyncImporterWithDependency2/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/18CustomItemService/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/18CustomItemService/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/19UseExternalLibraries/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/19UseExternalLibraries/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
2
TypeScript/1LogToConsole/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
2
TypeScript/1LogToConsole/types/ide/BleedingEdgeModsEntry.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "reflect-metadata";
|
||||||
|
import "source-map-support/register";
|
@ -7,6 +7,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -15,6 +16,22 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
|
export interface IBsgLogging {
|
||||||
|
/**
|
||||||
|
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
||||||
|
* complain to them about it! In all cases, better exceptions will be logged.
|
||||||
|
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
||||||
|
* 0 - trace
|
||||||
|
* 1 - debug
|
||||||
|
* 2 - info
|
||||||
|
* 3 - warn
|
||||||
|
* 4 - error
|
||||||
|
* 5 - fatal
|
||||||
|
* 6 - off
|
||||||
|
*/
|
||||||
|
verbosity: number;
|
||||||
|
sendToServer: boolean;
|
||||||
|
}
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,12 +4,18 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
|
/** Default values used to hydrate `runIntervalSeconds` with */
|
||||||
|
runIntervalValues: IRunIntervalValues;
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
|
export interface IRunIntervalValues {
|
||||||
|
inRaid: number;
|
||||||
|
outOfRaid: number;
|
||||||
|
}
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: number;
|
seconds: MinMax;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,6 +4,7 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -11,11 +12,12 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,4 +21,8 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
|
/**
|
||||||
|
* Handle /singleplayer/enableBSGlogging
|
||||||
|
*/
|
||||||
|
bsgLogging(): string;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
|
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -58,6 +59,7 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user