#include "classes.h" // 0040c3a0 uint32_t EntityPtr::Ref() { uint32_t *in_ECX; return *in_ECX; } // 004cf1d0 void EntityPtr::Set(Entity *entity) { Entity *newEntity; newEntity = entity; if (*GHIDRA_CAST(this) != entity) { if (*GHIDRA_CAST(this) != GHIDRA_CAST(0x0)) { entity = GHIDRA_CAST(this); msvc::multiset::erase(&entity); } *GHIDRA_CAST(this) = newEntity; if (newEntity != GHIDRA_CAST(0x0)) { msvc::multiset::insert(this); } } return; } // 006b5b50 void EntityPtr::SetReference(EntityPtr *ptr, Entity *entity) { EntityPtr *local_8; local_8 = ptr; if (*GHIDRA_CAST(ptr) != 0) { msvc::multiset::erase(&local_8); } *GHIDRA_CAST(ptr) = entity; if (entity != GHIDRA_CAST(0x0)) { msvc::multiset::insert(ptr); } return; } // 00872050 void EntityPtr::SetReference(Entity *entity) { EntityPtr *selfKey; if (*GHIDRA_CAST(this) != 0) { selfKey = this; msvc::multiset::erase(&selfKey); } *GHIDRA_CAST(this) = entity; if (entity != GHIDRA_CAST(0x0)) { msvc::multiset::insert(this); } return; } // 00a0fe80 EntityPtr * EntityPtr::clear() { *GHIDRA_CAST(&(*GHIDRA_CAST((GHIDRA_CAST(&(this[1])) + 0x1)))) = 0; *GHIDRA_CAST(this) = 0; return this; }