1
Fork 0

Added RegisterPersistentStorage

ae-1.6.629
Eddoursul 2 years ago
parent 11311399ce
commit adb77dd4d9
  1. BIN
      Scripts/ArtifactTrackerPlayer.pex
  2. 11
      Source/ArtifactTrackerDLL/src/PapyrusFunctions.h
  3. 2
      Source/Scripts/ArtifactTrackerPlayer.psc

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…
Cancel
Save