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/Layout.hpp"
4#include "Schema/Notify.hpp"
5
8
9namespace VoltMod::Schema
10{
11
12// ---- EntitySpottedState_t ----------------------------------------
13static const int32_t& kEntitySpottedState_t_Spotted = GeneratedFields[123].Offset; // bool
14static const int32_t& kEntitySpottedState_t_SpottedByMask = GeneratedFields[124].Offset; // uint32[2]
15
17{
18 if (!_base)
19 {
20 return {};
21 }
22
24}
25
36
37uint32_t EntitySpottedState_t::SpottedByMask(size_t index) const
38{
39 if (!_base || index >= 2)
40 {
41 return {};
42 }
43
45}
46
47void EntitySpottedState_t::SetSpottedByMask(size_t index, uint32_t value) const
48{
49 if (!_base || index >= 2)
50 {
51 return;
52 }
53
56 _ownerOffset + kEntitySpottedState_t_SpottedByMask + static_cast<int32_t>(index * sizeof(uint32_t)));
57}
58
59} // 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 const int32_t & kEntitySpottedState_t_SpottedByMask
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:10
FieldLayout GeneratedFields[]
Definition Layout.cpp:8
static const int32_t & kEntitySpottedState_t_Spotted
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept