From 605e866e92f4231ee05fbc3d6fbbea42383ba48e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 22 May 2024 20:05:14 -0400 Subject: Added red cave tentacle locations --- AnodyneArchipelago/Patches/PatchHelper.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 AnodyneArchipelago/Patches/PatchHelper.cs (limited to 'AnodyneArchipelago/Patches/PatchHelper.cs') diff --git a/AnodyneArchipelago/Patches/PatchHelper.cs b/AnodyneArchipelago/Patches/PatchHelper.cs new file mode 100644 index 0000000..6b6d532 --- /dev/null +++ b/AnodyneArchipelago/Patches/PatchHelper.cs @@ -0,0 +1,15 @@ +using AnodyneSharp.Entities; +using System; +using System.Reflection; + +namespace AnodyneArchipelago.Patches +{ + internal class PatchHelper + { + public static EntityPreset GetEntityPreset(Type type, object instance) + { + FieldInfo presetField = type.GetField("_preset", BindingFlags.NonPublic | BindingFlags.Instance); + return presetField.GetValue(instance) as EntityPreset; + } + } +} -- cgit 1.4.1