feat: clean entities

This commit is contained in:
Tsubasa6848
2024-01-05 20:18:40 +08:00
Unverified
parent 47579ff019
commit 57f70fac0c
8 changed files with 110 additions and 211 deletions
+10 -2
View File
@@ -6,8 +6,16 @@ extern ll::Logger logger;
extern void RegisterCommands();
extern void UnregisterCommands();
static std::shared_ptr<ll::schedule::task::Task<ll::chrono::GameTimeClock>> auto_clean_task;
static std::shared_ptr<ll::schedule::task::Task<ll::chrono::GameTimeClock>> check_clean_task;
namespace Cleaner {
extern void CleanTask();
extern void AutoCleanTask();
extern void CleanTask(int time, int announce_time);
extern void AutoCleanTask(int seconds);
extern void CheckCleanTask(int max_entities, float min_tps);
}
namespace TPS {
extern void CaculateTPS();
extern float getCurrentTps();
extern float getAverageTps();
}