about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/Patches
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-22 20:05:14 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-22 20:05:14 -0400
commit605e866e92f4231ee05fbc3d6fbbea42383ba48e (patch)
treea40aa051a8fc8a3d42e8c322d89049db84457409 /AnodyneArchipelago/Patches
parentc94583d2ba54cd5331cf3a4aac3ba47ed770ff82 (diff)
downloadanodyne-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.cs15
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 @@
1using AnodyneSharp.Entities;
2using System;
3using System.Reflection;
4
5namespace 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}