コード例 #1
0
        protected override void OnCMList(SteamClient.CMListCallback callback)
        {
            List <IPEndPoint> sortedServers = callback.Servers
                                              .OrderBy(s => s.ToString())
                                              .ToList();

            if (!lastCmList.SequenceEqual(sortedServers))
            {
                Log.WriteInfo("MasterMonitor", "Got new CM list containing {0} servers", sortedServers.Count);

                lastCmList = sortedServers;
            }

            base.OnCMList(callback);
        }
コード例 #2
0
 private static void OnCMList(SteamClient.CMListCallback callback)
 {
     SteamManager.Instance.UpdateCMList(callback.Servers);
 }
コード例 #3
0
 protected virtual void OnCMList(SteamClient.CMListCallback callback)
 {
     SteamManager.Instance.UpdateCMList(callback.Servers);
 }