rodecomp/Source/Contents/WorldObjects.cpp
2026-10-24 00:35:19 +00:00

26 lines
678 B
C++

#include "Contents/RenderObject.h"
#include "Contents/WorldObjects.h"
// OFFSET: 0x00ACA4E0
// FUNCTION: fn_17692
void WorldObjects::Remove(CRenderObject* object) {
for (auto entry = this->objects.begin(); entry != this->objects.end(); ++entry) {
if (*entry == object) {
delete object;
this->objects.erase(entry);
return;
}
}
}
// OFFSET: 0x00ACA320
// FUNCTION: fn_17691
// The continuation clears borrowed actor/item indexes, movement state and other world collections.
void WorldObjects::Clear() {
auto entry = this->objects.begin();
while (entry != this->objects.end()) {
delete *entry;
entry = this->objects.erase(entry);
}
}