19 lines
285 B
C++
19 lines
285 B
C++
#pragma once
|
|
|
|
#include "netMessage.hpp"
|
|
|
|
namespace rage
|
|
{
|
|
struct netMessageText : public netMessage
|
|
{
|
|
char text[256];
|
|
|
|
void setText(const char* text) noexcept
|
|
{
|
|
strncpy(this->text, text, 256);
|
|
this->text[255] = 0;
|
|
}
|
|
};
|
|
static_assert(sizeof(netMessageText) == 256);
|
|
}
|