コード例 #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);
 }