1
artifact-tracker/Source/ArtifactTrackerDLL/src/ArtifactTracker.h

55 lines
1.6 KiB
C
Raw Normal View History

#pragma once
namespace ArtifactTracker
{
2022-06-30 10:31:01 +00:00
extern bool g_bLoaded;
extern bool g_bSaveLoaded;
2022-06-30 10:31:01 +00:00
extern bool g_bHomeContainer;
extern bool g_bBookShelf;
extern bool g_bTakeAll;
extern bool g_bNotifyNewArtifact;
extern std::uint32_t g_bTakeAllCount;
2022-06-30 10:31:01 +00:00
extern RE::TESBoundObject* g_cellContainer;
extern RE::BGSListForm* g_listNew;
extern RE::BGSListForm* g_listStored;
extern RE::BGSListForm* g_listFound;
extern RE::BGSListForm* g_persistentStorage;
extern RE::BGSKeyword* g_homeKeyword;
extern std::unordered_map<RE::FormID, RE::TESForm*> g_artifactMap;
extern std::unordered_set<RE::FormType> g_artifactFormTypes;
extern std::unordered_set<RE::FormType> g_artifactAllFormTypes;
2022-06-30 10:31:01 +00:00
extern std::unordered_map<RE::FormID, RE::TESObjectREFR*> g_persistentMap;
extern RE::TESObjectREFR* g_cellStorage;
extern const SKSE::LoadInterface* g_loadInterface;
bool Init(bool bKID = false);
bool IsArtifact(const RE::TESForm* a_item);
RE::TESForm* GetArtifactByID(const RE::FormID a_formID);
2022-06-30 10:31:01 +00:00
bool IsHome();
2022-06-30 10:31:01 +00:00
void OnGameLoad();
void SetContainerMode(const bool bOpening);
void OnCellEnter(const RE::FormID a_formID);
void OnCellEnter(const RE::BGSLocation* location, const RE::TESObjectCELL* cell);
2022-06-30 10:31:01 +00:00
void SyncCellStorage(const RE::TESObjectREFR* a_ignoreRef = nullptr);
2022-06-30 10:31:01 +00:00
void OnContainerChanged(const RE::TESContainerChangedEvent* a_event, RE::TESForm* form);
void AddRefArtifactsToList(RE::TESForm* a_refOrList, RE::BGSListForm* a_targetList, RE::BGSListForm* a_excludeList = NULL);
void OnLocationChange();
void RescanFoundArtifacts();
void RescanStoredArtifacts();
void RescanNewArtifacts();
}