mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
15 lines
620 B
TypeScript
15 lines
620 B
TypeScript
// Interface for a Hacknet Node. Implemented by both a basic Hacknet Node,
|
|
// and the upgraded Hacknet Server in BitNode-9
|
|
export interface IHacknetNode {
|
|
cores: number;
|
|
level: number;
|
|
onlineTimeSeconds: number;
|
|
|
|
calculateCoreUpgradeCost: (levels: number, costMult: number) => number;
|
|
calculateLevelUpgradeCost: (levels: number, costMult: number) => number;
|
|
calculateRamUpgradeCost: (levels: number, costMult: number) => number;
|
|
upgradeCore: (levels: number, prodMult: number) => void;
|
|
upgradeLevel: (levels: number, prodMult: number) => void;
|
|
upgradeRam: (levels: number, prodMult: number) => void;
|
|
}
|