mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 17:55:27 +00:00
Physics/, Activity/ (activity, scripted activity, shooting gallery, quickbuild, minigame control, racing control base, racing control, gate rush), Vendor/, Character/ (what the client makes with a character, plus ghost, minifig and mission), Sound/ and Property/; the rest stays where it was. File moves only; DLU_COMPONENT_INCLUDE_DIRS gives every target the folders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
758 B
C++
28 lines
758 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, const int32_t componentID);
|
|
|
|
void LoadDataFromTemplate() override;
|
|
|
|
void RefreshInventory(bool isCreation = false) override;
|
|
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__
|