public void Remove <T>(ECallback <T> value) where T : AbstractMessage { var type = typeof(T); if (_handlers.ContainsKey(type)) { ((CallbackWrapper <T>)_handlers[type]).Remove(value); } }
public void Add <T>(ECallback <T> value) where T : AbstractMessage { var type = typeof(T); if (!_handlers.ContainsKey(type)) { _handlers.Add(type, new CallbackWrapper <T>()); } ((CallbackWrapper <T>)_handlers[type]).Add(value); }
public static void SRemove <T>(ECallback <T> value) where T : AbstractMessage { _instance.Remove(value); }
public static void SAdd <T>(ECallback <T> value) where T : AbstractMessage { _instance.Add(value); }
public void Add(ECallback <T> value) { _delegates += value; }
public void Remove(ECallback <T> value) { _delegates -= value; }