// Copyright (c) 2023 bradson // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. extern alias nuget; using nuget::JetBrains.Annotations; namespace PerformanceFish.Patching; [PublicAPI] [UsedImplicitly(ImplicitUseTargetFlags.WithInheritors | ImplicitUseTargetFlags.WithMembers)] public abstract class ClassWithFishPatches : SingletonFactory, IHasFishPatch { public virtual FishPatchHolder Patches { get; } public virtual bool RequiresLoadedGameForPatching => false; protected ClassWithFishPatches() => Patches = new(GetType()); }