public int EventRegister(string eventName, LuaFunction callback) { var id = XEvent.RegisterFromLua(eventName, callback); mEventIds.Add(id); return(id); }