mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
66 lines
1.1 KiB
C
66 lines
1.1 KiB
C
![]() |
#ifndef _ITEM_H_
|
||
|
#define _ITEM_H_
|
||
|
|
||
|
#include <Server_Common/Common.h>
|
||
|
|
||
|
namespace Core {
|
||
|
|
||
|
class Item
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
Item();
|
||
|
Item( uint32_t catalogId );
|
||
|
Item( uint64_t uId, uint32_t catalogId, uint64_t model1, uint64_t model2, Common::ItemCategory categoryId, bool isHq = false );
|
||
|
~Item();
|
||
|
|
||
|
uint32_t getId() const;
|
||
|
|
||
|
void setId( uint32_t id );
|
||
|
|
||
|
uint64_t getUId() const;
|
||
|
|
||
|
void setUId( uint64_t id );
|
||
|
|
||
|
void setStackSize( uint32_t size );
|
||
|
|
||
|
uint32_t getStackSize() const;
|
||
|
|
||
|
void setCategory( Common::ItemCategory categoryId );
|
||
|
|
||
|
Common::ItemCategory getCategory() const;
|
||
|
|
||
|
void setModelIds( uint64_t model1, uint64_t model2 );
|
||
|
|
||
|
uint64_t getModelId1() const;
|
||
|
|
||
|
uint64_t getModelId2() const;
|
||
|
|
||
|
bool isHq() const;
|
||
|
|
||
|
void setHq( bool isHq );
|
||
|
uint16_t getDelay() const;
|
||
|
|
||
|
|
||
|
protected:
|
||
|
uint32_t m_id;
|
||
|
|
||
|
uint64_t m_uId;
|
||
|
|
||
|
Common::ItemCategory m_category;
|
||
|
|
||
|
uint32_t m_stackSize;
|
||
|
std::vector< uint8_t > m_classJobList;
|
||
|
|
||
|
uint64_t m_model1;
|
||
|
uint64_t m_model2;
|
||
|
|
||
|
bool m_isHq;
|
||
|
|
||
|
uint16_t m_delayMs;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|