CommonLibSSE (powerof3)
Loading...
Searching...
No Matches
NiDirectionalLight.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/N/NiLight.h"
4
6
7namespace RE
8{
10 {
11 public:
12 inline static constexpr auto RTTI = RTTI_NiDirectionalLight;
13 inline static constexpr auto Ni_RTTI = NiRTTI_NiDirectionalLight;
14 inline static constexpr auto VTABLE = VTABLE_NiDirectionalLight;
15
16 ~NiDirectionalLight() override; // 00
17
18 // override (NiLight)
19 const NiRTTI* GetRTTI() const override; // 02
20 NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17
21 void LoadBinary(NiStream& a_stream) override; // 18
22 void SaveBinary(NiStream& a_stream) override; // 1B
23 bool IsEqual(NiObject* a_object) override; // 1C
24
26 {
27 auto light = malloc<NiDirectionalLight>();
28 std::memset((void*)light, 0, sizeof(NiDirectionalLight));
29 if (light) {
30 light->Ctor();
31 }
32 return light;
33 }
34
35 // members
38
39 private:
40 NiDirectionalLight* Ctor()
41 {
42 using func_t = decltype(&NiDirectionalLight::Ctor);
43 static REL::Relocation<func_t> func{ RELOCATION_ID(69692, 71073) };
44 return func(this);
45 }
46 };
47 static_assert(sizeof(NiDirectionalLight) == 0x158);
48}
#define RELOCATION_ID(SE, AE)
Definition PCH.h:506
Definition Relocation.h:210
Definition NiCloningProcess.h:10
Definition NiColor.h:11
Definition NiDirectionalLight.h:10
void LoadBinary(NiStream &a_stream) override
static constexpr auto Ni_RTTI
Definition NiDirectionalLight.h:13
NiColor effectColor
Definition NiDirectionalLight.h:37
const NiRTTI * GetRTTI() const override
NiObject * CreateClone(NiCloningProcess &a_cloning) override
NiPoint3 worldDir
Definition NiDirectionalLight.h:36
bool IsEqual(NiObject *a_object) override
~NiDirectionalLight() override
static NiDirectionalLight * Create()
Definition NiDirectionalLight.h:25
static constexpr auto RTTI
Definition NiDirectionalLight.h:12
static constexpr auto VTABLE
Definition NiDirectionalLight.h:14
void SaveBinary(NiStream &a_stream) override
Definition NiLight.h:10
Definition NiObject.h:37
Definition NiPoint3.h:6
Definition NiRTTI.h:6
Definition NiStream.h:29
Definition AbsorbEffect.h:6
constexpr REL::ID RTTI_NiDirectionalLight(static_cast< std::uint64_t >(690439))
constexpr REL::ID NiRTTI_NiDirectionalLight(static_cast< std::uint64_t >(523960))
constexpr std::array< REL::ID, 1 > VTABLE_NiDirectionalLight
Definition Offsets_VTABLE.h:12200