mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
16 lines
333 B
C++
16 lines
333 B
C++
|
#include <game/client/component.hpp>
|
||
|
|
||
|
class MAPLIST : public COMPONENT
|
||
|
{
|
||
|
char buffer[2048];
|
||
|
const char *maps[128];
|
||
|
int num_maps;
|
||
|
public:
|
||
|
MAPLIST();
|
||
|
virtual void on_reset();
|
||
|
virtual void on_message(int msgtype, void *rawmsg);
|
||
|
|
||
|
int num() const { return num_maps; }
|
||
|
const char *name(int index) const { return maps[index]; }
|
||
|
};
|