2021-11-27 00:53:57 +01:00
|
|
|
#pragma once
|
2018-12-23 13:26:33 +01:00
|
|
|
|
|
|
|
#include <Common.h>
|
|
|
|
#include "ForwardsZone.h"
|
|
|
|
|
|
|
|
namespace Sapphire::World::Manager
|
|
|
|
{
|
|
|
|
|
2020-03-01 01:00:57 +11:00
|
|
|
class ItemMgr
|
2018-12-23 13:26:33 +01:00
|
|
|
{
|
|
|
|
public:
|
2020-03-01 01:00:57 +11:00
|
|
|
ItemMgr() = default;
|
2018-12-23 13:26:33 +01:00
|
|
|
|
|
|
|
ItemPtr loadItem( uint64_t uId );
|
|
|
|
|
|
|
|
uint32_t getNextUId();
|
|
|
|
|
|
|
|
/*! check if weapon category qualifies the weapon as onehanded */
|
|
|
|
static bool isOneHandedWeapon( Common::ItemUICategory weaponCategory );
|
|
|
|
static bool isArmory( uint16_t containerId );
|
|
|
|
static bool isEquipment( uint16_t containerId );
|
2021-11-27 00:53:57 +01:00
|
|
|
static uint16_t getCharaEquipSlotCategoryToArmoryId( uint8_t slotId );
|
2018-12-23 13:26:33 +01:00
|
|
|
static Common::ContainerType getContainerType( uint32_t containerId );
|
|
|
|
};
|
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
}
|