コード例 #1
0
ファイル: Core.cs プロジェクト: GDxU/hex-strategy-game
        /// <summary>
        /// Loads a new game from storage
        /// </summary>
        public static void Load()
        {
            Core.map.hexList.Clear();
            Core.factions.Clear();

            PersistentStorage ps = new PersistentStorage();

            ps.InitiateLoad();
        }
コード例 #2
0
ファイル: Core.cs プロジェクト: GDxU/hex-strategy-game
        /// <summary>
        /// Saves the game
        /// </summary>
        public static void Save()
        {
            PersistentStorage pw = new PersistentStorage();

            pw.InitiateSave();
        }