mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 22:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			717 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			717 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MWGUI_PICKPOCKET_ITEM_MODEL_H
 | |
| #define MWGUI_PICKPOCKET_ITEM_MODEL_H
 | |
| 
 | |
| #include "itemmodel.hpp"
 | |
| 
 | |
| namespace MWGui
 | |
| {
 | |
| 
 | |
|     /// @brief The pickpocket item model randomly hides item stacks based on a specified chance. Equipped items are always hidden.
 | |
|     class PickpocketItemModel : public ProxyItemModel
 | |
|     {
 | |
|     public:
 | |
|         PickpocketItemModel (const MWWorld::Ptr& thief, ItemModel* sourceModel);
 | |
|         virtual ItemStack getItem (ModelIndex index);
 | |
|         virtual size_t getItemCount();
 | |
|         virtual void update();
 | |
|         virtual void removeItem (const ItemStack& item, size_t count);
 | |
| 
 | |
|     private:
 | |
|         std::vector<ItemStack> mHiddenItems;
 | |
|         std::vector<ItemStack> mItems;
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |