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/Notify.hpp"
4
8
9namespace VoltMod::Schema
10{
11
12// ---- CBasePlayerController, 2008 bytes -----------------------------
13static constexpr int32_t kCBasePlayerController_PlayerName = 1308; // char[128]
14static constexpr int32_t kCBasePlayerController_PawnRef = 1248; // CHandle< CBasePlayerPawn >
15
16std::string_view CBasePlayerController::PlayerName() const
17{
18 if (!_base)
19 {
20 return {};
21 }
22
24}
25
26void CBasePlayerController::SetPlayerName(std::string_view value) const
27{
28 if (!_base)
29 {
30 return;
31 }
32
35}
36
37EntityRef CBasePlayerController::PawnRef() const
38{
39 if (!_base)
40 {
41 return {};
42 }
43
45}
46
47void CBasePlayerController::SetPawnRef(EntityRef value) const
48{
49 if (!_base)
50 {
51 return;
52 }
53
56}
57
58} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetPlayerName(std::string_view value) const
Base of every generated schema view: a frame-local pointer into engine memory, never stored.
Definition View.hpp:17
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 kCBasePlayerController_PlayerName
static constexpr int32_t kCBasePlayerController_PawnRef
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56