about summary refs log tree commit diff stats
path: root/data/maps/the_unkempt/rooms/V Keyholder.txtpb
blob: 8a4941d132334076650828f83abbea7a4586f375 (generated by cgit-pink 1.4.1 (git 2.36.1) at 2026-02-14 05:06:14 +0000
> public System { public: static constexpr SystemKey Key = SystemKey::Script; explicit ScriptSystem(Game& game); void tick(double dt) override; void runScript(std::string mapName, std::string scriptName); void runDebugScript(std::string script); private: struct Script { std::unique_ptr<sol::thread> runner; std::unique_ptr<sol::coroutine> callable; }; Game& game_; sol::state engine_; std::list<Script> scripts_; std::set<std::string> loadedScripts_; }; #endif /* end of include guard: SCRIPT_SYSTEM_H_FD8A95B3 */