blob: b95b1761397925825b90f48bf99a603493d24956 (
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
25
26
27
28
29
30
|
#include "app.hpp"
#include "compat/assert.hpp"
#include "src/tile-defs.hpp"
#include "src/wall-atlas.hpp"
#include "loader/loader.hpp"
#include "loader/wall-info.hpp"
namespace floormat {
void test_app::test_wall_atlas2()
{
using enum Wall::Direction_;
Debug{} << "test_wall2: start";
static constexpr auto name = "concrete1"_s;
auto& a = *loader.wall_atlas(name, false);
fm_assert(a.name() == name);
fm_assert(a.info().depth == 20);
fm_assert(a.raw_frame_array().size() >= 3);
fm_assert(!a.direction(W));
fm_assert(a.direction(N));
fm_assert(&a.calc_direction(W) == a.direction(N));
fm_assert(&a.calc_direction(N) == a.direction(N));
fm_assert(a.frames(N, Wall::Group_::wall).size() >= 3);
fm_assert(a.group(N, Wall::Group_::top)->is_defined);
fm_assert(a.frames(N, Wall::Group_::wall)[0].size == Vector2ui(Vector2i{iTILE_SIZE.x(), iTILE_SIZE.z()}));
Debug{} << "test_wall2: end";
}
} // namespace floormat
|