mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-08 17:28:20 +00:00
21 lines
690 B
C++
21 lines
690 B
C++
#pragma once
|
|
#include "CppScripts.h"
|
|
|
|
struct ItemSetting {
|
|
std::vector<LOT> items; // The items to add/remove
|
|
bool add; // Add items on mission accept
|
|
bool remove; // Remove items on mission complete
|
|
};
|
|
|
|
/**
|
|
* Scripts that allows for the addition and removal of sets of items by an NPC
|
|
*/
|
|
class NPCAddRemoveItem : virtual public CppScripts::Script {
|
|
protected:
|
|
void OnMissionDialogueOK(Entity* self, Entity* target, int missionID, eMissionState missionState) override;
|
|
virtual std::map<uint32_t, std::vector<ItemSetting>> GetSettings();
|
|
private:
|
|
void OnStartup(Entity* self) override;
|
|
std::map<uint32_t, std::vector<ItemSetting>> m_MissionItemSettings;
|
|
};
|