Exemple #1
0
        public override bool Run()
        {
            new MapGenTileListener(m_manager);

            CustomizationService
            .RegisterAtlas("main", TextureAtlasHelper.GetTextureAtlas());

            Container.Register(
                Component.For <ITileController>().Use <MapGenTileController>().Singleton());

            return(true);
        }
        public override bool Run()
        {
            // Replace default elevation provider with custom one
            Container.Register(Component.For <IElevationProvider>().Use <FlatElevationProvider>().Singleton());

            // Register model extensions. Name should match with mapCSS
            // rule builders/behaviours declaration.
            CustomizationService
            .RegisterAtlas("main", TextureAtlasHelper.GeTextureAtlas())
            .RegisterBuilder("waypoint", typeof(WaypointModelBuilder))
            .RegisterBehaviour("hide", typeof(HideModelBehaviour));

            return(true);
        }