Skip to content

Commit

Permalink
RE WeaponEnchantmentController
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Nov 25, 2024
1 parent 7dc2f73 commit eb78881
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/sourcelist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,7 @@ set(SOURCES
include/RE/V/VirtualMachine.h
include/RE/V/VoiceSpellFireHandler.h
include/RE/W/WeaponAnimationGraphManagerHolder.h
include/RE/W/WeaponEnchantmentController.h
include/RE/W/WeatherType.h
include/RE/W/WerewolfEffect.h
include/RE/W/WerewolfFeedEffect.h
Expand Down
48 changes: 48 additions & 0 deletions include/RE/W/WeaponEnchantmentController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#pragma once

#include "RE/N/NiSmartPointer.h"

namespace RE
{
class Actor;
class ActorMagicCaster;
class TESObjectWEAP;

class WeaponEnchantmentController : public ReferenceEffectController
{
public:
inline static constexpr auto RTTI = RTTI_WeaponEnchantmentController;
inline static constexpr auto VTABLE = VTABLE_WeaponEnchantmentController;

virtual ~WeaponEnchantmentController() = default; // 00

// override
RE::TESObjectREFR* GetTargetReference() override; // 0B
RE::BGSArtObject* GetHitEffectArt() override; // 0C
RE::TESEffectShader* GetHitEffectShader() override; // 0D
bool GetManagerHandlesSaveLoad() override; // 0E
RE::NiAVObject* GetAttachRoot() override; // 0F
float GetParticleAttachExtent() override; // 10
bool GetUseParticleAttachExtent() override; // 11
bool GetDoParticles() override; // 12
bool GetParticlesUseLocalSpace() override; // 13
bool GetUseRootWorldRotate() override; // 14
bool GetIsRootActor() override; // 15
bool GetShaderUseParentCell() override; // 19
bool GetAllowTargetRoot() override; // 2C
bool IsReadyForAttach() override; // 1D

// members
ActorMagicCaster* caster; // 08
Actor* target; // 10
TESEffectShader* shader; // 18
BGSArtObject* art; // 20
NiPointer<NiAVObject> attachRoot; // 28
TESObjectWEAP* lastWeapon; // 30
bool firstPerson; // 38
std::uint8_t pad39; // 39
std::uint16_t pad3A; // 3A
std::uint32_t pad3C; // 3C
};
static_assert(sizeof(WeaponEnchantmentController) == 0x40);
}

0 comments on commit eb78881

Please sign in to comment.