public void RemoveServerLogic <T>() where T : IServerLogic { Type t = typeof(T); if (m_Logics.TryGetValue(t, out IServerLogic logic)) { m_Logics.Remove(t); logic.OnRemove(); } }
public AbsWorld RemoveWorld(int wid) { if (m_Worlds.TryGetValue(wid, out AbsWorld world)) { m_Worlds.Remove(wid); world.Dispose(); return(world); } return(null); }