blob: fbffc407262fe54b33e98f8193001a9daeadbc5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "app.hpp"
#include "compat/assert.hpp"
#include "compat/prelude.hpp"
#include "loader/loader.hpp"
#include "src/tile-atlas.hpp"
namespace floormat {
void test_app::test_loader()
{
(void)loader.tile_atlases("wall.json", pass_mode::blocked);
(void)loader.tile_atlases("floor.json", pass_mode::pass);
fm_assert(loader.tile_atlas("texel")->pass_mode() == pass_mode::blocked);
fm_assert(loader.tile_atlas("metal1")->pass_mode() == pass_mode::pass);
loader.sceneries();
for (StringView name : loader.anim_atlas_list())
loader.anim_atlas(name);
}
} // namespace floormat
|