예제 #1
0
        public override void Register(IKernel container, ICollection <RouteBase> routes, ICollection <IViewEngine> viewEngines)
        {
            var areaName = "Games";

            RegisterStandardArea(container, routes, viewEngines, areaName);

            _gameRegistry.AddGame("Grid Flip", new { area = areaName, controller = "GridFlip" });
            _gameRegistry.AddGame("Letter Guessing", new { area = areaName, controller = "Hangman" });
            _navRegistry.AddItem(new NavItem
            {
                Weight     = 5,
                Caption    = "Games",
                Action     = "Index",
                LinkValues = new { area = areaName, controller = "Home" }
            });
            _navRegistry.AddItem(new NavItem
            {
                Weight     = 6,
                Caption    = "High Scores",
                Action     = "Scores",
                LinkValues = new { area = areaName, controller = "Home" }
            });
            _sideRegistry.AddItem(new SideItem
            {
                BlockName = "HighScore",
                Weight    = 2
            });
        }
예제 #2
0
        public override void Register(
            IKernel container,
            ICollection <RouteBase> routes,
            ICollection <IViewEngine> viewEngines)
        {
            RegisterStandardArea(container, routes, viewEngines, "Fleet");

            _gameRegistry.AddGame("Star Fleet", new { area = "Fleet", controller = "Home" });

            _sideRegistry.AddItem(new SideItem {
                BlockName = "FleetTeaser", Weight = 8
            });
        }