Toast Engine
Loading...
Searching...
No Matches
core_types.hpp File Reference

Base types for the asset system. More...

#include <atomic>
#include <nlohmann/json.hpp>
#include <toast/export.hpp>
#include <toast/uid.hpp>
#include <toml++/toml.hpp>
#include <vector>
Include dependency graph for core_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  assets::ISaveable
 Inherit from this class to allow an asset to be saved. More...
class  assets::Asset
 Base class for all engine assets. More...
class  assets::HandleBase
 Base class for type-erased asset handles. More...
class  assets::Handle< T >
 Type-safe smart pointer for assets. More...

Typedefs

using json_t = nlohmann::json

Enumerations

enum class  assets::SaveMode : uint8_t { editor , game }

Detailed Description

Base types for the asset system.

Author
Xein
Date
10 Jun 2026

Defines Asset (refcounted base), ISaveable (serialization interface), Handle<T> (typed smart pointer), and SaveMode (editor vs game)

Enumeration Type Documentation

◆ SaveMode

enum class assets::SaveMode : uint8_t
strong
Enumerator
editor 

human-readable text format; used in the editor

game 

compact binary format; used at runtime