add a static assert to jobs or scene manager to ensure classes don't grow too big, encouraging breaking down classes into components that do one thing and one thing only by keeping them smol.
something like
template
constexpr bool WithinLimits() {
return sizeof(T) < max_class_limit;
}
static_assert(WithinLimits(), "Class too big for system");
?
add a static assert to jobs or scene manager to ensure classes don't grow too big, encouraging breaking down classes into components that do one thing and one thing only by keeping them smol.
something like template
constexpr bool WithinLimits() {
return sizeof(T) < max_class_limit;
}
static_assert(WithinLimits(), "Class too big for system");
?