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/Layout.hpp
"
4
#include "
Schema/Notify.hpp
"
5
6
#include <
VoltMod/Engine/Memory/MemoryAccess.hpp
>
7
#include <
VoltMod/Schema/Generated/CParticleSystem.hpp
>
8
9
namespace
VoltMod::Schema
10
{
11
12
// ---- CParticleSystem ---------------------------------------------
13
static
const
int32_t&
kCParticleSystem_ControlPointRef
=
GeneratedFields
[89].Offset;
// CHandle< CBaseEntity >[64]
14
15
EntityRef
CParticleSystem::ControlPointRef
(
size_t
index)
const
16
{
17
if
(!
_base
|| index >= 64)
18
{
19
return
{};
20
}
21
22
return
MemberPtr<EntityRef>
(
_base
,
kCParticleSystem_ControlPointRef
)[index];
23
}
24
25
void
CParticleSystem::SetControlPointRef
(
size_t
index,
EntityRef
value)
const
26
{
27
if
(!
_base
|| index >= 64)
28
{
29
return
;
30
}
31
32
MemberPtr<EntityRef>
(
_base
,
kCParticleSystem_ControlPointRef
)[index] = value;
33
NotifyEntity
(
_owner
,
34
_ownerOffset
+
kCParticleSystem_ControlPointRef
+
static_cast<
int32_t
>
(index *
sizeof
(
EntityRef
)));
35
}
36
37
}
// namespace VoltMod::Schema
CParticleSystem.hpp
Layout.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:15
VoltMod::Schema::CParticleSystem::SetControlPointRef
void SetControlPointRef(size_t index, EntityRef value) const
Definition
CParticleSystem.cpp:25
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::NotifyEntity
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition
Notify.cpp:10
VoltMod::Schema::GeneratedFields
FieldLayout GeneratedFields[]
Definition
Layout.cpp:8
VoltMod::Schema::kCParticleSystem_ControlPointRef
static const int32_t & kCParticleSystem_ControlPointRef
Definition
CParticleSystem.cpp:13
VoltMod::MemberPtr
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept
Definition
MemoryAccess.hpp:21
VoltMod::EntityRef
Definition
EntityRef.hpp:11
src
Schema
Generated
CParticleSystem.cpp
Generated by
1.15.0