blob: b45d4f0e23c2672d0558c1a5fc75c00b858c7ff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "app.hpp"
#include "compat/assert.hpp"
#include "loader/loader.hpp"
#include "src/tile-atlas.hpp"
#include "loader/wall-info.hpp"
namespace floormat {
void test_app::test_loader()
{
(void)loader.tile_atlases("floor.json");
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);
(void)loader.wall_atlas_list();
#if 0
for (const auto& info : loader.wall_atlas_list())
(void)loader.wall_atlas(info.name);
#endif
}
} // namespace floormat
|