enderalse/source/fs.dll/skse64/skse64/PapyrusLocation.cpp

20 lines
469 B
C++

#include "PapyrusLocation.h"
#include "GameForms.h"
namespace papyrusLocation
{
BGSLocation * GetParent(BGSLocation* thisLocation)
{
return thisLocation ? thisLocation->parentLoc : NULL;
}
}
#include "PapyrusVM.h"
#include "PapyrusNativeFunctions.h"
void papyrusLocation::RegisterFuncs(VMClassRegistry* registry)
{
registry->RegisterFunction(
new NativeFunction0<BGSLocation, BGSLocation*>("GetParent", "Location", papyrusLocation::GetParent, registry));
}