Skip to content

Commit

Permalink
libdoomsday|Protocol: Copying map outline packets
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 13, 2019
1 parent 32d2c31 commit 1d567e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/libs/doomsday/include/doomsday/network/protocol.h
Expand Up @@ -143,6 +143,8 @@ class DE_PUBLIC MapOutlinePacket : public Packet
};

MapOutlinePacket();
MapOutlinePacket(const MapOutlinePacket &);
MapOutlinePacket &operator=(const MapOutlinePacket &);

void clear();

Expand Down
12 changes: 12 additions & 0 deletions doomsday/libs/doomsday/src/network/protocol.cpp
Expand Up @@ -184,6 +184,18 @@ MapOutlinePacket::MapOutlinePacket()
: Packet(MAP_OUTLINE_PACKET_TYPE), d(new Impl)
{}

MapOutlinePacket::MapOutlinePacket(const MapOutlinePacket &other)
: Packet(MAP_OUTLINE_PACKET_TYPE), d(new Impl)
{
d->lines = other.d->lines;
}

MapOutlinePacket &MapOutlinePacket::operator=(const MapOutlinePacket &other)
{
d->lines = other.d->lines;
return *this;
}

void MapOutlinePacket::clear()
{
d->lines.clear();
Expand Down

0 comments on commit 1d567e8

Please sign in to comment.