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
7
8namespace VoltMod::Schema
9{
10
11// ---- CParticleSystem, 4280 bytes -----------------------------------
12static constexpr int32_t kCParticleSystem_ControlPointRef = 3460; // CHandle< CBaseEntity >[64]
13
15{
16 if (!_base || index >= 64)
17 {
18 return {};
19 }
20
22}
23
24void CParticleSystem::SetControlPointRef(size_t index, EntityRef value) const
25{
26 if (!_base || index >= 64)
27 {
28 return;
29 }
30
33 _ownerOffset + kCParticleSystem_ControlPointRef + static_cast<int32_t>(index * sizeof(EntityRef)));
34}
35
36} // 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
static constexpr int32_t kCParticleSystem_ControlPointRef
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56