Skip to content

Commit

Permalink
Removed unused FillBackstorySlotShuffled method from reflection utili…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
edbmods committed Aug 14, 2021
1 parent 4a0399d commit 45d4b19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions Source/Reflection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ public static float BioSelectionWeight(PawnBio b) {
new object[] { b }
);
}
public static void FillBackstorySlotShuffled(Verse.Pawn pawn, BackstorySlot slot, ref Backstory backstory, Backstory backstoryOtherSlot, List<BackstoryCategoryFilter> backstoryCategories, FactionDef factionType) {
ReflectionCache.Instance.PawnBioAndNameGenerator_FillBackstorySlotShuffled.Invoke(null,
new object[] {
pawn, slot, backstory, backstoryOtherSlot, backstoryCategories, factionType, null
}
);
}
public static List<BackstoryCategoryFilter> GetBackstoryCategoryFiltersFor(Verse.Pawn pawn, FactionDef faction) {
return (List<BackstoryCategoryFilter>)ReflectionCache.Instance.PawnBioAndNameGenerator_GetBackstoryCategoryFiltersFor.Invoke(null,
new object[] { pawn, faction }
Expand Down
4 changes: 0 additions & 4 deletions Source/ReflectionCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class ReflectionCache {
public MethodInfo CharacterCardUtility_WorkTagsFrom { get; set; }
public MethodInfo GenFilePaths_FolderUnderSaveData { get; set; }
public MethodInfo PawnBioAndNameGenerator_BioSelectionWeight { get; set; }
public MethodInfo PawnBioAndNameGenerator_FillBackstorySlotShuffled { get; set; }
public MethodInfo PawnBioAndNameGenerator_GetBackstoryCategoryFiltersFor { get; set; }
public MethodInfo PawnBioAndNameGenerator_IsBioUseable { get; set; }
public MethodInfo PawnBioAndNameGenerator_TryGetRandomUnusedSolidBioFor { get; set; }
Expand Down Expand Up @@ -44,9 +43,6 @@ public void Initialize() {
GraphicDatabaseHeadRecords_BuildDatabaseIfNecessary = ReflectionUtil.RequiredMethod(typeof(GraphicDatabaseHeadRecords), "BuildDatabaseIfNecessary");
GenFilePaths_FolderUnderSaveData = ReflectionUtil.RequiredMethod(typeof(GenFilePaths), "FolderUnderSaveData", new Type[] { typeof(string) });

PawnBioAndNameGenerator_FillBackstorySlotShuffled = ReflectionUtil.RequiredMethod(typeof(PawnBioAndNameGenerator), "FillBackstorySlotShuffled",
new Type[] { typeof(Pawn), typeof(BackstorySlot), typeof(Backstory).MakeByRefType(), typeof(Backstory), typeof(List<BackstoryCategoryFilter>), typeof(FactionDef), typeof(Nullable<BackstorySlot>) });

PawnBioAndNameGenerator_GetBackstoryCategoryFiltersFor = ReflectionUtil.RequiredMethod(typeof(PawnBioAndNameGenerator), "GetBackstoryCategoryFiltersFor",
new Type[] { typeof(Pawn), typeof(FactionDef) });

Expand Down

0 comments on commit 45d4b19

Please sign in to comment.