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/Notify.hpp"
4
7
8namespace VoltMod::Schema
9{
10
11// ---- CBeam, 2288 bytes ---------------------------------------------
12static constexpr int32_t kCBeam_Width = 2228; // float32
13static constexpr int32_t kCBeam_EndWidth = 2232; // float32
14static constexpr int32_t kCBeam_EndPos = 2264; // VectorWS
15
16float CBeam::Width() const
17{
18 if (!_base)
19 {
20 return {};
21 }
22
24}
25
26void CBeam::SetWidth(float value) const
27{
28 if (!_base)
29 {
30 return;
31 }
32
35}
36
37float CBeam::EndWidth() const
38{
39 if (!_base)
40 {
41 return {};
42 }
43
45}
46
47void CBeam::SetEndWidth(float value) const
48{
49 if (!_base)
50 {
51 return;
52 }
53
56}
57
59{
60 if (!_base)
61 {
62 return {};
63 }
64
66}
67
68void CBeam::SetEndPos(Vector value) const
69{
70 if (!_base)
71 {
72 return;
73 }
74
77}
78
79} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
Vector EndPos() const
Definition CBeam.cpp:58
void SetEndWidth(float value) const
Definition CBeam.cpp:47
void SetEndPos(Vector value) const
Definition CBeam.cpp:68
float EndWidth() const
Definition CBeam.cpp:37
void SetWidth(float value) const
Definition CBeam.cpp:26
float Width() const
Definition CBeam.cpp:16
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static constexpr int32_t kCBeam_Width
Definition CBeam.cpp:12
static constexpr int32_t kCBeam_EndPos
Definition CBeam.cpp:14
static constexpr int32_t kCBeam_EndWidth
Definition CBeam.cpp:13
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
::Vector Vector
Definition Math.hpp:11