mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
Added stuff to Script queue functionality..it's gonna get deleted anyways so w.e
This commit is contained in:
@@ -112,6 +112,11 @@ Script.prototype.saveScript = function() {
|
||||
}
|
||||
}
|
||||
|
||||
Script.prototype.queueEvaluate = function(exp, env) {
|
||||
var fooObj = functionObject(evaluate, this, [exp, env]);
|
||||
this.functionQueue.push(fooObj);
|
||||
}
|
||||
|
||||
/* Wrapper object that wraps a function with its arguments.
|
||||
* These objects are pushed onto a Script object's function queue.
|
||||
* The functions can be called with the standard () operator
|
||||
|
||||
Reference in New Issue
Block a user