Exemple #1
0
        private void LocalServerDiscoveredNotification(Notification notification)
        {
            NetIncomingMessage msg  = notification.GetNotNullData <NetIncomingMessage>();
            ServerInfo         info = MultiplayerController.ReadServerInfo(msg);

            OnLocalServerFound(info);
        }
Exemple #2
0
        //////////////////////////////////////////////////////////////////////////////

        private void LocalClientDiscoveredNotification(Notification notification)
        {
            NetOutgoingMessage msg = notification.GetNotNullData <NetOutgoingMessage>();

            MultiplayerController.WriteServerInfo(msg, serverInfo);
        }