Added gas grid optimization, various despawn optimizations, new hauling optimizations utilizing events and regions, bugfixes for old patches and for vanilla functions too, as well as smaller additions. 1.3 files removed.

This commit is contained in:
bbradson
2024-01-27 10:24:24 +01:00
parent 0247ad59a1
commit c8b764de68
151 changed files with 7318 additions and 2145 deletions
@@ -13,7 +13,22 @@ namespace PerformanceFish.Prepatching;
public abstract class ClassWithFishPrepatches : SingletonFactory<ClassWithFishPrepatches>
{
public virtual FishPrepatchHolder Patches { get; }
public virtual bool RequiresLoadedGameForPatching => false;
public virtual bool ShowSettings
{
get
{
foreach (var patch in Patches)
{
if (patch.ShowSettings)
return true;
}
return false;
}
}
public virtual bool Enabled => true;
protected ClassWithFishPrepatches() => Patches = new(GetType());
}