|
VoltMod
C++23 framework for CS2 server plugins
|
#include <Vote.hpp>
Public Attributes | |
| std::string | Title |
| std::string | Detail |
| int | DurationMs = 30000 |
| int | Caller = -1 |
| std::function< bool(const VoteTally &)> | Passed |
| std::function< void(bool passed, VoteEndReason reason)> | Finished |
A yes/no vote for Vote::Start.
| int VoltMod::VoteRequest::Caller = -1 |
| std::string VoltMod::VoteRequest::Detail |
| int VoltMod::VoteRequest::DurationMs = 30000 |
How long before the vote closes itself.
Definition at line 48 of file Vote.hpp.
Referenced by VoltMod::Vote::Start().
| std::function<void(bool passed, VoteEndReason reason)> VoltMod::VoteRequest::Finished |
| std::function<bool(const VoteTally&)> VoltMod::VoteRequest::Passed |
Decides whether the vote passed. Called once when voting ends, never for a cancelled vote.
Definition at line 52 of file Vote.hpp.
Referenced by VoltMod::Vote::Start().
| std::string VoltMod::VoteRequest::Title |