Пример #1
0
 internal static void Postfix(NetworkConfigSO __instance, ref MasterServerEndPoint __result)
 {
     if (MPState.CurrentMasterServer.Equals(__result))
     {
         return;
     }
     MPState.CurrentMasterServer = new MasterServerInfo(__result.hostName, __result.port, __instance.masterServerStatusUrl);
     MPEvents.RaiseMasterServerChanged(__instance, MPState.CurrentMasterServer);
 }
 internal static void Postfix(NetworkConfigSO __instance, ref MasterServerEndPoint __result)
 {
     if (__result != null)
     {
         MasterServerInfo info = new MasterServerInfo(__result);
         if (MPState.CurrentMasterServer.Equals(info))
         {
             return;
         }
         MPState.CurrentMasterServer = info;
         MPEvents.RaiseMasterServerChanged(__instance, info);
     }
 }