Basic saving and loading system

This commit is contained in:
Braedon
2022-01-30 07:03:37 -05:00
parent 7330d19ff6
commit d361f45590
127 changed files with 4967 additions and 33 deletions

View File

@ -96,6 +96,24 @@ namespace RhythmHeavenMania
}
}
public void LoadRemix(string json)
{
SortEventsList();
Beatmap = JsonConvert.DeserializeObject<Beatmap>(json);
Conductor.instance.SetBpm(Beatmap.bpm);
if (Beatmap.entities.Count >= 1)
{
SetCurrentGame(Beatmap.entities[0].datamodel.Split(0));
SetGame(Beatmap.entities[0].datamodel.Split(0));
}
else
{
SetGame("noGame");
}
}
// LateUpdate works a bit better but causes a bit of bugs, so remind me to fix those eventually
private void Update()
{