|
@ -57,7 +57,7 @@ namespace scripting { |
|
|
virtual std::optional<script_value> var_by_idx(int32_t idx) = 0; |
|
|
virtual std::optional<script_value> var_by_idx(int32_t idx) = 0; |
|
|
virtual script_value resolve(const std::string& name) = 0; |
|
|
virtual script_value resolve(const std::string& name) = 0; |
|
|
virtual std::variant<script_value, std::vector<script_error>> executeAtOnce(std::string code) = 0; |
|
|
virtual std::variant<script_value, std::vector<script_error>> executeAtOnce(std::string code) = 0; |
|
|
virtual std::vector<script_error> prepare(std::string code) = 0; |
|
|
|
|
|
|
|
|
virtual std::vector<script_error> prepare(std::string code, bool repeating = true) = 0; |
|
|
virtual std::optional<script_error> stepOnce() = 0; |
|
|
virtual std::optional<script_error> stepOnce() = 0; |
|
|
virtual ~UserScript() = default; |
|
|
virtual ~UserScript() = default; |
|
|
}; |
|
|
}; |
|
|