public static bool Prefix(ShipStatus __instance, [HarmonyArgument(0)] GameOverReason reason) { EndGameEvent endEvent = new EndGameEvent(__instance, reason); GameEventManager.callEndGame(endEvent); return(true); }
public static void callEndGame(EndGameEvent endEvent) { EndGame?.Invoke(null, endEvent); }
public virtual void EndGame(object sender, EndGameEvent endEvent) { }