Skip to main content
The Deno 2 Release Candidate is here
Learn more
class RagfairServer
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: ConfigServer
protected
localisationService: LocalisationService
protected
logger: ILogger
protected
ragfairCategoriesService: RagfairCategoriesService
protected
ragfairConfig: IRagfairConfig
protected
ragfairOfferGenerator: RagfairOfferGenerator
protected
ragfairOfferService: RagfairOfferService
protected
ragfairRequiredItemsService: RagfairRequiredItemsService
protected
traderAssortHelper: TraderAssortHelper
protected
traderHelper: TraderHelper

Methods

doesOfferExist(offerId: string): boolean
getAllActiveCategories(
fleaUnlocked: boolean,
searchRequestData: ISearchRequestData,
offers: IRagfairOffer[],
): Record<string, number>
getOffer(offerID: string): IRagfairOffer

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>