Example #1
0
 private void Actor(AST node)
 {
     Console.Write("  Adding actor " + node.Token.Text);
     _currentActor = _world.CreateActor(node.Token.Text);
     node.Children.ForEach(n => Build(n));
     Console.WriteLine("");
 }
Example #2
0
 public ActorObject CreateActor(string name)
 {
     var actorObject = new ActorObject(name, this);
     _actors.Add(name, actorObject);
     return actorObject;
 }