/// <summary> /// Adds a network module to the manager. /// </summary> /// <param name="module"></param> public void AddModule(SteamNetworkModule module) { if (modules.ContainsKey(module.GetType())) { if (NetLogFilter.logWarn) { Debug.Log($"Module has already been added. {module} || ({Time.time})"); } } modules.Add(module.GetType(), module); }
/// <summary> /// Checks if the maanger has the module. /// </summary> /// <param name="module"></param> /// <returns></returns> public bool HasModule(SteamNetworkModule module) { return(modules.ContainsKey(module.GetType())); }