Skip to content

Commit

Permalink
modified: src/v2i-hub/MapPlugin/src/MapPlugin.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed Jun 13, 2024
1 parent aef5746 commit 7bbf823
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/v2i-hub/MapPlugin/src/MapPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,21 @@ UPERframe _uperFrameMessage;
class MapFile: public tmx::message {
public:
using tmx::message::message;
~MapFile() override = default;

MapFile(MapFile&&) noexcept = default;
MapFile& operator=(MapFile&&) noexcept = default;

MapFile(const MapFile&) = default;
MapFile& operator=(const MapFile&) = default;

std_attribute(this->msg, int, Action, -1, );
std_attribute(this->msg, std::string, FilePath, "", );
std_attribute(this->msg, std::string, InputType, "", );
std_attribute(this->msg, std::string, Bytes, "", );

static tmx::message_tree_type to_tree(const MapFile& m) {
return tmx::message::to_tree(static_cast<tmx::message>(m));
return tmx::message::to_tree(static_cast<const tmx::message&>(m));
}

static MapFile from_tree(const tmx::message_tree_type &tree) {
Expand Down

0 comments on commit 7bbf823

Please sign in to comment.