RoboidControl-cpp/Messages/DestroyMsg.cpp
2025-02-21 15:49:14 +01:00

25 lines
505 B
C++

#include "DestroyMsg.h"
namespace Passer {
namespace RoboidControl {
DestroyMsg::DestroyMsg(unsigned char networkId, Thing *thing) {
this->networkId = networkId;
this->thingId = thing->id;
}
DestroyMsg::DestroyMsg(char* buffer) {}
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 RoboidControl
} // namespace Passer