mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 10:04:18 +00:00
4660e0a680
This works by utilizing the good old UUIDs – this way we can make sure that we don't clash with other people extending the map format.
27 lines
467 B
C
27 lines
467 B
C
#ifndef GAME_MAPITEMS_EX_H
|
|
#define GAME_MAPITEMS_EX_H
|
|
#include <game/generated/protocol.h>
|
|
|
|
enum
|
|
{
|
|
__MAPITEMTYPE_UUID_HELPER=OFFSET_MAPITEMTYPE_UUID-1,
|
|
#define UUID(id, name) id,
|
|
#include "mapitems_ex_types.h"
|
|
#undef UUID
|
|
END_MAPITEMTYPES_UUID,
|
|
};
|
|
|
|
struct CMapItemTest
|
|
{
|
|
enum { CURRENT_VERSION=1 };
|
|
|
|
int m_Version;
|
|
int m_aFields[2];
|
|
int m_Field3;
|
|
int m_Field4;
|
|
} ;
|
|
|
|
|
|
void RegisterMapItemTypeUuids(class CUuidManager *pManager);
|
|
#endif // GAME_MAPITEMS_EX_H
|