Added RegisterPersistentStorage
This commit is contained in:
parent
11311399ce
commit
adb77dd4d9
Binary file not shown.
@ -73,6 +73,15 @@ namespace Papyrus::PapyrusFunctions
|
||||
}
|
||||
}
|
||||
|
||||
inline void RegisterPersistentStorage(RE::StaticFunctionTag*,
|
||||
RE::TESObjectREFR* ref)
|
||||
{
|
||||
if (ref) {
|
||||
ArtifactTracker::g_persistentStorage->AddForm(ref);
|
||||
ArtifactTracker::g_persistentMap[ref->formID] = ref;
|
||||
}
|
||||
}
|
||||
|
||||
inline void Bind(VM& a_vm)
|
||||
{
|
||||
BIND(Load);
|
||||
@ -93,5 +102,7 @@ namespace Papyrus::PapyrusFunctions
|
||||
logger::info("Registered GetPlayerFollowers"sv);
|
||||
BIND(GetCurrentContainer);
|
||||
logger::info("Registered GetCurrentContainer"sv);
|
||||
BIND(RegisterPersistentStorage);
|
||||
logger::info("Registered RegisterPersistentStorage"sv);
|
||||
}
|
||||
}
|
||||
|
@ -183,3 +183,5 @@ ObjectReference function GetCurrentContainer() native global
|
||||
function SyncCellStorage() native global
|
||||
|
||||
Actor[] function GetPlayerFollowers() native global
|
||||
|
||||
function RegisterPersistentStorage(ObjectReference ref) native global
|
||||
|
Loading…
Reference in New Issue
Block a user