Elin Decompiled Documentation EA 23.315 Nightly
Loading...
Searching...
No Matches
ElinThingOnCreateAttribute.cs
Go to the documentation of this file.
1using System;
2using System.Reflection;
3
4[AttributeUsage(AttributeTargets.Method)]
6{
7 public override void Register(MethodInfo method)
8 {
9 Action<Thing> handler = method.CreateDelegate<Action<Thing>>();
10 BaseModManager.SubscribeEvent("elin.thing_created", handler);
11 }
12}
static void SubscribeEvent(string eventId, Action< object > handler)
override void Register(MethodInfo method)