コード例 #1
0
        public void Draw(SpriteRender spriteRender)
        {
            // components that implement IDraw
            _debug.Draw(spriteRender);
            _hud.Draw(spriteRender);
            _inventory.Draw(spriteRender);
            _itemManager.Draw(spriteRender);
            _player.Draw(spriteRender);
            _activeGear.Draw(spriteRender);

            foreach (IDraw drawable in _entityManager.Draws)
            {
                drawable.Draw(spriteRender);
            }
        }