VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CBodyComponent.cpp
Go to the documentation of this file.
1// Generated by `voltmod framework schemagen`. Do not edit.
2
3#include "Schema/Notify.hpp"
4
8
9namespace VoltMod::Schema
10{
11
12// ---- CBodyComponent, 120 bytes ------------------------------------
14static constexpr int32_t kCBodyComponent_SceneNode = 8; // CGameSceneNode*
15
16::CEntityInstance* CBodyComponent::OwnerEntity() const
17{
19}
20
21CGameSceneNode CBodyComponent::SceneNode() const
22{
23 if (!_base)
24 {
25 return {};
26 }
27
28 return CGameSceneNode{*MemberPtr<void*>(_base, kCBodyComponent_SceneNode)};
29}
30
31} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
CGameSceneNode SceneNode() const
::CEntityInstance * OwnerEntity() const
static constexpr int32_t kCBodyComponent_SceneNode
static constexpr int32_t CBodyComponent_kOwnerLinkOffset
CEntityInstance * ComponentOwner(const void *component, int32_t ownerLinkOffset)
Definition Notify.cpp:46
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56