public TilesetManager(ContentManager content, SpriteBatch spriteBatch) { _content = content; _spriteBatch = spriteBatch; _tilesets = ManagerHelper.LoadFolder <Texture2D>("tileset", content); }
public ActorManager(ContentManager contentManager, SpriteBatch spriteBatch) { _spriteBatch = spriteBatch; Charsets = ManagerHelper.LoadFolder <Texture2D>("charset", contentManager); BattleChars = ManagerHelper.LoadFolder <Texture2D>("battlechar", contentManager); }
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); }
public IconManager(ContentManager contentManager, SpriteBatch spriteBatch) { _spriteBatch = spriteBatch; Icons = ManagerHelper.LoadFolder <Texture2D>("icon", contentManager); }