mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:07:43 +00:00
Bug fixes and more CStateManager imps
This commit is contained in:
@@ -47,6 +47,22 @@ void CObjectList::RemoveObject(TUniqueId uid)
|
||||
--x200a_count;
|
||||
}
|
||||
|
||||
const CEntity* CObjectList::operator[](size_t i) const
|
||||
{
|
||||
const SObjectListEntry& ent = x0_list[i];
|
||||
if (ent.entity->x30_26_scriptingBlocked)
|
||||
return nullptr;
|
||||
return ent.entity;
|
||||
}
|
||||
|
||||
CEntity* CObjectList::operator[](size_t i)
|
||||
{
|
||||
SObjectListEntry& ent = x0_list[i];
|
||||
if (ent.entity->x30_26_scriptingBlocked)
|
||||
return nullptr;
|
||||
return ent.entity;
|
||||
}
|
||||
|
||||
const CEntity* CObjectList::GetObjectById(TUniqueId uid) const
|
||||
{
|
||||
if (!uid)
|
||||
|
||||
Reference in New Issue
Block a user