ddnet/src/game/client/components/maplist.hpp
2008-09-29 11:34:49 +00:00

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]; }
};