18 #ifndef HEADER_SUPERTUX_SQUIRREL_SQUIRREL_VM_HPP 19 #define HEADER_SUPERTUX_SQUIRREL_SQUIRREL_VM_HPP 35 HSQUIRRELVM get_vm()
const {
return m_vm; }
37 void begin_table(
const char* name);
38 void end_table(
const char* name);
45 bool has_property(
const char* name);
47 void store_bool(
const char* name,
bool val);
48 void store_int(
const char* name,
int val);
49 void store_float(
const char* name,
float val);
50 void store_string(
const char* name,
const std::string& val);
51 void store_object(
const char* name,
const HSQOBJECT& val);
53 bool get_bool(
const char* name,
bool& val);
54 bool get_int(
const char* name,
int& val);
55 bool get_float(
const char* name,
float& val);
56 bool get_string(
const char* name, std::string& val);
58 bool read_bool(
const char* name);
59 int read_int(
const char* name);
60 float read_float(
const char* name);
61 std::string read_string(
const char* name);
63 void get_table_entry(
const std::string& name);
64 void get_or_create_table_entry(
const std::string& name);
65 void delete_table_entry(
const char* name);
66 void rename_table_entry(
const char* oldname,
const char* newname);
67 std::vector<std::string> get_table_keys();
69 HSQOBJECT create_thread();
void create_empty_table(const char *name)
Creates an empty table with given name.
Definition: squirrel_vm.cpp:60
Basic wrapper around HSQUIRRELVM with some utility functions, not to be confused with SquirrelVirtual...
Definition: squirrel_vm.hpp:29