From eac9658b7395a45d0b48cad340fd9ccf7bec0fde Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 29 Sep 2008 11:34:49 +0000 Subject: added voting gui and a lot of other minor changes --- src/game/client/components/maplist.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/game/client/components/maplist.hpp (limited to 'src/game/client/components/maplist.hpp') diff --git a/src/game/client/components/maplist.hpp b/src/game/client/components/maplist.hpp new file mode 100644 index 00000000..9b7ee1fd --- /dev/null +++ b/src/game/client/components/maplist.hpp @@ -0,0 +1,15 @@ +#include + +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]; } +}; -- cgit 1.4.1