resonance 1.0.1
Loading...
Searching...
No Matches
scripteval.h
Go to the documentation of this file.
1#pragma once
2
3#include "script/cxx/object.h"
4
5class HxStr;
6class PyShell;
7namespace Py {
8class Tuple;
9} // namespace Py
10
20
31extern PyShell *g_pPyShell;
32
43Py::Object EvalScriptTemplate(int nTemplate, ...);
44
54
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Host of the embedded Python interpreter, and the one object the game runs script through.
Definition pyshell.h:22
Reference-counted handle on any Python object, and the root of the PyCXX object hierarchy.
Definition object.h:42
Handle on a Python tuple.
Definition tuple.h:31
C++ wrappers for the embedded Python interpreter's objects, types, and extension modules.
Definition attributeerror.h:7
Py::Object EvalScriptExpression(const HxStr &expression)
Run one piece of script text as an expression and take its value.
Py::Object CallScriptFunction(const HxStr &name, Py::Tuple args)
Call a function the scripts define at module level, by name.
PyShell * g_pPyShell
Single interpreter host, null until GetPythonScriptHost() creates it.
Py::Object EvalScriptTemplate(int nTemplate,...)
Call one registered script template as an expression and take its value.