Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
state.hpp File Reference

A sandboxed Lua state: scripts run without files, processes nor debug access, and their errors never stop the game. More...

#include <aegis2d/script/export.hpp>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <memory>
#include <optional>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  aegis2d::script::ScriptError
 Where and why a script failed. More...
 
class  aegis2d::script::ScriptState
 A Lua state for the game's scripts, sandboxed. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::script
 Entity behaviors in Lua, so that new enemies and patterns need no recompilation.
 

Functions

AEGIS2D_SCRIPT_EXPORT std::string aegis2d::script::to_string (const ScriptError &error)
 Formats an error as a log line shows it.
 

Detailed Description

A sandboxed Lua state: scripts run without files, processes nor debug access, and their errors never stop the game.