0x004C4ACA
| 10 | { |
| 11 | // 0x004C4ACA |
| 12 | void WallObject::load(const LoadedObjectHandle& handle, std::span<const std::byte> data, ObjectManager::DependentObjects*) |
| 13 | { |
| 14 | auto remainingData = data.subspan(sizeof(WallObject)); |
| 15 | |
| 16 | // Load object name string |
| 17 | auto strRes = ObjectManager::loadStringTable(remainingData, handle, 0); |
| 18 | name = strRes.str; |
| 19 | remainingData = remainingData.subspan(strRes.tableLength); |
| 20 | |
| 21 | // Load images |
| 22 | auto imageRes = ObjectManager::loadImageTable(remainingData); |
| 23 | sprite = imageRes.imageOffset; |
| 24 | |
| 25 | // Ensure we've loaded the entire object |
| 26 | assert(remainingData.size() == imageRes.tableLength); |
| 27 | } |
| 28 | |
| 29 | // 0x004CAF0 |
| 30 | void WallObject::unload() |
no test coverage detected