/// <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())); }
public void Deserialize(byte[] data) { HighscoreContext context = (HighscoreContext)GameFiles.Deserialize(data); HighscoreItems = context.HighscoreItems; }