protected virtual void OnLobbyOwnerChange(LobbyOwnerChangeEventArgs e) { if (this.SessionChange != null) { this.SessionChange(this, new SessionChangeEventArgs(SessionChangeAction.OwnerChanged, this)); } }
protected override void OnLobbyOwnerChange(LobbyOwnerChangeEventArgs e) { base.OnLobbyOwnerChange(e); if (e.SteamIDLobbyOwner == base.SteamIDUser) { ILocalizationService service = Services.GetService <ILocalizationService>(); if (service != null) { base.SendLocalChatMessage("s:/" + service.Localize("%LobbyOwnerChange+")); } this.SetLobbyData("_Ready", new global::Session.LobbyReadyState(false, 0.0), true); this.SetLobbyData("_Launching", false, true); this.SetLobbyData("Owner", base.SteamIDUser, true); this.SetLobbyData("owner", base.SteamIDUser, true); } if (this != null) { this.LobbyOwnerChange(this, e); } }