Skip to content

Commit

Permalink
Merge pull request #54 from nikitalita/TESNPC-outfit
Browse files Browse the repository at this point in the history
TESNPC: Add SetDefaultOutfit, SetSleepOutfit
  • Loading branch information
powerof3 authored Feb 18, 2023
2 parents 25d2900 + b1106eb commit b9ad4ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/RE/T/TESNPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,11 @@ namespace RE
bool IsInFaction(TESFaction* a_faction) const;
bool RemovePerk(BGSPerk* a_perk);
bool RemovePerks(const std::vector<BGSPerk*>& a_perks);
bool SetDefaultOutfit(BGSOutfit * a_outfit);
void SetFaceTexture(BGSTextureSet* a_textureSet);
void SetHairColor(BGSColorForm* a_hairColor);
void SetSkinFromTint(NiColorA* a_result, TintMask* a_tintMask, bool a_fromTint);
bool SetSleepOutfit(BGSOutfit * a_outfit);
void UpdateNeck(BSFaceGenNiNode* a_faceNode);

// members
Expand Down
10 changes: 10 additions & 0 deletions src/RE/T/TESNPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ namespace RE
return false;
}

bool TESNPC::SetDefaultOutfit(BGSOutfit * a_outfit) {
defaultOutfit = a_outfit;
return AddChange(ChangeFlags::kDefaultOutfit);
}

void TESNPC::SetFaceTexture(BGSTextureSet* a_textureSet)
{
if (!headRelatedData && a_textureSet) {
Expand Down Expand Up @@ -256,6 +261,11 @@ namespace RE
return func(this, a_result, a_tintMask, a_fromTint);
}

bool TESNPC::SetSleepOutfit(BGSOutfit * a_outfit) {
sleepOutfit = a_outfit;
return AddChange(ChangeFlags::kSleepOutfit);
}

void TESNPC::UpdateNeck(BSFaceGenNiNode* a_faceNode)
{
using func_t = decltype(&TESNPC::UpdateNeck);
Expand Down

0 comments on commit b9ad4ce

Please sign in to comment.