Ejemplo n.º 1
0
        public static void UpdateSummaryDatabase(string _RootDirectory, RPPDatabase _Database)
        {
            PlayerSummaryDatabase database = null;
            string databaseFile            = _RootDirectory + "\\SummaryDatabase\\PlayerSummaryDatabase.dat";

            database = new PlayerSummaryDatabase(_Database);
            VF.Utility.SaveSerialize(databaseFile, database);
        }
Ejemplo n.º 2
0
        public static PlayerSummaryDatabase LoadSummaryDatabase(string _RootDirectory)
        {
            PlayerSummaryDatabase database = null;
            string databaseFile            = _RootDirectory + "\\SummaryDatabase\\PlayerSummaryDatabase.dat";

            if (System.IO.File.Exists(databaseFile) == true)
            {
                if (VF.Utility.LoadSerialize(databaseFile, out database, 10000, true) == false)
                {
                    database = null;
                }
            }
            return(database);
        }