1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

refactor getInventory -> getItemContainer

This commit is contained in:
NotAdam 2018-12-07 20:11:59 +11:00
parent 60e372b232
commit 703049e14f
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ bool Sapphire::Land::setPreset( uint32_t itemId )
return true; return true;
} }
Sapphire::ItemContainerPtr Sapphire::Land::getInventory( uint16_t inventoryType ) const Sapphire::ItemContainerPtr Sapphire::Land::getItemContainer( uint16_t inventoryType ) const
{ {
auto container = m_landInventoryMap.find( inventoryType ); auto container = m_landInventoryMap.find( inventoryType );
if( container == m_landInventoryMap.end() ) if( container == m_landInventoryMap.end() )

View file

@ -61,7 +61,7 @@ namespace Sapphire
void setLandTag( uint8_t slot, uint8_t tag ); void setLandTag( uint8_t slot, uint8_t tag );
uint8_t getLandTag( uint8_t slot ); uint8_t getLandTag( uint8_t slot );
ItemContainerPtr getInventory( uint16_t inventoryType ) const; ItemContainerPtr getItemContainer( uint16_t inventoryType ) const;
private: private:
uint32_t convertItemIdToHousingItemId( uint32_t itemId ); uint32_t convertItemIdToHousingItemId( uint32_t itemId );