Fix scope error; start on Ground
This commit is contained in:
parent
ef057b29cc
commit
9668e95495
|
@ -270,7 +270,7 @@ World.prototype.performAction = function (pid, action) {
|
||||||
case "spawn":
|
case "spawn":
|
||||||
var pid = this.nextPid++;
|
var pid = this.nextPid++;
|
||||||
this.processTable[pid] = { routes: action.initialRoutes, behavior: action.behavior };
|
this.processTable[pid] = { routes: action.initialRoutes, behavior: action.behavior };
|
||||||
if (behavior.boot) { this.asChild(pid, function () { behavior.boot() }); }
|
if (action.behavior.boot) { this.asChild(pid, function () { action.behavior.boot() }); }
|
||||||
this.issueRoutingUpdate();
|
this.issueRoutingUpdate();
|
||||||
break;
|
break;
|
||||||
case "routes":
|
case "routes":
|
||||||
|
@ -327,3 +327,13 @@ World.prototype.handleEvent = function (e) {
|
||||||
event: e };
|
event: e };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*/
|
||||||
|
/* Ground interface */
|
||||||
|
|
||||||
|
function Ground(bootActions) {
|
||||||
|
this.world = new World(bootActions);
|
||||||
|
this.subscriptions = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
// HERE: Ground.prototype.
|
Loading…
Reference in New Issue