mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
See description
Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings. Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
* Abstract Base Class for any Server object
|
||||
*/
|
||||
import { CodingContract } from "../CodingContracts";
|
||||
import { RunningScript } from "../Script/RunningScript";
|
||||
import { Script } from "../Script/Script";
|
||||
@@ -28,7 +25,8 @@ interface writeResult {
|
||||
overwritten: boolean;
|
||||
}
|
||||
|
||||
export class BaseServer {
|
||||
/** Abstract Base Class for any Server object */
|
||||
export abstract class BaseServer {
|
||||
// Coding Contract files on this server
|
||||
contracts: CodingContract[] = [];
|
||||
|
||||
@@ -150,9 +148,7 @@ export class BaseServer {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns boolean indicating whether the given script is running on this server
|
||||
*/
|
||||
/** Returns boolean indicating whether the given script is running on this server */
|
||||
isRunning(fn: string): boolean {
|
||||
for (const runningScriptObj of this.runningScripts) {
|
||||
if (runningScriptObj.filename === fn) {
|
||||
|
||||
Reference in New Issue
Block a user