| 120 | |
| 121 | template<> |
| 122 | EntityBase* get(EntityId id) |
| 123 | { |
| 124 | EntityBase* result = nullptr; |
| 125 | if (enumValue(id) < Limits::kMaxEntities) |
| 126 | { |
| 127 | return &rawEntities()[enumValue(id)]; |
| 128 | } |
| 129 | return result; |
| 130 | } |
| 131 | |
| 132 | constexpr size_t getSpatialIndexOffset(const World::Pos2& loc) |
| 133 | { |
no test coverage detected