Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
data_schema_codegen.hpp
Go to the documentation of this file.
1
7
8
#pragma once
9
10
#include "
core_types.hpp
"
11
12
#include <filesystem>
13
#include <string>
14
#include <
toast/uid.hpp
>
15
#include <vector>
16
17
namespace
assets {
18
19
class
Schema
;
20
21
struct
NamedSchemaEntry
{
22
toast::UID
uid;
23
std::string name;
// PascalCase
24
Handle<Schema>
handle;
25
};
26
30
auto
namedSchemaEntries() -> std::vector<NamedSchemaEntry>;
31
35
auto
generateDataSchemaLuaStubs(
const
std::filesystem::path& out_path) -> bool;
36
37
}
assets::Handle
Type-safe smart pointer for assets.
Definition
core_types.hpp:149
assets::Schema
Asset wrapping a parsed .schema.json.
Definition
schema.hpp:60
core_types.hpp
Base types for the asset system.
assets::NamedSchemaEntry
Definition
data_schema_codegen.hpp:21
toast::UID
Definition
uid.hpp:20
uid.hpp
Unique identifier for everything that exists in our engine.
engine
src
toast
assets
data_schema_codegen.hpp
Generated by
1.17.0