コード例 #1
0
ファイル: BasicGameView.cs プロジェクト: Vorlias/Andromeda
 /// <summary>
 /// Internal function that sets up the view
 /// </summary>
 /// <exception cref="GameViewInitException">Will be thrown if the view's already initialized</exception>
 public void Added(StateGameManager manager, string id)
 {
     if (this.manager == null)
     {
         this.manager = manager;
         this.id      = id;
         inputService = new UserInputManager();
     }
     else
     {
         throw new GameViewInitException();
     }
 }
コード例 #2
0
 internal GameCollectionService(StateGameManager parent)
 {
     collection  = new Dictionary <string, ManageableType>();
     GameManager = parent;
 }