Recommended annotation format

This commit is contained in:
Terry Hearst 2024-01-01 14:58:31 -05:00
parent b7b3d1a107
commit b3ad602d09
2 changed files with 2 additions and 4 deletions

View file

@ -3,8 +3,7 @@ using MIU;
namespace DiamondTimeViewer.Patches namespace DiamondTimeViewer.Patches
{ {
[HarmonyPatch(typeof(GamePlayManager))] [HarmonyPatch(typeof(GamePlayManager), nameof(GamePlayManager.FinishPlay))]
[HarmonyPatch("FinishPlay")]
internal class GamePlayManagerFinishPlayPatch internal class GamePlayManagerFinishPlayPatch
{ {
static void Postfix(GamePlayManager __instance, MarbleController marble) static void Postfix(GamePlayManager __instance, MarbleController marble)

View file

@ -3,8 +3,7 @@ using System.Collections.Generic;
namespace DiamondTimeViewer.Patches namespace DiamondTimeViewer.Patches
{ {
[HarmonyPatch(typeof(MedalsDisplay))] [HarmonyPatch(typeof(MedalsDisplay), nameof(MedalsDisplay.Setup))]
[HarmonyPatch("Setup")]
internal class MedalsDisplaySetupPatch internal class MedalsDisplaySetupPatch
{ {
static bool Prefix(MedalsDisplay __instance, float silver, float gold, List<string> eggUnlock) static bool Prefix(MedalsDisplay __instance, float silver, float gold, List<string> eggUnlock)