mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 23:43:34 +00:00
24 lines
660 B
C
24 lines
660 B
C
|
#ifndef __ACHIEVEMENTVENDORCOMPONENT__H__
|
||
|
#define __ACHIEVEMENTVENDORCOMPONENT__H__
|
||
|
|
||
|
#include "VendorComponent.h"
|
||
|
#include "eReplicaComponentType.h"
|
||
|
#include <set>
|
||
|
#include <map>
|
||
|
|
||
|
class Entity;
|
||
|
|
||
|
class AchievementVendorComponent final : public VendorComponent {
|
||
|
public:
|
||
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::ACHIEVEMENT_VENDOR;
|
||
|
AchievementVendorComponent(Entity* parent) : VendorComponent(parent) {};
|
||
|
bool SellsItem(Entity* buyer, const LOT lot);
|
||
|
void Buy(Entity* buyer, LOT lot, uint32_t count);
|
||
|
|
||
|
private:
|
||
|
std::map<LWOOBJID,std::set<LOT>> m_PlayerPurchasableItems;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //!__ACHIEVEMENTVENDORCOMPONENT__H__
|