/// <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) { }
void SessionHostChangedHandler(object sender, HostChangedEventArgs e) { //throw new NotImplementedException(); }
void session_HostChanged(object sender, HostChangedEventArgs e) { message = "Host changed from " + e.OldHost.Tag + " to " + e.NewHost.Tag; }
void HostChanged(object sender, HostChangedEventArgs e) { if (notifyWhenPlayersJoinOrLeave) { if (networkSession.IsHost) messageDisplay.ShowMessage(Resources.MessageYouAreHost, null); else messageDisplay.ShowMessage(Resources.MessageNewHost, e.NewHost.Gamertag); } }