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(); }
public virtual void CloseConnection() { Logger.Warn("Shutting down network processes immediately"); ConversationManager.ClearConversations(); MyProcessInfo.Status = ProcessInfo.StatusCode.Terminated; }
public void CleanupConversations() { ConversationManager.ClearConversations(); }