VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CCSGameRules.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// ---- CCSGameRules, 70728 bytes --------------------------------------
13static constexpr int32_t kCCSGameRules_RoundTime = 256; // int32
14static constexpr int32_t kCCSGameRules_RoundStartTime = 264; // GameTime_t
15
16::CEntityInstance* CCSGameRules::OwnerEntity() const
17{
19}
20
22{
23 if (!_base)
24 {
25 return {};
26 }
27
29}
30
31void CCSGameRules::SetRoundTime(int32_t value) const
32{
33 if (!_base)
34 {
35 return;
36 }
37
40}
41
43{
44 if (!_base)
45 {
46 return {};
47 }
48
50}
51
52void CCSGameRules::SetRoundStartTime(float value) const
53{
54 if (!_base)
55 {
56 return;
57 }
58
61}
62
63} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetRoundTime(int32_t value) const
void SetRoundStartTime(float value) const
::CEntityInstance * OwnerEntity() const
void NotifyComponentOwner(void *component, int32_t ownerLinkOffset, int32_t offset)
Definition Notify.cpp:30
static constexpr int32_t CCSGameRules_kOwnerLinkOffset
static constexpr int32_t kCCSGameRules_RoundTime
CEntityInstance * ComponentOwner(const void *component, int32_t ownerLinkOffset)
Definition Notify.cpp:46
static constexpr int32_t kCCSGameRules_RoundStartTime
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56