VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
EntitySpottedState_t.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// ---- EntitySpottedState_t, 24 bytes ------------------------------
12static constexpr int32_t kEntitySpottedState_t_Spotted = 8; // bool
13static constexpr int32_t kEntitySpottedState_t_SpottedByMask = 12; // uint32[2]
14
16{
17 if (!_base)
18 {
19 return {};
20 }
21
23}
24
25void EntitySpottedState_t::SetSpotted(bool value) const
26{
27 if (!_base)
28 {
29 return;
30 }
31
34}
35
37{
38 if (!_base || index >= 2)
39 {
40 return {};
41 }
42
44}
45
46void EntitySpottedState_t::SetSpottedByMask(size_t index, uint32_t value) const
47{
48 if (!_base || index >= 2)
49 {
50 return;
51 }
52
55 _ownerOffset + kEntitySpottedState_t_SpottedByMask + static_cast<int32_t>(index * sizeof(uint32_t)));
56}
57
58} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetSpottedByMask(size_t index, uint32_t value) const
uint32_t SpottedByMask(size_t index) const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static constexpr int32_t kEntitySpottedState_t_SpottedByMask
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static constexpr int32_t kEntitySpottedState_t_Spotted
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56