Add ability to query number of locations recognized
This commit is contained in:
parent
b30186d686
commit
413412e262
2 changed files with 10 additions and 0 deletions
|
|
@ -576,6 +576,9 @@
|
|||
bool GetLocationBasedAutoSwitchEnabled(VMClassRegistry* registry, UInt32 stackId, StaticFunctionTag*) {
|
||||
return ArmorAddonOverrideService::GetInstance().locationBasedAutoSwitchEnabled;
|
||||
}
|
||||
UInt32 GetAutoSwitchLocationCount(VMClassRegistry* registry, UInt32 stackId, StaticFunctionTag*) {
|
||||
return 3;
|
||||
}
|
||||
void SetOutfitUsingLocation(VMClassRegistry* registry, UInt32 stackId, StaticFunctionTag*, BGSLocation* location_skse) {
|
||||
// Location can be NULL.
|
||||
std::set<std::string> keywords;
|
||||
|
|
@ -873,6 +876,12 @@ bool OutfitSystem::RegisterPapyrus(VMClassRegistry* registry) {
|
|||
GetLocationBasedAutoSwitchEnabled,
|
||||
registry
|
||||
));
|
||||
registry->RegisterFunction(new NativeFunction0<StaticFunctionTag, UInt32>(
|
||||
"GetAutoSwitchLocationCount",
|
||||
"SkyrimOutfitSystemNativeFuncs",
|
||||
GetAutoSwitchLocationCount,
|
||||
registry
|
||||
));
|
||||
registry->RegisterFunction(new NativeFunction1<StaticFunctionTag, void, BGSLocation*>(
|
||||
"SetOutfitUsingLocation",
|
||||
"SkyrimOutfitSystemNativeFuncs",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue