2021-11-01 18:20:07 +00:00
|
|
|
#pragma once
|
2022-09-29 14:16:06 +00:00
|
|
|
#include "flecs.h"
|
2021-11-01 18:20:07 +00:00
|
|
|
|
|
|
|
static inline float safe_dt(ecs_iter_t *it) {
|
|
|
|
return zpl_min(it->delta_time, 0.03334f);
|
|
|
|
}
|
|
|
|
|
2023-01-23 10:51:12 +00:00
|
|
|
#define TICK_VAR(var) (var) = zpl_max((var)-1, 0)
|
|
|
|
|
2021-11-01 18:20:07 +00:00
|
|
|
void SystemsImport(ecs_world_t *ecs);
|