Example #1
0
        // -------------------------------------------------------------------
        // 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);
        }
Example #2
0
        // -------------------------------------------------------------------
        // 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);
            }
        }
Example #3
0
        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------

        public Game(SystemDatas system, TilesetsDatas tilesets)
        {
            System   = system;
            Tilesets = tilesets;
        }