blob: 6b6d5322299194598d1c51e4d0656661237002d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
}
}
|