Beispiel #1
0
        public static PluginsLoader GetInstance()
        {
            instance.LoadAssemblyPlugins();

            Config.GetInstance();
            Terrain.GetInstance();
            HeightMapPersistence.GetInstance();
            SlopeMapPersistence.GetInstance();
            MouseFilterSdlMouseCache.GetInstance();
            KeyFilterSdlKeyCache.GetInstance();
            KeyFilterConfigMappingsFactory.GetInstance();
            //HeightEditor.GetInstance();
            EditController.GetInstance();
            Camera.GetInstance();
            Framerate.GetInstance();
            FrustrumCulling.GetInstance();

            BrushShapeController.GetInstance().Register(new RoundBrush());
            BrushShapeController.GetInstance().Register(new SquareBrush());

            BrushEffectController.GetInstance().Register(new RaiseLower());
            BrushEffectController.GetInstance().Register(new Flatten());
            BrushEffectController.GetInstance().Register(new PaintTexture());
            BrushEffectController.GetInstance().Register(new AddFeature());
            BrushEffectController.GetInstance().Register(new FixedHeight());

            //Sm3Persistence.GetInstance().LoadSm3("maps/Whakamatunga_Riri.sm3");
            //EditTexture.GetInstance();
            //FeatureEditing.GetInstance();

            MainUI.GetInstance();

            return(instance);
        }
Beispiel #2
0
        KeyFilterSdlConfigMappings()
        {
            config = Config.GetInstance();
            KeyFilterSdlKeyCache keycache = KeyFilterSdlKeyCache.GetInstance();

            keycache.KeyDown += new SdlDotNet.KeyboardEventHandler(keycache_KeyDown);
            keycache.KeyUp   += new SdlDotNet.KeyboardEventHandler(keycache_KeyUp);
            MouseFilterSdlMouseCache.GetInstance().MouseDown += new SdlDotNet.MouseButtonEventHandler(KeyFilterSdlConfigMappings_MouseDown);
            MouseFilterSdlMouseCache.GetInstance().MouseUp   += new SdlDotNet.MouseButtonEventHandler(KeyFilterSdlConfigMappings_MouseUp);
        }