VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CCSCustomHudLayoutState.cpp
Go to the documentation of this file.
1
// Generated by `voltmod framework schemagen`. Do not edit.
2
3
#include "
Schema/Notify.hpp
"
4
5
#include <
VoltMod/Engine/Memory/MemoryAccess.hpp
>
6
#include <
VoltMod/Schema/Generated/CCSCustomHudLayoutState.hpp
>
7
8
namespace
VoltMod::Schema
9
{
10
11
// ---- CCSCustomHudLayoutState, 408 bytes ---------------------------
12
static
constexpr
int32_t
kCCSCustomHudLayoutState_InputCaptureEnabled
= 52;
// bool
13
14
bool
CCSCustomHudLayoutState::InputCaptureEnabled
()
const
15
{
16
if
(!
_base
)
17
{
18
return
{};
19
}
20
21
return
*
MemberPtr<bool>
(
_base
,
kCCSCustomHudLayoutState_InputCaptureEnabled
);
22
}
23
24
void
CCSCustomHudLayoutState::SetInputCaptureEnabled
(
bool
value)
const
25
{
26
if
(!
_base
)
27
{
28
return
;
29
}
30
31
*
MemberPtr<bool>
(
_base
,
kCCSCustomHudLayoutState_InputCaptureEnabled
) = value;
32
NotifyEntity
(
_owner
,
_ownerOffset
+
kCCSCustomHudLayoutState_InputCaptureEnabled
);
33
}
34
35
}
// namespace VoltMod::Schema
CCSCustomHudLayoutState.hpp
MemoryAccess.hpp
Typed read/write of engine fields at a base pointer + byte offset.
Notify.hpp
VoltMod::Schema::CCSCustomHudLayoutState::InputCaptureEnabled
bool InputCaptureEnabled() const
Definition
CCSCustomHudLayoutState.cpp:14
VoltMod::Schema::CCSCustomHudLayoutState::SetInputCaptureEnabled
void SetInputCaptureEnabled(bool value) const
Definition
CCSCustomHudLayoutState.cpp:24
VoltMod::Schema::View::_base
void * _base
Definition
View.hpp:36
VoltMod::Schema::View::_ownerOffset
int32_t _ownerOffset
Definition
View.hpp:38
VoltMod::Schema::View::_owner
::CEntityInstance * _owner
Definition
View.hpp:37
VoltMod::Schema
Definition
CBaseAnimGraph.hpp:10
VoltMod::Schema::NotifyEntity
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition
Notify.cpp:20
VoltMod::Schema::kCCSCustomHudLayoutState_InputCaptureEnabled
static constexpr int32_t kCCSCustomHudLayoutState_InputCaptureEnabled
Definition
CCSCustomHudLayoutState.cpp:12
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
src
Schema
Generated
linux
CCSCustomHudLayoutState.cpp
Generated by
1.9.8