Exemplo n.º 1
0
    /// <summary>
    /// Registers all model and view classes for the application
    /// by storing them in maps owned by the ApplicationFacade
    /// </summary>
    /// <param name="app">A reference to an ApplicationFacade component</param>
    static void RegisterMVC(ref ApplicationFacade app)
    {
        //Need to register models first because they're referecned in Controller Constructors
        //TODO - fix this
        app.RegisterModel <GameModel>();
        app.RegisterModel <GridModel>();

        app.RegisterController <NavigationController>();
        app.RegisterController <GridController>();
        app.RegisterController <GridMovementController>();
        app.RegisterController <GridPopupController>();
    }
Exemplo n.º 2
0
 /// <summary>
 /// Registers all model and view classes for the application
 /// by storing them in maps owned by the ApplicationFacade
 /// </summary>
 /// <param name="app">A reference to an ApplicationFacade component</param>
 static void RegisterMVC(ref ApplicationFacade app)
 {
     app.RegisterModel <GameModel>();
     app.RegisterController <NavigationController>();
     app.RegisterController <PopupController>();
 }