Blank example
#include <stellarlib/stellarlib.hpp>
#include <SDL3/SDL_log.h>
#include <cstdint>
#include <cstdlib>
#include <string>
using namespace stellarlib;
[[nodiscard]]
auto main([[maybe_unused]] const std::int32_t argc, [[maybe_unused]] char **argv)
-> std::int32_t
{
SDL_Log(
"%s", std::get<0>(world.operator[]<std::string>(world.
spawn(std::string{
"hello, world"}))).c_str());
return EXIT_SUCCESS;
}
Stores and exposes operations on entities and components.
Definition world.hpp:57
constexpr auto spawn(T &&...components) noexcept
Spawns an entity with the provided components.
Definition world.hpp:105