예제 #1
0
        public void SetMerchant(Player p, Character c)
        {
            _merchant = c;

            _conversationManager.ClearConversations();

            Conversations list = GameRef.Content.Load <Conversations>(@"SilverProphet\MerchantConversations\" + _merchant.Name);

            _conversation = list.ConversationList[_merchant.Name];

            if (!_merchantManager.ContainsMerchant(_merchant.Name))
            {
                _inventory = GameRef.Content.Load <MerchantInventory>(@"SilverProphet\MerchantInventories\" + _merchant.Name);
            }
            else
            {
                _inventory = _merchantManager.GetMerchant(_merchant.Name);
            }

            player    = p;
            _portrait = c.Portrait;

            _mode = MerchantMode.Talk;

            _selectedIndex = 0;
            _selectedItem  = "";

            _conversation.StartConversation();
        }
예제 #2
0
 public virtual void CloseConnection()
 {
     Logger.Warn("Shutting down network processes immediately");
     ConversationManager.ClearConversations();
     MyProcessInfo.Status = ProcessInfo.StatusCode.Terminated;
 }
 public void CleanupConversations()
 {
     ConversationManager.ClearConversations();
 }