diff options
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]; } +}; |