private static void ConditionedSpawnFlyingSprite(FlyingSpriteSpawner flyingSpriteSpawner, Vector3 pos, Quaternion rotation, Quaternion inverseRotation, INoteController noteController)
 {
     if (FakeNoteHelper.GetFakeNote(noteController))
     {
         flyingSpriteSpawner.SpawnFlyingSprite(pos, rotation, inverseRotation);
     }
 }
        // Do not create a NoteCutSoundEffect for fake notes
        private static bool Prefix(NoteController noteController)
        {
            if (FakeNoteHelper.GetFakeNote(noteController))
            {
                return(NoodleManager.ProcessHitSound(noteController));
            }

            return(false);
        }
Example #3
0
        // Do not create a NoteCutSoundEffect for fake notes
        private static bool Prefix(NoteController noteController)
        {
            if (!(noteController is MultiplayerConnectedPlayerNoteController) && FakeNoteHelper.GetFakeNote(noteController))
            {
                return(NoodleManager.ProcessHitSound(noteController));
            }

            return(false);
        }
Example #4
0
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
        private static bool Prefix(BeatmapObjectManager __instance, NoteController noteController, NoteCutInfo noteCutInfo)
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter
        {
            if (!FakeNoteHelper.GetFakeNote(noteController))
            {
                NoteCutCoreEffectsSpawnerStart.NoteCutCoreEffectsSpawner.HandleNoteWasCut(noteController, noteCutInfo);
                _despawnMethod.Invoke(__instance, new object[] { noteController });

                return(false);
            }

            return(true);
        }
 private static void ConditionedSpawnFlyingScore(
     FlyingScoreSpawner flyingScoreSpawner,
     NoteCutInfo noteCutInfo,
     int noteLineIndex,
     int multiplier,
     Vector3 pos,
     Quaternion rotation,
     Quaternion inverseRotation,
     Color color,
     INoteController noteController)
 {
     if (FakeNoteHelper.GetFakeNote(noteController))
     {
         flyingScoreSpawner.SpawnFlyingScore(noteCutInfo, noteLineIndex, multiplier, pos, rotation, inverseRotation, color);
     }
 }
 private static bool Prefix(NoteController noteController)
 {
     return(FakeNoteHelper.GetFakeNote(noteController));
 }