quantum-space-buddies/QSB/LogSync/Patches/LogPatches.cs

22 lines
519 B
C#
Raw Normal View History

2020-12-19 10:56:25 +00:00
using QSB.Events;
using QSB.Patches;
namespace QSB.LogSync.Patches
2020-12-19 10:56:25 +00:00
{
public class LogPatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
2021-06-18 20:54:32 +00:00
public static void ShipLogManager_RevealFact(string id, bool saveGame, bool showNotification, bool __result)
2020-12-19 10:56:25 +00:00
{
if (!__result)
{
return;
}
2021-06-18 21:38:32 +00:00
2021-02-10 19:34:41 +00:00
QSBEventManager.FireEvent(EventNames.QSBRevealFact, id, saveGame, showNotification);
2020-12-19 10:56:25 +00:00
}
2021-06-18 20:54:32 +00:00
public override void DoPatches() => Postfix(nameof(ShipLogManager_RevealFact));
2020-12-19 10:56:25 +00:00
}
}