|
Toast Engine
|
Public Types | |
| using | RawLoader = std::function<std::unique_ptr<Asset>(std::vector<uint8_t>)> |
| using | TomlLoader = std::function<std::unique_ptr<Asset>(toml::table)> |
| using | SchemaTomlLoader = std::function<std::unique_ptr<Asset>(toml::table, Handle<Schema>)> |
Static Public Member Functions | |
| static void | init () |
| static void | registerRaw (std::string_view type, RawLoader loader) |
| static void | registerToml (std::string_view type, TomlLoader loader) |
| static void | registerSchemaToml (std::string_view type, SchemaTomlLoader loader) |
| static auto | hasRaw (std::string_view type) -> bool |
| static auto | hasToml (std::string_view type) -> bool |
| static auto | hasSchemaToml (std::string_view type) -> bool |
| static auto | createRaw (std::string_view type, std::vector< uint8_t > data) -> std::unique_ptr< Asset > |
| static auto | createToml (std::string_view type, toml::table table) -> std::unique_ptr< Asset > |
| static auto | createSchemaToml (std::string_view type, toml::table table, Handle< Schema > schema) -> std::unique_ptr< Asset > |
| static void | registerLuaName (std::string_view type, std::string_view lua_name) |
| static auto | registeredLuaNames () -> const std::unordered_map< std::string, std::string > & |