Elin Decompiled Documentation EA 23.315 Nightly
Loading...
Searching...
No Matches
ElinPostLoadAttribute.cs
Go to the documentation of this file.
1using System;
2using System.Reflection;
3
5{
6 public override void Register(MethodInfo method)
7 {
8 Action<GameIOContext> handler = method.CreateDelegate<Action<GameIOContext>>();
9 BaseModManager.SubscribeEvent("elin.game.start_new", handler);
10 BaseModManager.SubscribeEvent("elin.game.post_load", handler);
11 }
12}
static void SubscribeEvent(string eventId, Action< object > handler)
override void Register(MethodInfo method)