Fix for Same Room Lovin' compatibility

This commit is contained in:
bbradson
2023-06-05 05:17:35 +02:00
parent 365d9fd3f3
commit d7ff5b96cd
4 changed files with 13 additions and 7 deletions
+5 -4
View File
@@ -14,15 +14,15 @@ public static class PrepatcherFields
[PrepatcherField]
[ValueInitializer(nameof(CreateGeneList))]
public static extern List<Gene> GenesToTick(this Pawn_GeneTracker geneTracker);
// [PrepatcherField]
// [ValueInitializer(nameof(CreateGeneList))]
// public static extern List<Gene> EndogenesToTick(this Pawn_GeneTracker geneTracker);
[PrepatcherField]
[ValueInitializer(nameof(CreateWorldPawnsCache))]
public static extern ref WorldPawnsOptimization.Cache Cache(this WorldPawns worldPawns);
[PrepatcherField]
[ValueInitializer(nameof(CreateBedHashSet))]
public static extern HashSet<Building_Bed> UniqueContainedBeds(this Room room);
#if false
[PrepatcherField]
[ValueInitializer(nameof(CreateHediffList))]
@@ -33,4 +33,5 @@ public static class PrepatcherFields
public static List<Gene> CreateGeneList() => new();
public static WorldPawnsOptimization.Cache CreateWorldPawnsCache() => new();
public static HashSet<Building_Bed> CreateBedHashSet() => new();
}