VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CVoteController.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// ---- CVoteController, 2360 bytes -----------------------------------
13static constexpr int32_t kCVoteController_ActiveIssueIndex = 1928; // int32
14static constexpr int32_t kCVoteController_OnlyTeamToVote = 1932; // int32
15static constexpr int32_t kCVoteController_VoteOptionCount = 1936; // int32[5]
16static constexpr int32_t kCVoteController_PotentialVotes = 1956; // int32
17static constexpr int32_t kCVoteController_IsYesNoVote = 1960; // bool
18static constexpr int32_t kCVoteController_AcceptingVotesTimer = 1968; // CountdownTimer
19static constexpr int32_t kCVoteController_ExecuteCommandTimer = 1992; // CountdownTimer
20static constexpr int32_t kCVoteController_ResetVoteTimer = 2016; // CountdownTimer
21static constexpr int32_t kCVoteController_VotesCast = 2040; // int32[64]
22static constexpr int32_t kCVoteController_PlayerHoldingVote = 2296; // CPlayerSlot
23static constexpr int32_t kCVoteController_PlayerOverrideForVote = 2300; // CPlayerSlot
24static constexpr int32_t kCVoteController_HighestCountIndex = 2304; // int32
25static constexpr int32_t kCVoteController_PotentialIssues = 2312; // CUtlVector< CBaseIssue* >
26static constexpr int32_t kCVoteController_VoteOptions = 2336; // CUtlVector< char* >
27
29{
30 if (!_base)
31 {
32 return {};
33 }
34
36}
37
48
50{
51 if (!_base)
52 {
53 return {};
54 }
55
57}
58
69
71{
72 if (!_base || index >= 5)
73 {
74 return {};
75 }
76
78}
79
80void CVoteController::SetVoteOptionCount(size_t index, int32_t value) const
81{
82 if (!_base || index >= 5)
83 {
84 return;
85 }
86
89 _ownerOffset + kCVoteController_VoteOptionCount + static_cast<int32_t>(index * sizeof(int32_t)));
90}
91
93{
94 if (!_base)
95 {
96 return {};
97 }
98
100}
101
112
114{
115 if (!_base)
116 {
117 return {};
118 }
119
121}
122
124{
125 if (!_base)
126 {
127 return;
128 }
129
132}
133
144
155
166
168{
169 if (!_base || index >= 64)
170 {
171 return {};
172 }
173
175}
176
177void CVoteController::SetVotesCast(size_t index, int32_t value) const
178{
179 if (!_base || index >= 64)
180 {
181 return;
182 }
183
185}
186
188{
189 if (!_base)
190 {
191 return {};
192 }
193
195}
196
198{
199 if (!_base)
200 {
201 return;
202 }
203
205}
206
208{
209 if (!_base)
210 {
211 return {};
212 }
213
215}
216
218{
219 if (!_base)
220 {
221 return;
222 }
223
225}
226
228{
229 if (!_base)
230 {
231 return {};
232 }
233
235}
236
238{
239 if (!_base)
240 {
241 return;
242 }
243
245}
246
251
256
257} // namespace VoltMod::Schema
Typed read/write of engine fields at a base pointer + byte offset.
void SetPlayerHoldingVote(int32_t value) const
int32_t VotesCast(size_t index) const
void SetActiveIssueIndex(int32_t value) const
void SetVotesCast(size_t index, int32_t value) const
void SetIsYesNoVote(bool value) const
void SetHighestCountIndex(int32_t value) const
CountdownTimer AcceptingVotesTimer() const
void SetOnlyTeamToVote(int32_t value) const
CountdownTimer ResetVoteTimer() const
int32_t VoteOptionCount(size_t index) const
void SetVoteOptionCount(size_t index, int32_t value) const
void SetPlayerOverrideForVote(int32_t value) const
void SetPotentialVotes(int32_t value) const
CountdownTimer ExecuteCommandTimer() const
int32_t _ownerOffset
Definition View.hpp:38
::CEntityInstance * _owner
Definition View.hpp:37
static constexpr int32_t kCVoteController_OnlyTeamToVote
static constexpr int32_t kCVoteController_PotentialIssues
static constexpr int32_t kCVoteController_VoteOptions
static constexpr int32_t kCVoteController_AcceptingVotesTimer
static constexpr int32_t kCVoteController_VoteOptionCount
static constexpr int32_t kCVoteController_ResetVoteTimer
static constexpr int32_t kCVoteController_PlayerOverrideForVote
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition Notify.cpp:20
static constexpr int32_t kCVoteController_ExecuteCommandTimer
static constexpr int32_t kCVoteController_ActiveIssueIndex
static constexpr int32_t kCVoteController_HighestCountIndex
static constexpr int32_t kCVoteController_PotentialVotes
static constexpr int32_t kCVoteController_IsYesNoVote
static constexpr int32_t kCVoteController_VotesCast
static constexpr int32_t kCVoteController_PlayerHoldingVote
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56