18 lines
495 B
C#
Raw Normal View History

using HarmonyLib;
2021-06-18 21:54:32 +01:00
2022-03-02 19:46:33 -08:00
namespace QSB.Patches;
public abstract class QSBPatch
2020-11-03 21:11:10 +00:00
{
2022-03-02 19:46:33 -08:00
public abstract QSBPatchTypes Type { get; }
2021-06-18 21:54:32 +01:00
2022-08-07 20:02:45 +01:00
public virtual GameVendor PatchVendor => GameVendor.Epic | GameVendor.Steam | GameVendor.Gamepass;
2022-07-22 10:50:59 +01:00
2022-03-02 19:46:33 -08:00
public void DoPatches(Harmony instance) => instance.PatchAll(GetType());
2022-03-22 10:56:41 -07:00
2022-08-28 22:14:19 -07:00
/// <summary>
2023-08-02 14:02:00 -07:00
/// this is true when a message is received remotely (OnReceiveRemote) or a remote player joins/leaves (OnAddPlayer/OnRemovePlayer)
2022-08-28 22:14:19 -07:00
/// </summary>
public static bool Remote;
2022-03-22 10:56:41 -07:00
}