Vote

Vote class. Can be used to start custom votes.

Type: Reference type

Methods

Declaration Description
Vote@ Vote(const string& in szName, const string& in szVoteText, float flVoteLength, float flPercentageNeeded) Constructor
const string& GetName() const Gets name of this vote.
const string& GetVoteText() const Gets the vote text.
void SetVoteText(const string& in szVoteText) Sets the vote text.
const string& GetYesText() const Gets the yes button text.
void SetYesText(const string& in szYesText) Sets the yes button text.
const string& GetNoText() const Gets the no button text.
void SetNoText(const string& in szNoText) Sets the no button text.
void SetVoteBlockedCallback(VoteBlocked@ pCallback) Sets the vote blocked callback.
void SetVoteEndCallback(VoteEnd@ pCallback) Sets the vote end callback.
void Start() Starts this vote.
any@ GetUserData() Gets the user data set on this vote.
void SetUserData(any@ pUserData) Sets the user data on this vote.
void ClearUserData() Clears the user data set on this vote.