const LevelUnit* get_unit(const LevelResource* lr, uint32_t i) { CE_ASSERT(i < num_units(lr), "Index out of bounds"); const LevelUnit* begin = (LevelUnit*)((char*)lr + lr->units_offset); return &begin[i]; }
StringId64 get_unit_id(const PackageResource* pr, uint32_t i) { CE_ASSERT(i < num_units(pr), "Index out of bounds"); StringId64* begin = (StringId64*) ((char*)pr + pr->units_offset); return begin[i]; }