示例#1
0
	const LevelSound* get_sound(const LevelResource* lr, uint32_t i)
	{
		CE_ASSERT(i < num_sounds(lr), "Index out of bounds");
		const LevelSound* begin = (LevelSound*)((char*)lr + lr->sounds_offset);
		return &begin[i];
	}
	StringId64 get_sound_id(const PackageResource* pr, uint32_t i)
	{
		CE_ASSERT(i < num_sounds(pr), "Index out of bounds");
		StringId64* begin = (StringId64*) ((char*)pr + pr->sounds_offset);
		return begin[i];
	}