>>107509852
Take your own conclusions:
w := get_current_workspace();
table := get_type_table(w);
entity_type_names: [..] string;
for table {
if it.type != .STRUCT continue;
info_struct := cast(*Type_Info_Struct) it;
if is_subclass_of(it, "Entity") {
array_add(*entity_type_names, info_struct.name);
}
}
Also:
map :: (array: [] $T, f: (T) -> $S) -> [..] S {
results: [..] S;
for array array_add(*results, f(it));
return results;
}
And this one too:
quick_sort(to_sort, x => x.count);
Those are all valid Jai, by the way.