Mercurial > malikania
diff libcommon/malikania/loader.hpp @ 99:0addfab87b17
Common: implement basic tilesets, closes #664
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 18 Aug 2017 18:45:07 +0200 |
parents | f4d23ad4aa27 |
children | 119bcc5a727e |
line wrap: on
line diff
--- a/libcommon/malikania/loader.hpp Tue Jul 04 13:23:15 2017 +0200 +++ b/libcommon/malikania/loader.hpp Fri Aug 18 18:45:07 2017 +0200 @@ -19,10 +19,13 @@ #ifndef MALIKANIA_LOADER_HPP #define MALIKANIA_LOADER_HPP +#include <string> + namespace mlk { class game; class locator; +class tileset; /** * \brief Open resources files using a locator. @@ -66,6 +69,15 @@ * \throw std::runtime_error on errors */ virtual game load_game() const; + + /** + * Load a tileset. + * + * \param id the tileset id + * \return a tileset ready to use + * \throw std::runtime_error on errors + */ + virtual tileset load_tileset(const std::string& id) const; }; } // !mlk