public virtual void DropSession() { if (HasSession) { Session.RefreshAction -= mRefreshRequest; Session = null; } }
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]); } } }