示例#1
0
 public virtual void DropSession()
 {
     if (HasSession)
     {
         Session.RefreshAction -= mRefreshRequest;
         Session = null;
     }
 }
示例#2
0
 public virtual void SetSession(BarterSession newSession)
 {
     if (HasSession)
     {
         Session.RefreshAction -= mRefreshRequest;
     }
     Session = newSession;
     if (Session != null)
     {
         Session.RefreshAction += mRefreshRequest;
     }
 }
        public override void SetSession(BarterSession newSession)
        {
            base.SetSession(newSession);

            if (HasSession)
            {
                if (Party == BarterParty.Player)
                {
                    SetGoods(Session.PlayerGoods[Index]);
                }
                else
                {
                    SetGoods(Session.CharacterGoods[Index]);
                }
            }
        }