diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-29 11:34:49 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-09-29 11:34:49 +0000 |
| commit | eac9658b7395a45d0b48cad340fd9ccf7bec0fde (patch) | |
| tree | d5bd824038a9b095dd8ea5d9ab4cca88ce1afb0f /src/game/client/components/maplist.hpp | |
| parent | 6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c (diff) | |
| download | zcatch-eac9658b7395a45d0b48cad340fd9ccf7bec0fde.tar.gz zcatch-eac9658b7395a45d0b48cad340fd9ccf7bec0fde.zip | |
added voting gui and a lot of other minor changes
Diffstat (limited to 'src/game/client/components/maplist.hpp')
| -rw-r--r-- | src/game/client/components/maplist.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <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]; } +}; |