// ------------------------------------------------------------------- // LoadDatas // ------------------------------------------------------------------- public void LoadDatas() { Heroes = WANOK.LoadBinaryDatas <HeroesDatas>(WANOK.HeroesPath); BattleSystem = WANOK.LoadBinaryDatas <BattleSystemDatas>(WANOK.BattleSystemPath); System = WANOK.LoadBinaryDatas <SystemDatas>(WANOK.SystemPath); Tilesets = WANOK.LoadBinaryDatas <TilesetsDatas>(WANOK.TilesetsPath); }
// ------------------------------------------------------------------- // SetStartInfos // ------------------------------------------------------------------- public void SetStartInfos(SystemDatas system, int[] startPosition) { if (startPosition[0] >= 0 && startPosition[0] < MapInfos.Width && startPosition[3] >= 0 && startPosition[3] < MapInfos.Height) { SetStartInfos(startPosition); } // If not into the portions, delete it else { system.NoStart(); WANOK.SaveBinaryDatas(system, WANOK.SystemPath); } }
// ------------------------------------------------------------------- // Constructor // ------------------------------------------------------------------- public Game(SystemDatas system, TilesetsDatas tilesets) { System = system; Tilesets = tilesets; }