Files
simian/include/SceneLoader.h
T
nick d6f2cc1ea3
CI / build-and-test (push) Successful in 2m13s
Sync Docs to Gitea Wiki / Sync docs to Gitea wiki (push) Successful in 10s
feat: example entity script
2026-03-08 21:48:40 +13:00

26 lines
767 B
C++

#pragma once
#include "entt.hpp"
#include <string>
class ModelManager;
class ShaderManager;
// Set global context used by scene loading
void SetSceneContext(entt::registry* registry, ModelManager* modelManager, ShaderManager* shaderManager);
// Load a scene from a TOML-like file. Returns the root entity (or entt::null on failure).
entt::entity LoadSceneFromFile(const std::string& path, bool clearExisting);
// Save the current scene to a TOML-like file. Returns true on success.
bool SaveSceneToFile(const std::string& path);
// Clear all entities from the registry
void ClearScene();
// Scene script path helpers
void SetSceneScriptPath(const std::string& path);
const std::string& GetSceneScriptPath();
bool ConsumeSceneScriptPath(std::string& outPath);