33static const unsigned long MAX_VOTEOPTIONS_UPLOAD_BUFFER_LENGTH = 2024;
34static const unsigned long MAX_VOTEOPTIONS_BUFFER_LENGTH = 0x100000;
36typedef enum voteoptiontype_e {
50 VOTE_OPTION_CLIENT_NOT_SELF,
53class VoteOptionListItem
58 class VoteOptionListItem *m_pNext;
69 voteoptiontype_t m_optionType;
70 VoteOptionListItem *m_pListItem;
71 SingleVoteOption *m_pNext;
78class VoteOptions :
public Class
81 CLASS_PROTOTYPE(VoteOptions);
86 SingleVoteOption *m_pHeadOption;
95 void SetupVoteOptions(
const char *configFileName);
96 void SetupVoteOptions(
const char *configFileName,
int length,
const char *buffer);
97 void ParseVoteOptions();
98 const char *GetVoteOptionsFile(
int *outLen)
const;
99 bool GetVoteOptionsMain(
int index, str *outOptionCommand, voteoptiontype_t *outOptionType)
const;
100 bool GetVoteOptionSub(
int index,
int listIndex, str *outCommand)
const;
101 bool GetVoteOptionMainName(
int index, str *outVoteName)
const;
102 bool GetVoteOptionSubName(
int index,
int listIndex, str *outName)
const;
104 void SetupMainOptionsList();
105 void SetupSubOptionsList(
int index);
108inline bool VoteOptions::IsSetup()
const
110 return m_pHeadOption != NULL;
119#if defined(CGAME_DLL)
120 void CG_VoteOptions_StartReadFromServer(
const char *
string);
121 void CG_VoteOptions_ContinueReadFromServer(
const char *
string);
122 void CG_VoteOptions_FinishReadFromServer(
const char *
string);
123 void CG_PushCallVote_f(
void);
124 void CG_PushCallVoteSubList_f(
void);
125 void CG_PushCallVoteSubText_f(
void);
126 void CG_PushCallVoteSubInteger_f(
void);
127 void CG_PushCallVoteSubFloat_f(
void);
128 void CG_PushCallVoteSubClient_f(
void);
129 void CG_PushVote_f(
void);
130 void CG_CallEntryVote_f(
void);