Elin Decompiled Documentation
EA 23.315 Nightly
Loading...
Searching...
No Matches
ElinThingOnCreateAttribute.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Reflection;
3
4
[AttributeUsage(AttributeTargets.Method)]
5
public
sealed
class
ElinThingOnCreateAttribute
:
ElinEventBaseAttribute
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
}
BaseModManager
Definition:
BaseModManager.cs:8
BaseModManager.SubscribeEvent
static void SubscribeEvent(string eventId, Action< object > handler)
Definition:
BaseModManager.cs:99
ElinEventBaseAttribute
Definition:
ElinEventBaseAttribute.cs:5
ElinThingOnCreateAttribute
Definition:
ElinThingOnCreateAttribute.cs:6
ElinThingOnCreateAttribute.Register
override void Register(MethodInfo method)
Definition:
ElinThingOnCreateAttribute.cs:7
Elin
ElinThingOnCreateAttribute.cs
Generated by
1.9.6