VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CBeam.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// ---- CBeam -------------------------------------------------------
13static const int32_t& kCBeam_Width = GeneratedFields[29].Offset; // float32
14static const int32_t& kCBeam_EndWidth = GeneratedFields[30].Offset; // float32
15static const int32_t& kCBeam_EndPos = GeneratedFields[31].Offset; // VectorWS
16
17float CBeam::Width() const
18{
19 if (!_base)
20 {
21 return {};
22 }
23
25}
26
27void CBeam::SetWidth(float value) const
28{
29 if (!_base)
30 {
31 return;
32 }
33
36}
37
38float CBeam::EndWidth() const
39{
40 if (!_base)
41 {
42 return {};
43 }
44
46}
47
48void CBeam::SetEndWidth(float value) const
49{
50 if (!_base)
51 {
52 return;
53 }
54
57}
58
60{
61 if (!_base)
62 {
63 return {};
64 }
65
67}
68
69void CBeam::SetEndPos(Vector value) const
70{
71 if (!_base)
72 {
73 return;
74 }
75
78}
79
80} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
Vector EndPos() const
Definition CBeam.cpp:59
void SetEndWidth(float value) const
Definition CBeam.cpp:48
void SetEndPos(Vector value) const
Definition CBeam.cpp:69
float EndWidth() const
Definition CBeam.cpp:38
void SetWidth(float value) const
Definition CBeam.cpp:27
float Width() const
Definition CBeam.cpp:17
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static const int32_t & kCBeam_Width
Definition CBeam.cpp:13
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:10
FieldLayout GeneratedFields[]
Definition Layout.cpp:8
static const int32_t & kCBeam_EndPos
Definition CBeam.cpp:15
static const int32_t & kCBeam_EndWidth
Definition CBeam.cpp:14
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept
::Vector Vector
Definition Math.hpp:12