protected virtual void OnSessionChange(SessionChangeEventArgs e) { if (this.SessionChange != null) { this.SessionChange(this, e); } }
protected override void OnSessionChange(SessionChangeEventArgs e) { base.OnSessionChange(e); switch (e.Action) { case SessionChangeAction.Opened: this.FiniteStateMachine.PostStateChange(typeof(SessionState_Opened), new object[0]); break; } string text = AgeLocalizer.Instance.LocalizeString("%RichPresenceInLobby" + base.SessionMode); text = text.Replace("$Name", base.GetLobbyData <string>("name", null)); Steamworks.SteamAPI.SteamFriends.SetRichPresence("status", text); }
/// <exception cref="Exception">A delegate callback throws an exception. </exception> protected override void OnSessionChange(SessionChangeDescription changeDescription) { var e = new SessionChangeEventArgs(changeDescription); if (SessionChange != null) { SessionChange(this, e); } if (e.RunBase) { base.OnSessionChange(changeDescription); } }
private void Session_SessionChange(object sender, SessionChangeEventArgs e) { this.OnSessionChange(e); }