17 #ifndef HEADER_SUPERTUX_SQUIRREL_SQUIRREL_VIRTUAL_MACHINE_HPP 18 #define HEADER_SUPERTUX_SQUIRREL_SQUIRREL_VIRTUAL_MACHINE_HPP 24 #include "squirrel/squirrel_vm.hpp" 25 #include "util/currenton.hpp" 38 void wait_for_seconds(HSQUIRRELVM vm,
float seconds);
39 void update(
float dt_sec);
48 void update_debugger();
53 std::unique_ptr<SquirrelThreadQueue> m_screenswitch_queue;
54 std::unique_ptr<SquirrelScheduler> m_scheduler;
Definition: squirrel_virtual_machine.hpp:30
void wakeup_screenswitch()
wakes up threads waiting for a screen switch event
Definition: squirrel_virtual_machine.cpp:163
This class keeps a list of squirrel threads that are scheduled for a certain time.
Definition: squirrel_scheduler.hpp:28
A 'Currenton' allows access to the currently active instance of a class via the static current() func...
Definition: currenton.hpp:30
Basic wrapper around HSQUIRRELVM with some utility functions, not to be confused with SquirrelVirtual...
Definition: squirrel_vm.hpp:29
void wait_for_screenswitch(HSQUIRRELVM vm)
adds thread waiting for a screen switch event
Definition: squirrel_virtual_machine.cpp:157
Keeps a list of SquirrelThreads that wait for a wakeup event.
Definition: squirrel_thread_queue.hpp:26