F4MP/tiltedcode/Code/client/Games/Skyrim/Forms/TESObjectCELL.cpp
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

32 lines
992 B
C++

#include <Forms/TESObjectCELL.h>
#include <TESObjectREFR.h>
Vector<TESObjectREFR*> TESObjectCELL::GetRefsByFormTypes(const Vector<FormType>& aFormTypes) const noexcept
{
Vector<TESObjectREFR*> references{};
if (!refData.refArray)
return references;
for (uint32_t i = 0; i < refData.capacity; i++)
{
TESObjectREFR* pRef = refData.refArray[i].Get();
if (!pRef)
continue;
for (FormType formType : aFormTypes)
{
if (pRef->baseForm->formType == formType)
references.push_back(pRef);
}
}
return references;
}
void TESObjectCELL::GetCOCPlacementInfo(NiPoint3* aOutPos, NiPoint3* aOutRot, bool aAllowCellLoad) noexcept
{
TP_THIS_FUNCTION(TGetCOCPlacementInfo, void, TESObjectCELL, NiPoint3*, NiPoint3*, bool);
POINTER_SKYRIMSE(TGetCOCPlacementInfo, s_getCOCPlacementInfo, 19075);
TiltedPhoques::ThisCall(s_getCOCPlacementInfo, this, aOutPos, aOutRot, aAllowCellLoad);
}