2019-03-25 04:03:24 +01:00
|
|
|
// Interface for a Hacknet Node. Implemented by both a basic Hacknet Node,
|
|
|
|
// and the upgraded Hacknet Server in BitNode-9
|
|
|
|
export interface IHacknetNode {
|
2021-09-05 01:09:30 +02:00
|
|
|
cores: number;
|
|
|
|
level: number;
|
|
|
|
onlineTimeSeconds: number;
|
2019-03-25 04:03:24 +01:00
|
|
|
|
2021-09-05 01:09:30 +02:00
|
|
|
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;
|
2019-03-25 04:03:24 +01:00
|
|
|
}
|