blob: 37aaa1996463d88dab7bcdc3699a668c904b038d (
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
|
#pragma once
#include "atlas-loader-fwd.hpp"
#include <memory>
namespace floormat { struct scenery_cell; struct scenery_proto; }
namespace floormat::loader_detail {
template<> struct atlas_loader_traits<scenery_proto>
{
using Atlas = scenery_proto;
using Cell = scenery_cell;
using Self = atlas_loader_traits<Atlas>;
using Storage = atlas_storage<Atlas, Self>;
static StringView loader_name();
static const Optional<Atlas>& atlas_of(const Cell& x);
static Optional<Atlas>& atlas_of(Cell& x);
static StringView name_of(const Cell& x);
static String& name_of(Cell& x);
static void atlas_list(Storage& st);
static Cell make_invalid_atlas(Storage& st);
static Optional<scenery_proto> make_atlas(StringView name, const Cell& c);
static Optional<Cell> make_cell(StringView name);
};
} // namespace floormat::loader_detail
|