Exemplo n.º 1
0
 public Component Spawn(string command, string args = "")
 {
     var component = new Component(this, _harbor, command, args);
     this.Components.Add(component);
     _harbor.Render();
     return component;
 }
Exemplo n.º 2
0
 public void Despawn(Component component)
 {
     this.Components.Remove(component);
     if (this.Components.Count == 0)
         this._harbor.Despawn(this);
 }