This commit is contained in:
2024-03-18 14:27:52 -05:00
parent 261b373a75
commit 9730f8defb
15 changed files with 208 additions and 251 deletions

View File

@@ -3,6 +3,7 @@ var a_db = {};
actor.spawn = function(script, config){
if (typeof script !== 'string') return undefined;
console.info(`spawning actor with script ${script}`);
if (!a_db[script]) a_db[script] = io.slurp(script);
var padawan = Object.create(actor);
eval_env(a_db[script], padawan, script);