VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CBasePlayerController.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
9
10namespace VoltMod::Schema
11{
12
13// ---- CBasePlayerController ---------------------------------------
14static const int32_t& kCBasePlayerController_PlayerName = GeneratedFields[18].Offset; // char[128]
15static const int32_t& kCBasePlayerController_PawnRef = GeneratedFields[19].Offset; // CHandle< CBasePlayerPawn >
16static const int32_t& kCBasePlayerController_IsHLTV = GeneratedFields[20].Offset; // bool
17
18std::string_view CBasePlayerController::PlayerName() const
19{
20 if (!_base)
21 {
22 return {};
23 }
24
26}
27
38
40{
41 if (!_base)
42 {
43 return {};
44 }
45
47}
48
59
61{
62 if (!_base)
63 {
64 return {};
65 }
66
68}
69
71{
72 if (!_base)
73 {
74 return;
75 }
76
78}
79
80} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetPlayerName(std::string_view value) const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static const int32_t & kCBasePlayerController_IsHLTV
static const int32_t & kCBasePlayerController_PlayerName
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:10
FieldLayout GeneratedFields[]
Definition Layout.cpp:8
static const int32_t & kCBasePlayerController_PawnRef
T * MemberPtr(void *base, std::ptrdiff_t offset) noexcept