mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
bleh
This commit is contained in:
parent
d48a1e33fe
commit
26051f8716
@ -22,6 +22,6 @@ public static class AddonDataManager
|
|||||||
public static void RegisterHandler<T>(string messageType, Action<T> handler)
|
public static void RegisterHandler<T>(string messageType, Action<T> handler)
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"Registering handler for \"{messageType}\" with type of {typeof(T).Name}");
|
DebugLog.DebugWrite($"Registering handler for \"{messageType}\" with type of {typeof(T).Name}");
|
||||||
_handlers.Add(messageType, o => handler((T)o));
|
_handlers.Add(messageType, data => handler((T)data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user