This commit is contained in:
danielyxie
2019-03-23 19:40:35 -07:00
parent 1034f7cac5
commit 856d02a129
17 changed files with 313 additions and 181 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class AceEditorWrapper extends ScriptEditor {
});
//Get functions from namespaces
const namespaces = ["bladeburner", "hacknet", "codingcontract", "gang"];
const namespaces = ["bladeburner", "hacknet", "codingcontract", "gang", "sleeve"];
if (namespaces.includes(name)) {
let namespace = fns[name];
if (typeof namespace !== "object") {continue;}
+3 -3
View File
@@ -128,9 +128,9 @@ let NetscriptFunctions =
"getNumTriesRemaining|" +
// Sleeve API
"sleeve|getNumSleeves|setToShockRecovery|setToSynchronize|setToCommitCrime|" +
"setToUniversityCourse|travel|setToCompanyWork|setToFactionWork|setToGymWorkout|" +
"getSleeveStats|getTask|getInformation";
"sleeve|getNumSleeves|setToShockRecovery|setToSynchronize|" +
"setToCommitCrime|setToUniversityCourse|travel|setToCompanyWork|" +
"setToFactionWork|setToGymWorkout|getSleeveStats|getTask|getInformation";
var NetscriptHighlightRules = function(options) {
var keywordMapper = this.createKeywordMapper({
+1 -1
View File
@@ -182,7 +182,7 @@ class CodeMirrorEditorWrapper extends ScriptEditor {
netscriptFns.push(name);
//Get functions from namespaces
const namespaces = ["bladeburner", "hacknet", "codingcontract", "gang"];
const namespaces = ["bladeburner", "hacknet", "codingcontract", "gang", "sleeve"];
if (namespaces.includes(name)) {
let namespace = fnsObj[name];
if (typeof namespace !== "object") {continue;}