| 161 | } |
| 162 | |
| 163 | const Records * |
| 164 | Records::Lookup(const cripts::string_view name) |
| 165 | { |
| 166 | auto it = _gRecords.find(name); |
| 167 | |
| 168 | if (it != _gRecords.end()) { |
| 169 | CAssert(it->second->Loaded()); |
| 170 | return it->second; |
| 171 | } |
| 172 | |
| 173 | return nullptr; |
| 174 | } |
| 175 | |
| 176 | } // namespace cripts |