public BeatmapPlayer(BeatmapInfo beatmapInfo) { playObj = new Dictionary <double, KeyDirection>(); currentNote = 0; this.beatmapInfo = beatmapInfo; reader = new GameValueReader(); }
//Calling the Program wininit.. //Project is outdated, so getting values from ingame is not working anymore. //Need new Pointers (workshopID, current Time) static void Main() { Console.Title = "wininit"; GameValueReader reader = new GameValueReader(); string workshopID = reader.GetBeatmapID(); int id = -1; int.TryParse(workshopID, out id); Console.WriteLine("[SEARCHING] Searching Workshop ID..."); searchBeatmap: if (workshopID == "UnityEngine.Events.U") { workshopID = reader.GetBeatmapID(); int.TryParse(workshopID, out id); goto searchBeatmap; } Console.WriteLine("[FOUND] Got workshop ID:" + workshopID + ", ID: " + id); Keyboard.PrepareHook(); ProcessBeatMap(id); Console.ReadLine(); }