import { RagfairServer } from "https://deno.land/x/sptaki@1.2.0/servers/RagfairServer.d.ts";
Constructors
new
RagfairServer(logger: ILogger,
ragfairOfferGenerator: RagfairOfferGenerator,
ragfairOfferService: RagfairOfferService,
ragfairCategoriesService: RagfairCategoriesService,
ragfairRequiredItemsService: RagfairRequiredItemsService,
localisationService: LocalisationService,
traderHelper: TraderHelper,
traderAssortHelper: TraderAssortHelper,
configServer: ConfigServer,
Properties
protected
configServer: ConfigServerprotected
localisationService: LocalisationServiceprotected
logger: ILoggerprotected
ragfairCategoriesService: RagfairCategoriesServiceprotected
ragfairConfig: IRagfairConfigprotected
ragfairOfferGenerator: RagfairOfferGeneratorprotected
ragfairOfferService: RagfairOfferServiceprotected
ragfairRequiredItemsService: RagfairRequiredItemsServiceprotected
traderAssortHelper: TraderAssortHelperprotected
traderHelper: TraderHelperMethods
addPlayerOffers(): void
doesOfferExist(offerId: string): boolean
getAllActiveCategories(): Record<string, number>
getOffer(offerID: string): IRagfairOffer
getOffers(): IRagfairOffer[]
getUpdateableTraders(): string[]
Get traders who need to be periodically refreshed
hideOffer(offerId: string): void
Disable/Hide an offer from flea
load(): Promise<void>
removeOfferStack(offerID: string, amount: number): void
update(): Promise<void>