@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
32 lines • 1.62 kB
TypeScript
import type { Automation, FrameContext } from "./Engine.js";
import type { KittenScientists } from "./KittenScientists.js";
import { type BonfireBuildingSetting, type BonfireItem, BonfireSettings } from "./settings/BonfireSettings.js";
import type { BuildingBtnModernController } from "./types/buildings.js";
import type { UnsafeBuildingBtnModernModel } from "./types/core.js";
import type { Building } from "./types/index.js";
import type { WorkshopManager } from "./WorkshopManager.js";
export declare class BonfireManager implements Automation {
private readonly _host;
readonly settings: BonfireSettings;
private readonly _bulkManager;
private readonly _workshopManager;
constructor(host: KittenScientists, workshopManager: WorkshopManager, settings?: BonfireSettings);
tick(context: FrameContext): void;
/**
* Try to build as many of the passed buildings as possible.
* Usually, this is called at each iteration of the automation engine to
* handle the building of items on the Bonfire tab.
*
* @param builds The buildings to build.
*/
autoBuild(context: FrameContext, builds?: Partial<Record<BonfireItem, BonfireBuildingSetting>>): void;
autoUpgrade(context: FrameContext): void;
autoMisc(context: FrameContext): void;
autoGather(): void;
build(name: Building, _stage: number | undefined, amount: number): void;
getBuild(name: Building, stage?: number): {
controller: BuildingBtnModernController<UnsafeBuildingBtnModernModel>;
model: UnsafeBuildingBtnModernModel;
};
}
//# sourceMappingURL=BonfireManager.d.ts.map