private static void ConditionedSpawnFlyingSprite(FlyingSpriteSpawner flyingSpriteSpawner, Vector3 pos, Quaternion rotation, Quaternion inverseRotation, INoteController noteController)
 {
     if (FakeNoteHelper.GetFakeNote(noteController))
     {
         flyingSpriteSpawner.SpawnFlyingSprite(pos, rotation, inverseRotation);
     }
 }
 private static void Postfix(NoteData noteData, CuttableBySaber ____cuttableBySaber)
 {
     if (!FakeNoteHelper.GetCuttable(noteData))
     {
         ____cuttableBySaber.canBeCut = false;
     }
 }
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
        private static void Postfix(NoteData noteData, CuttableBySaber ____cuttableBySaber)
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter
        {
            if (!FakeNoteHelper.GetCuttable(noteData))
            {
                ____cuttableBySaber.canBeCut = false;
            }
        }
        // Do not create a NoteCutSoundEffect for fake notes
        private static bool Prefix(NoteController noteController)
        {
            if (FakeNoteHelper.GetFakeNote(noteController))
            {
                return(NoodleManager.ProcessHitSound(noteController));
            }

            return(false);
        }
예제 #5
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);
        }
예제 #6
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));
 }
 private static IEnumerable <CodeInstruction> Transpiler(IEnumerable <CodeInstruction> instructions)
 {
     return(FakeNoteHelper.ObstaclesTranspiler(instructions));
 }
 private static bool Prefix(GameNoteController __instance)
 {
     return(FakeNoteHelper.GetCuttable(__instance.noteData));
 }
예제 #11
0
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
        private static bool Prefix(GameNoteController __instance)
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter
        {
            return(FakeNoteHelper.GetCuttable(__instance.noteData));
        }