Skip to content

Commit

Permalink
feat: Add IsSpaceshipDocked and fix excessive namespace for TESWorlds…
Browse files Browse the repository at this point in the history
…pace (#93)

address is of 1.7.29
  • Loading branch information
TommInfinite authored Sep 25, 2023
1 parent 9bd7e4e commit 1ef1170
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions CommonLibSF/include/RE/T/TESObjectREFR.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ namespace RE
[[nodiscard]] bool HasKeyword(BGSKeyword* a_keyword);
[[nodiscard]] bool IsCrimeToActivate();
[[nodiscard]] bool IsInSpace(bool a_arg1);
[[nodiscard]] bool IsSpaceshipDocked();

// members
std::uint32_t unk80; // 80
Expand Down
4 changes: 2 additions & 2 deletions CommonLibSF/include/RE/T/TESWorldSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
namespace RE
{
class TESWorldSpace :
public RE::TESForm, // 00
public RE::TESFullName // 20
public TESForm, // 00
public TESFullName // 20
{
public:
SF_FORMTYPE(WRLD);
Expand Down
8 changes: 8 additions & 0 deletions CommonLibSF/src/RE/T/TESObjectREFR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,12 @@ namespace RE
REL::Relocation<func_t> func{ REL::Offset(0x01A0E1C8) };
return func(this, a_arg1);
}

bool TESObjectREFR::IsSpaceshipDocked()
{
using func_t = decltype(&TESObjectREFR::IsSpaceshipDocked);
REL::Relocation<func_t> func{ REL::Offset(0x2B557C8) };
return func(this);
}

}

0 comments on commit 1ef1170

Please sign in to comment.