Esempio n. 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();
     }
 }
Esempio n. 2
0
 internal GameCollectionService(StateGameManager parent)
 {
     collection  = new Dictionary <string, ManageableType>();
     GameManager = parent;
 }