CommonLibSSE (powerof3)
BSTriShape.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSGeometry.h"
4 
5 namespace RE
6 {
7  class BSTriShape : public BSGeometry
8  {
9  public:
10  inline static constexpr auto RTTI = RTTI_BSTriShape;
11  inline static constexpr auto Ni_RTTI = NiRTTI_BSTriShape;
12 
13  ~BSTriShape() override; // 00
14 
15  // override (BSGeometry)
16  const NiRTTI* GetRTTI() const override; // 02
17  BSTriShape* AsTriShape() override; // 09
18  NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17
19  void LoadBinary(NiStream& a_stream) override; // 18
20  void LinkObject(NiStream& a_stream) override; // 19 - { BSGeometry::LinkObject(a_stream); }
21  bool RegisterStreamables(NiStream& a_stream) override; // 1A - { return BSGeometry::RegisterStreamables(a_stream); }
22  void SaveBinary(NiStream& a_stream) override; // 1B
23  bool IsEqual(NiObject* a_object) override; // 1C - { return false; }
24 
25  // members
26  std::uint16_t triangleCount; // 158
27  std::uint16_t vertexCount; // 15A
28  std::uint32_t pad15C; // 15C
29  };
30  static_assert(sizeof(BSTriShape) == 0x160);
31 }
Definition: BSGeometry.h:14
Definition: BSTriShape.h:8
std::uint16_t vertexCount
Definition: BSTriShape.h:27
bool IsEqual(NiObject *a_object) override
std::uint16_t triangleCount
Definition: BSTriShape.h:26
BSTriShape * AsTriShape() override
std::uint32_t pad15C
Definition: BSTriShape.h:28
void LoadBinary(NiStream &a_stream) override
void LinkObject(NiStream &a_stream) override
static constexpr auto Ni_RTTI
Definition: BSTriShape.h:11
bool RegisterStreamables(NiStream &a_stream) override
static constexpr auto RTTI
Definition: BSTriShape.h:10
~BSTriShape() override
NiObject * CreateClone(NiCloningProcess &a_cloning) override
void SaveBinary(NiStream &a_stream) override
const NiRTTI * GetRTTI() const override
Definition: NiObject.h:37
Definition: NiRTTI.h:6
Definition: NiStream.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_BSTriShape
Definition: Offsets_NiRTTI.h:130
constexpr REL::ID RTTI_BSTriShape
Definition: Offsets_RTTI.h:3628