1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:19:57 +00:00
openmw-tes3mp/apps/openmw/mwmp/GUI/PlayerMarkerCollection.hpp

44 lines
1.2 KiB
C++

// Copied from MWGui::CustomMarkerCollection
#ifndef OPENMW_PLAYERMARKERCOLLECTION_HPP
#define OPENMW_PLAYERMARKERCOLLECTION_HPP
#include <components/esm/cellid.hpp>
#include <components/esm/custommarkerstate.hpp>
#include <map>
#include <MyGUI_Common.h>
#include <MyGUI_Colour.h>
namespace mwmp
{
class PlayerMarkerCollection
{
public:
void addMarker(const ESM::CustomMarker &marker, bool triggerEvent = true);
void deleteMarker(const ESM::CustomMarker &marker);
void updateMarker(const ESM::CustomMarker &marker, const std::string &newNote);
void clear();
size_t size() const;
typedef std::multimap <ESM::CellId, ESM::CustomMarker> ContainerType;
typedef std::pair <ContainerType::const_iterator, ContainerType::const_iterator> RangeType;
ContainerType::const_iterator begin() const;
ContainerType::const_iterator end() const;
RangeType getMarkers(const ESM::CellId &cellId) const;
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
EventHandle_Void eventMarkersChanged;
bool contains(const ESM::CustomMarker &marker);
private:
ContainerType mMarkers;
};
}
#endif //OPENMW_PLAYERMARKERCOLLECTION_HPP