public TilesetManager(ContentManager content, SpriteBatch spriteBatch)
        {
            _content     = content;
            _spriteBatch = spriteBatch;

            _tilesets = ManagerHelper.LoadFolder <Texture2D>("tileset", content);
        }
예제 #2
0
        public ActorManager(ContentManager contentManager, SpriteBatch spriteBatch)
        {
            _spriteBatch = spriteBatch;

            Charsets    = ManagerHelper.LoadFolder <Texture2D>("charset", contentManager);
            BattleChars = ManagerHelper.LoadFolder <Texture2D>("battlechar", contentManager);
        }
예제 #3
0
        public EnemyManager(ContentManager contentManager, SpriteBatch spriteBatch)
        {
            _spriteBatch = spriteBatch;

            // load textures
            Sprites = ManagerHelper.LoadFolder <Texture2D>("enemy", contentManager);

            // load enemies
            var filepaths = FileManager.GetFilepaths("../../../../Data/enemy");

            foreach (var filepath in filepaths)
            {
                var filename = Path.GetFileNameWithoutExtension(filepath);
                Enemies.Add(filename, Serializer.XmlDeserialize <Enemy>(filepath));
            }
        }
        public BattleManager(ContentManager contentManager, SpriteBatch spriteBatch)
        {
            _spriteBatch = spriteBatch;

            BattleBg = ManagerHelper.LoadFolder <Texture2D>("battleBg", contentManager);
        }
예제 #5
0
        public IconManager(ContentManager contentManager, SpriteBatch spriteBatch)
        {
            _spriteBatch = spriteBatch;

            Icons = ManagerHelper.LoadFolder <Texture2D>("icon", contentManager);
        }