2021-05-18 23:03:42 +02:00
|
|
|
#include "common.hpp"
|
2019-03-21 20:18:31 +01:00
|
|
|
#include "features.hpp"
|
2021-05-18 23:03:42 +02:00
|
|
|
#include "logger.hpp"
|
2019-03-21 20:18:31 +01:00
|
|
|
#include "script.hpp"
|
|
|
|
|
2021-05-19 14:35:30 +02:00
|
|
|
#include "backend/backend.hpp"
|
|
|
|
|
2019-03-21 20:18:31 +01:00
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void features::run_tick()
|
|
|
|
{
|
2021-05-19 14:35:30 +02:00
|
|
|
backend::loop();
|
2019-03-21 20:18:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void features::script_func()
|
|
|
|
{
|
|
|
|
while (true)
|
|
|
|
{
|
2020-02-22 18:37:42 -05:00
|
|
|
TRY_CLAUSE
|
|
|
|
{
|
|
|
|
run_tick();
|
|
|
|
}
|
|
|
|
EXCEPT_CLAUSE
|
2019-03-21 20:18:31 +01:00
|
|
|
script::get_current()->yield();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|