λ61
Loading...
Searching...
No Matches
IBasicScriptEngine.hpp
Go to the documentation of this file.
1/*
2* Copyright (C) 2025 Tetex7
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18//
19// Created by tete on 06/01/2025.
20//
21#pragma once
22
23#ifndef L61_IBASICSCRIPTENGINE_HPP
24#define L61_IBASICSCRIPTENGINE_HPP
26
27namespace l61::ScriptEngine
28{
30 {
31 l61_interface_call(protected, sol::state& getLuaCtx());
32
38 l61_interface_call(public, sol::protected_function_result runCodeBlock(const std::string& luaCode));
39
45 l61_interface_call(public, void specialRun(const std::function<void(sol::state&)>& func));
46
51 l61_interface_call(public, void attachDebugger(AbstractScriptDebugger* debugger));
52
57 l61_interface_call(public, void exec(const std::string& code));
58
60 };
61}
62
63#endif //L61_IBASICSCRIPTENGINE_HPP
#define l61_interface_call(access_level, sig)
This denotes that a call within an interface is a pure virtual.
Definition PseudoKeywords.hpp:52
#define l61_interface
denotes that I class is an interface with little to no implementation
Definition PseudoKeywords.hpp:44
#define l61_interface_deconstructor(type)
Create a standard virtual destructor for your interface.
Definition PseudoKeywords.hpp:58
Definition defs.hpp:171
l61_abstract_class AbstractScriptDebugger
Definition defs.hpp:172
l61_interface IBasicScriptEngine
Definition IBasicScriptEngine.hpp:30