RoboidControl-cpp/Messages/DestroyMsg.cpp
Pascal Serrarens 61740913fe Refactoring
2025-01-31 11:45:22 +01:00

23 lines
452 B
C++

#include "DestroyMsg.h"
namespace Passer {
namespace Control {
DestroyMsg::DestroyMsg(unsigned char networkId, Thing *thing) {
this->networkId = networkId;
this->thingId = thing->id;
}
DestroyMsg::~DestroyMsg() {}
unsigned char DestroyMsg::Serialize(char *buffer) {
unsigned char ix = 0;
buffer[ix++] = this->id;
buffer[ix++] = this->networkId;
buffer[ix++] = this->thingId;
return ix;
}
} // namespace Control
} // namespace Passer