Static members for the records "cache"
| 151 | |
| 152 | // Static members for the records "cache" |
| 153 | void |
| 154 | Records::Add(const Records *rec) |
| 155 | { |
| 156 | CAssert(rec->Loaded()); |
| 157 | auto it = _gRecords.find(rec->Name()); |
| 158 | |
| 159 | CAssert(it == _gRecords.end()); |
| 160 | _gRecords[rec->Name()] = rec; |
| 161 | } |
| 162 | |
| 163 | const Records * |
| 164 | Records::Lookup(const cripts::string_view name) |