2024-10-30 07:30:20 +00:00
|
|
|
#ifndef ACHIEVEMENTVENDORCOMPONENT_H
|
|
|
|
#define ACHIEVEMENTVENDORCOMPONENT_H
|
2024-02-25 07:47:05 +00:00
|
|
|
|
|
|
|
#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;
|
2024-03-07 01:50:21 +00:00
|
|
|
AchievementVendorComponent(Entity* parent);
|
|
|
|
|
|
|
|
void RefreshInventory(bool isCreation = false) override;
|
2024-02-25 07:47:05 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-10-30 07:30:20 +00:00
|
|
|
#endif //!ACHIEVEMENTVENDORCOMPONENT_H
|