예제 #1
0
 /// <summary>
 ///     Maak of overschrijf de highscore bestand.
 /// </summary>
 /// <param name="data"> Data van de highscore lijst. </param>
 /// <returns>Een boolean, true = OK, false = FAIL.</returns>
 public static bool CreateHighScoreList(HighscoreContext context)
 {
     return(WriteBinaryFile(HighScoreListPath, context.Serialize()));
 }
예제 #2
0
        public void Deserialize(byte[] data)
        {
            HighscoreContext context = (HighscoreContext)GameFiles.Deserialize(data);

            HighscoreItems = context.HighscoreItems;
        }