2021-10-16 14:12:28 +01:00
|
|
|
|
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>
|
|
|
|
|
/// this is true when a message is received remotely (OnReceiveRemote) or a player leaves (OnRemovePlayer)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool Remote;
|
2022-03-22 10:56:41 -07:00
|
|
|
|
}
|