예제 #1
0
 /// <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;
 }