diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-22 20:05:14 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-22 20:05:14 -0400 |
| commit | 605e866e92f4231ee05fbc3d6fbbea42383ba48e (patch) | |
| tree | a40aa051a8fc8a3d42e8c322d89049db84457409 /AnodyneArchipelago/Patches | |
| parent | c94583d2ba54cd5331cf3a4aac3ba47ed770ff82 (diff) | |
| download | anodyne-archipelago-605e866e92f4231ee05fbc3d6fbbea42383ba48e.tar.gz anodyne-archipelago-605e866e92f4231ee05fbc3d6fbbea42383ba48e.tar.bz2 anodyne-archipelago-605e866e92f4231ee05fbc3d6fbbea42383ba48e.zip | |
Added red cave tentacle locations
Diffstat (limited to 'AnodyneArchipelago/Patches')
| -rw-r--r-- | AnodyneArchipelago/Patches/PatchHelper.cs | 15 |
1 files changed, 15 insertions, 0 deletions
| 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 @@ | |||
| 1 | using AnodyneSharp.Entities; | ||
| 2 | using System; | ||
| 3 | using System.Reflection; | ||
| 4 | |||
| 5 | namespace AnodyneArchipelago.Patches | ||
| 6 | { | ||
| 7 | internal class PatchHelper | ||
| 8 | { | ||
| 9 | public static EntityPreset GetEntityPreset(Type type, object instance) | ||
| 10 | { | ||
| 11 | FieldInfo presetField = type.GetField("_preset", BindingFlags.NonPublic | BindingFlags.Instance); | ||
| 12 | return presetField.GetValue(instance) as EntityPreset; | ||
| 13 | } | ||
| 14 | } | ||
| 15 | } | ||
