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
8
9namespace VoltMod::Schema
10{
11
12// ---- CParticleSystem ---------------------------------------------
13static const int32_t& kCParticleSystem_ControlPointRef = GeneratedFields[89].Offset; // CHandle< CBaseEntity >[64]
14
16{
17 if (!_base || index >= 64)
18 {
19 return {};
20 }
21
23}
24
25void CParticleSystem::SetControlPointRef(size_t index, EntityRef value) const
26{
27 if (!_base || index >= 64)
28 {
29 return;
30 }
31
34 _ownerOffset + kCParticleSystem_ControlPointRef + static_cast<int32_t>(index * sizeof(EntityRef)));
35}
36
37} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
EntityRef ControlPointRef(size_t index) const
void SetControlPointRef(size_t index, EntityRef value) const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:10
FieldLayout GeneratedFields[]
Definition Layout.cpp:8
static const int32_t & kCParticleSystem_ControlPointRef
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept