Example #1
0
        public static bool Prefix(ShipStatus __instance, [HarmonyArgument(0)] GameOverReason reason)
        {
            EndGameEvent endEvent = new EndGameEvent(__instance, reason);

            GameEventManager.callEndGame(endEvent);

            return(true);
        }
Example #2
0
 public static void callEndGame(EndGameEvent endEvent)
 {
     EndGame?.Invoke(null, endEvent);
 }
Example #3
0
 public virtual void EndGame(object sender, EndGameEvent endEvent)
 {
 }