示例#1
0
文件: Dock.cs 项目: ironbay/harbor
 public Component Spawn(string command, string args = "")
 {
     var component = new Component(this, _harbor, command, args);
     this.Components.Add(component);
     _harbor.Render();
     return component;
 }
示例#2
0
文件: Dock.cs 项目: ironbay/harbor
 public void Despawn(Component component)
 {
     this.Components.Remove(component);
     if (this.Components.Count == 0)
         this._harbor.Despawn(this);
 }