about summary refs log tree commit diff stats
path: root/data/maps/the_great/rooms/Purple Room.txtpb
blob: e505ca053ea2d3a461810d1e4b521623e4019ee9 (plain) (blame)
1
2
3
4
5
6
7
name: "Purple Room"
panel_display_name: "Main Area"
ports {
  name: "DAEDALUS"
  path: "Meshes/Blocks/Warps/worldport18"
  orientation: "north"
}
ight">
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;
        }
    }
}