CommonLibVR
BGSNamedPackageData.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/I/IPackageData.h"
4 
5 namespace RE
6 {
7  template <class Parent>
8  class BGSNamedPackageData : public Parent
9  {
10  public:
11  static_assert(std::is_base_of<IPackageData, Parent>::value);
12 
13  union Data
14  {
15  bool b;
16  std::uint32_t i;
17  float f;
18  void* p;
19  };
20  static_assert(sizeof(Data) == 0x8);
21 
22  // override (IPackageData)
23  void InitPackage() override; // 01 - { return; }
24  void LoadPackage(TESFile* a_mod) override; // 02
25  void Assign(IPackageData* a_other) override; // 03 - { return; }
26  bool IsNotEqual(IPackageData* a_other) const override; // 04
27 
28  // members
29  Data data; // ??
30  private:
31  KEEP_FOR_RE()
32  };
33 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BGSNamedPackageData.h:9
bool IsNotEqual(IPackageData *a_other) const override
Data data
Definition: BGSNamedPackageData.h:29
void LoadPackage(TESFile *a_mod) override
void Assign(IPackageData *a_other) override
void InitPackage() override
Definition: IPackageData.h:12
Definition: TESFile.h:17
Definition: AbsorbEffect.h:6
Definition: BGSNamedPackageData.h:14
void * p
Definition: BGSNamedPackageData.h:18
std::uint32_t i
Definition: BGSNamedPackageData.h:16
float f
Definition: BGSNamedPackageData.h:17
bool b
Definition: BGSNamedPackageData.h:15