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
+3 -4
View File
@@ -9,10 +9,9 @@ namespace PerformanceFish.Utility;
/// Scribe_Deep normally creates a new instance when loading data. Scribe on this class prevents that. Also includes a
/// try-catch block
/// </summary>
public class Exposable : IExposable
public sealed class Exposable(IExposable @this) : IExposable
{
public readonly IExposable Parent;
public Exposable(IExposable @this) => Parent = @this;
public readonly IExposable Parent = @this;
public void ExposeData()
{
@@ -27,7 +26,7 @@ public class Exposable : IExposable
}
public override string ToString() => TrimName(Parent.ToString());
public override bool Equals(object obj) => obj.Equals(Parent);
public override bool Equals(object? obj) => Parent.Equals(obj);
public override int GetHashCode() => Parent.GetHashCode();
public static void Scribe(IExposable iExposable, string label, bool trimLabel = true)