CommonLibVR
BGSPackageDataBool.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/I/IPackageData.h"
5 
6 namespace RE
7 {
8  class BGSPackageDataBool : public BGSNamedPackageData<IPackageData>
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_BGSPackageDataBool;
12  inline static constexpr auto VTABLE = VTABLE_BGSPackageDataBool;
13 
14  ~BGSPackageDataBool() override; // 00
15 
16  // override (BGSNamedPackageData<IPackageData>)
17  void LoadPackage(TESFile* a_mod) override; // 02
18  void Assign(IPackageData* a_other) override; // 03
19  bool IsNotEqual(IPackageData* a_other) const override; // 04
20  void Unk_05(void) override; // 05 - { return 1; }
21  void Unk_07(void) override; // 07
22  void LoadBuffer(BGSLoadFormBuffer* a_buf) override; // 08
23  void Unk_09(void) override; // 09 - { return; }
24  bool GetDataAsString(BSString* a_dst) const override; // 0A - { return *a_dst->set_cstr(((data >> 1) & 1) ? "True" : "False"); }
25  [[nodiscard]] const BSFixedString& GetTypeName() const override; // 0B - { return "Bool"; }
26  private:
27  KEEP_FOR_RE()
28  };
29  static_assert(offsetof(BGSPackageDataBool, data) == 0x08);
30  static_assert(sizeof(BGSPackageDataBool) == 0x10);
31 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BGSLoadFormBuffer.h:11
Definition: BGSNamedPackageData.h:9
Definition: BGSPackageDataBool.h:9
bool IsNotEqual(IPackageData *a_other) const override
void LoadPackage(TESFile *a_mod) override
~BGSPackageDataBool() override
bool GetDataAsString(BSString *a_dst) const override
static constexpr auto VTABLE
Definition: BGSPackageDataBool.h:12
void Unk_05(void) override
void Unk_09(void) override
void Assign(IPackageData *a_other) override
const BSFixedString & GetTypeName() const override
static constexpr auto RTTI
Definition: BGSPackageDataBool.h:11
void Unk_07(void) override
void LoadBuffer(BGSLoadFormBuffer *a_buf) override
Definition: IPackageData.h:12
Definition: TESFile.h:17
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_BGSPackageDataBool
Definition: Offsets_VTABLE.h:8681
constexpr REL::ID RTTI_BGSPackageDataBool(static_cast< std::uint64_t >(514009))