mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Added stuff to Script queue functionality..it's gonna get deleted anyways so w.e
This commit is contained in:
parent
00f8a31246
commit
320526ebb3
@ -2,7 +2,6 @@
|
||||
* Evaluates the Abstract Syntax Tree for Netscript
|
||||
* generated by the Parser class
|
||||
*/
|
||||
|
||||
function evaluate(exp, env) {
|
||||
switch (exp.type) {
|
||||
case "num":
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user