// Copied from MWGui::CustomMarkerCollection #ifndef OPENMW_PLAYERMARKERCOLLECTION_HPP #define OPENMW_PLAYERMARKERCOLLECTION_HPP #include #include #include #include #include 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 ContainerType; typedef std::pair 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