public void RegisterConn <M>(ConnEvent i, ConnProc <M> func) where M : Manager { conn[(int)i] = (Manager manager, SID sid) => { M m = (M)manager; func(m, sid); }; }
internal void OnConnEvent(ConnEvent i, Manager manager, SID sid) { ConnProc <Manager> func = conn[(int)i]; if (func != null) { func(manager, sid); } }