9 "LocTypeDungeon",
"LocSetCave",
"LocSetCaveIce",
"LocTypeDwarvenAutomatons",
10 "LocTypeAnimalDen",
"LocTypeBanditCamp",
"LocTypeDragonPriestLair",
"LocTypeDraugrCrypt",
11 "LocTypeFalmerHive",
"LocTypeForswornCamp",
"LocTypeGiantCamp",
"LocTypeHagravenNest",
12 "LocTypeVampireLair",
"LocTypeWarlockLair",
"LocTypeWerewolfLair"};
17 static bool IsDungeon(
const RE::TESObjectCELL *a_cell)
21 if (
const auto loc = a_cell->GetLocation(); loc && loc->HasAnyKeywordByEditorID(
is_a_dungeon) && a_cell->IsInteriorCell())
31 static bool IsJail(RE::TESObjectCELL *a_cell)
35 const auto loc = a_cell->GetLocation();
36 if (
const auto key = RE::TESForm::LookupByEditorID<RE::BGSKeyword>(
"LocTypeJail"); key && loc && loc->HasKeyword(key))
48 std::vector<RE::Actor*> result;
52 for (
const auto& ref : a_cell->references)
56 auto actor = ref->As<RE::Actor>();
59 result.push_back(actor);
static const std::vector< std::string > is_a_dungeon
A vector of what I consider dungeon Keywords.
Definition st-cells.h:8
static bool IsJail(RE::TESObjectCELL *a_cell)
Check if a cell is a Jail.
Definition st-cells.h:31
static bool IsDungeon(const RE::TESObjectCELL *a_cell)
Check if a cell is a dungeon.
Definition st-cells.h:17
static std::vector< RE::Actor * > GetAllActorsInCell(RE::TESObjectCELL *a_cell)
Get a vector of all actors in the specified cell.
Definition st-cells.h:46