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

54 lines
762 B
C++
Raw Normal View History

2019-03-21 20:18:31 +01:00
#include "features.hpp"
#include "features/custom_guns.hpp"
#include "features/protections.hpp"
#include "features/self.hpp"
#include "features/sys.hpp"
#include "features/tunables.hpp"
#include "features/util.hpp"
#include "features/vehicle.hpp"
#include "features/world.hpp"
2019-03-21 20:18:31 +01:00
#include "script.hpp"
namespace big
{
void features::run_tick()
{
// System
sys::loop();
// Custom Guns
custom_guns::loop();
// Protections
protections::loop();
// Self
self::loop();
// Tunable
tunables::loop();
// Util
util::loop();
// Vehicle
vehicle::loop();
// World
world::loop();
2019-03-21 20:18:31 +01:00
}
void features::script_func()
{
while (true)
{
TRY_CLAUSE
{
run_tick();
}
EXCEPT_CLAUSE
2019-03-21 20:18:31 +01:00
script::get_current()->yield();
}
}
}