DMFCBase::StartPacket Initializes a packet so it is ready to be sent out. data = pointer to buffer of data for packet. This buffer should be MAX_GAME_DATA_SIZE in size, even if you don't plan on using all that data, there is header information that is added in this function. id = ID of the Special packet. When the packet is recieved by whomever, this is the ID that determines which handler to c
| 192 | // call. |
| 193 | // count = pointer to your packet index pointer |
| 194 | void DMFCBase::StartPacket(uint8_t *data, uint8_t id, int *count) { |
| 195 | *count = 0; |
| 196 | |
| 197 | MultiAddByte(id, data, count); // set the first byte (invisible to coder) as the id |
| 198 | } |
| 199 | |
| 200 | // DMFCBase::SendPacket |
| 201 | // |
no test coverage detected