mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 22:40:52 +01:00
33 lines
992 B
C++
33 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);
|
||
|
|
}
|