mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
5ae37e6c72
This system can easily be extended by independent authors without collisions, something the old system with plain increasing integers did not allow. Do this by utilizing the previously unused message code `NETMSG_NULL` which has a value of 0. This works for engine and game messages, snapshot items and events.
15 lines
303 B
C++
15 lines
303 B
C++
#include <engine/shared/uuid_manager.h>
|
|
int main(int argc, char **argv)
|
|
{
|
|
dbg_logger_stdout();
|
|
if(argc != 2)
|
|
{
|
|
dbg_msg("usage", "uuid <NAME>");
|
|
return -1;
|
|
}
|
|
CUuid Uuid = CalculateUuid(argv[1]);
|
|
char aBuf[UUID_MAXSTRSIZE];
|
|
FormatUuid(Uuid, aBuf, sizeof(aBuf));
|
|
dbg_msg("uuid", "%s", aBuf);
|
|
}
|