mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 01:07:47 +00:00
26 lines
No EOL
628 B
C++
26 lines
No EOL
628 B
C++
#pragma once
|
|
|
|
#include <Common.h>
|
|
#include "ForwardsZone.h"
|
|
|
|
namespace Sapphire::World::Manager
|
|
{
|
|
|
|
class ItemMgr
|
|
{
|
|
public:
|
|
ItemMgr() = default;
|
|
|
|
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 );
|
|
static uint16_t getCharaEquipSlotCategoryToArmoryId( uint8_t slotId );
|
|
static Common::ContainerType getContainerType( uint32_t containerId );
|
|
};
|
|
|
|
} |