Files
isaac-port/generated-src/entity_ptr.cpp
T
shweetandClaude Opus 5.5 9d4d4f5c64 Build 29: zero-length placeholder structs, generated-src with standard types
--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:41:34 -05:00

69 lines
1.5 KiB
C++

#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<Entity **>(this) != entity) {
if (*GHIDRA_CAST<Entity **>(this) != GHIDRA_CAST<Entity *>(0x0)) {
entity = GHIDRA_CAST<Entity *>(this);
msvc::multiset<unsigned_int>::erase(&entity);
}
*GHIDRA_CAST<Entity **>(this) = newEntity;
if (newEntity != GHIDRA_CAST<Entity *>(0x0)) {
msvc::multiset<unsigned_int>::insert(this);
}
}
return;
}
// 006b5b50
void EntityPtr::SetReference(EntityPtr *ptr, Entity *entity)
{
EntityPtr *local_8;
local_8 = ptr;
if (*GHIDRA_CAST<int *>(ptr) != 0) {
msvc::multiset<unsigned_int>::erase(&local_8);
}
*GHIDRA_CAST<Entity **>(ptr) = entity;
if (entity != GHIDRA_CAST<Entity *>(0x0)) {
msvc::multiset<unsigned_int>::insert(ptr);
}
return;
}
// 00872050
void EntityPtr::SetReference(Entity *entity)
{
EntityPtr *selfKey;
if (*GHIDRA_CAST<int *>(this) != 0) {
selfKey = this;
msvc::multiset<unsigned_int>::erase(&selfKey);
}
*GHIDRA_CAST<Entity **>(this) = entity;
if (entity != GHIDRA_CAST<Entity *>(0x0)) {
msvc::multiset<unsigned_int>::insert(this);
}
return;
}
// 00a0fe80
EntityPtr * EntityPtr::clear()
{
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = 0;
*GHIDRA_CAST<uint32_t *>(this) = 0;
return this;
}