Example #1
0
 protected virtual void OnSessionChange(SessionChangeEventArgs e)
 {
     if (this.SessionChange != null)
     {
         this.SessionChange(this, e);
     }
 }
Example #2
0
    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);
    }
Example #3
0
        /// <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);
            }
        }
Example #4
0
 private void Session_SessionChange(object sender, SessionChangeEventArgs e)
 {
     this.OnSessionChange(e);
 }