forked from mirror/openmw-tes3mp
		
	Also use the Profit label when the "minimumProfit" script variable exists, rather than hardcoding to NPCs.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			656 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			656 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef MWGUI_COMPANION_ITEM_MODEL_H
 | 
						|
#define MWGUI_COMPANION_ITEM_MODEL_H
 | 
						|
 | 
						|
#include "inventoryitemmodel.hpp"
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
 | 
						|
    /// @brief The companion item model keeps track of the companion's profit by
 | 
						|
    /// monitoring which items are being added to and removed from the model.
 | 
						|
    class CompanionItemModel : public InventoryItemModel
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        CompanionItemModel (const MWWorld::Ptr& actor);
 | 
						|
 | 
						|
        virtual MWWorld::Ptr copyItem (const ItemStack& item, size_t count, bool setNewOwner);
 | 
						|
        virtual void removeItem (const ItemStack& item, size_t count);
 | 
						|
 | 
						|
        bool hasProfit(const MWWorld::Ptr& actor);
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |