private static void Postfix(IBeatmapObjectSpawner ____beatmapObjectSpawner, BeatmapObjectSpawnMovementData ____beatmapObjectSpawnMovementData)
 {
     if (____beatmapObjectSpawner is BasicBeatmapObjectManager basicBeatmapObjectManager)
     {
         SpawnDataHelper.InitBeatmapObjectSpawnController(____beatmapObjectSpawnMovementData);
     }
 }
Exemplo n.º 2
0
 internal static float GetJumpDuration(BeatmapObjectData beatmapObjectData, float @default)
 {
     if (beatmapObjectData is CustomObstacleData || beatmapObjectData is CustomNoteData)
     {
         dynamic dynData     = ((dynamic)beatmapObjectData).customData;
         float?  njs         = (float?)Trees.at(dynData, NOTEJUMPSPEED);
         float?  spawnoffset = (float?)Trees.at(dynData, SPAWNOFFSET);
         SpawnDataHelper.GetNoteJumpValues(njs, spawnoffset, out float localJumpDuration, out float _, out Vector3 _, out Vector3 _, out Vector3 _);
         return(localJumpDuration);
     }
     return(@default);
 }