コード例 #1
0
 /// <summary>
 /// Handles a change of host.  The new host becomes responsible for
 /// assigning authority over objects when the situation is ambigous,
 /// so if it is us, we need to know it.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void HostChangedEventHandler(object sender, HostChangedEventArgs e)
 {
 }
コード例 #2
0
ファイル: LTO.cs プロジェクト: rdgoetz/LessThanOk
 void SessionHostChangedHandler(object sender, HostChangedEventArgs e)
 {
     //throw new NotImplementedException();
 }
コード例 #3
0
ファイル: NetworkHelper.cs プロジェクト: hatRiot/XNA
 void session_HostChanged(object sender, HostChangedEventArgs e)
 {
     message = "Host changed from " + e.OldHost.Tag + " to " + e.NewHost.Tag;
 }
コード例 #4
0
        void HostChanged(object sender, HostChangedEventArgs e)
        {
            if (notifyWhenPlayersJoinOrLeave)
            {
                if (networkSession.IsHost)
                    messageDisplay.ShowMessage(Resources.MessageYouAreHost, null);
                else
                    messageDisplay.ShowMessage(Resources.MessageNewHost, e.NewHost.Gamertag);

            }
        }