VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CParticleSystem.cpp
Go to the documentation of this file.
1
// Generated by `voltmod framework schemagen`. Do not edit.
2
3
#include "
Schema/Notify.hpp
"
4
5
#include <
VoltMod/Engine/Memory/MemoryAccess.hpp
>
6
#include <
VoltMod/Schema/Generated/CParticleSystem.hpp
>
7
8
namespace
VoltMod::Schema
9
{
10
11
// ---- CParticleSystem, 3544 bytes -----------------------------------
12
static
constexpr
int32_t
kCParticleSystem_ControlPointRef
= 2724;
// CHandle< CBaseEntity >[64]
13
14
EntityRef
CParticleSystem::ControlPointRef
(
size_t
index)
const
15
{
16
if
(!
_base
|| index >= 64)
17
{
18
return
{};
19
}
20
21
return
MemberPtr<EntityRef>
(
_base
,
kCParticleSystem_ControlPointRef
)[index];
22
}
23
24
void
CParticleSystem::SetControlPointRef
(
size_t
index,
EntityRef
value)
const
25
{
26
if
(!
_base
|| index >= 64)
27
{
28
return
;
29
}
30
31
MemberPtr<EntityRef>
(
_base
,
kCParticleSystem_ControlPointRef
)[index] = value;
32
NotifyEntity
(
_owner
,
33
_ownerOffset
+
kCParticleSystem_ControlPointRef
+
static_cast<
int32_t
>
(index *
sizeof
(EntityRef)));
34
}
35
36
}
// namespace VoltMod::Schema
CParticleSystem.hpp
MemoryAccess.hpp
Typed read/write of engine fields at a base pointer + byte offset.
Notify.hpp
VoltMod::Schema::CParticleSystem::ControlPointRef
EntityRef ControlPointRef(size_t index) const
Definition
CParticleSystem.cpp:14
VoltMod::Schema::CParticleSystem::SetControlPointRef
void SetControlPointRef(size_t index, EntityRef value) const
Definition
CParticleSystem.cpp:24
VoltMod::Schema::View::_base
void * _base
Definition
View.hpp:36
VoltMod::Schema::View::_ownerOffset
int32_t _ownerOffset
Definition
View.hpp:38
VoltMod::Schema::View::_owner
::CEntityInstance * _owner
Definition
View.hpp:37
VoltMod::Schema
Definition
CBaseAnimGraph.hpp:10
VoltMod::Schema::kCParticleSystem_ControlPointRef
static constexpr int32_t kCParticleSystem_ControlPointRef
Definition
CParticleSystem.cpp:12
VoltMod::Schema::NotifyEntity
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition
Notify.cpp:20
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
VoltMod::EntityRef
Definition
EntityRef.hpp:11
src
Schema
Generated
windows
CParticleSystem.cpp
Generated by
1.9.8