Exemple #1
0
 /// <summary>
 /// Generate the replay data from api calls
 /// </summary>
 /// <param name="score">score object for general properties</param>
 /// <param name="replay">replay object for the compressed replay data</param>
 /// <param name="readData">uncomress and read the compressed replay data</param>
 public Replay(ApiScore score, ApiReplay replay, bool readData = true) : this()
 {
     score.CloneTo(this);
     ReplayData = Convert.FromBase64String(replay.Content);
     if (readData)
     {
         ReadData();
     }
     FileFormat  = 0;  //?
     BeatmapHash = ""; // use api-call for this
     ReplayHash  = ""; //?
 }
Exemple #2
0
 /// <summary>
 /// Generate the replay data from api calls
 /// </summary>
 /// <param name="score">score object for general properties</param>
 /// <param name="replay">replay object for the compressed replay data</param>
 /// <param name="readData">uncomress and read the compressed replay data</param>
 public Replay(ApiScore score, ApiReplay replay, bool readData = true) : this()
 {
     score.CloneTo(this);
     ReplayData = Convert.FromBase64String(replay.Content.Replace("\\/", "/")); // doesn't work yet
     if (readData)
     {
         ReadData();
     }
     FileFormat  = 0;  //?
     BeatmapHash = ""; // use api-call for this
     //LifebarFrames aren't available
     ReplayHash = "";  //?
 }