示例#1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            App.Register(_spriteBatch);

            Art.LoadContent(Content);
            SharedArt.LoadContent(Content);
            LibContent.SetContents();

            _text       = DependencyInjection.Resolve <IText>();
            _guiManager = new EditorGuiManager();
        }
示例#2
0
        protected override void Initialize()
        {
            _editArea = new AreaRectangle(100, 50, 400, 450, new Color(255, 255, 255, 100));

            App.Register();
            _mouseComponent    = DependencyInjection.Resolve <IMouseComponent>();
            _mouseInput        = DependencyInjection.Resolve <IMouseInput>();
            _mouseDrawer       = DependencyInjection.Resolve <IMouseDrawer>();
            _settings          = DependencyInjection.Resolve <ISettings>();
            _map               = DependencyInjection.Resolve <IMapComponent>();
            _keyboardComponent = DependencyInjection.Resolve <IKeyboardComponent>();

            base.Initialize();
        }