Esempio n. 1
0
        public ScenarioSystem(IGameContent content, UISystem ui, Commander commander)
        {
            _content   = content;
            _ui        = ui;
            _commander = commander;

            _commander.RegisterHandler("UI", this);
        }
Esempio n. 2
0
        public virtual void AddContent(IGameContent content)
        {
            contents.Add(content);

            if (HasContentLoaded)
            {
                content.Load(Content);
            }
        }
Esempio n. 3
0
        public virtual void AddContent(IGameContent content)
        {
            contents.Add(content);

            if (HasContentLoaded)
            {
                content.Load(Content);
            }
        }
Esempio n. 4
0
        public UISystem(SpriteBatch spriteBatch, IGameContent content, Commander commander)
        {
            _palette     = new Palette(spriteBatch.GraphicsDevice);
            _fonts       = new Fonts(content);
            _spriteBatch = spriteBatch;
            _commander   = commander;

            _commander.RegisterHandler("Control", this);
            _commander.RegisterHandler("PlayerInput", this);
        }
Esempio n. 5
0
 public void RemoveContent(IGameContent content)
 {
     contents.Remove(content);
 }
Esempio n. 6
0
 public void Manage(IGameContent content)
 {
     contents.Add(content);
 }
Esempio n. 7
0
 private void UpdateScreenPosition(IGameContent content)
 {
     Vector2 screenPosition = content.Position - position;
     content.UpdateScreenPosition(screenPosition);
 }
Esempio n. 8
0
 public void RemoveContent(IGameContent content)
 {
     contents.Remove(content);
 }
Esempio n. 9
0
 public void AddAndTrack(IGameContent content)
 {
     AddContent(content);
     ViewportManager.Manage(content);
 }
Esempio n. 10
0
 public void AddAndTrack(IGameContent content)
 {
     AddContent(content);
     ViewportManager.Manage(content);
 }
Esempio n. 11
0
 public void Manage(IGameContent content)
 {
     contents.Add(content);
 }
Esempio n. 12
0
        private void UpdateScreenPosition(IGameContent content)
        {
            Vector2 screenPosition = content.Position - position;

            content.UpdateScreenPosition(screenPosition);
        }
Esempio n. 13
0
        // TODO etc

        public Fonts(IGameContent _content)
        {
            Brand = _content.BrandFont;
        }