| 64 | }; |
| 65 | |
| 66 | void* QueryDescription::GetFirstMatchingComponent(std::size_t componentSize, bool isProxy) |
| 67 | { |
| 68 | for (auto const& cls : EntityStorages.values()) { |
| 69 | if (cls.Storage->InstanceToPageMap.size() > 0) { |
| 70 | auto const& instPage = cls.Storage->InstanceToPageMap.values()[0]; |
| 71 | auto componentIdx = cls.GetComponentIndex(0); |
| 72 | se_assert(cls.Storage->Components.size() >= 1); |
| 73 | return cls.Storage->GetComponent(instPage, componentIdx, componentSize, isProxy); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | return {}; |
| 78 | } |
| 79 | |
| 80 | void PrintRange(EntitySystemHelpersBase& eh, char const* name, std::span<ComponentTypeIndex const> inds) |
| 81 | { |
nothing calls this directly
no test coverage detected