This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/BigBaseV2/src/features.cpp
2021-05-19 14:35:30 +02:00

28 lines
345 B
C++

#include "common.hpp"
#include "features.hpp"
#include "logger.hpp"
#include "script.hpp"
#include "backend/backend.hpp"
namespace big
{
void features::run_tick()
{
backend::loop();
}
void features::script_func()
{
while (true)
{
TRY_CLAUSE
{
run_tick();
}
EXCEPT_CLAUSE
script::get_current()->yield();
}
}
}