public void FireEvent <T>(T eventId, object param1 = null, object param2 = null) { int iEventType = 0; FEventDispatcher evtDispatcher = GetByEventTypeName(typeof(T).FullName, ref iEventType); if (evtDispatcher != null) { uint iEventId = Convert.ToUInt32(eventId); string eventName = GetEventNameById(iEventId, iEventType); if (!string.IsNullOrEmpty(eventName)) { FLog.Debug("FireSync -> " + eventName); } evtDispatcher.FireEvent(iEventId, param1, param2); } else { FLog.Error("Error event type: " + typeof(T).FullName); } }