DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
voting.h
Go to the documentation of this file.
1
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2
/* If you are missing that file, acquire a complete release at teeworlds.com. */
3
#ifndef GAME_VOTING_H
4
#define GAME_VOTING_H
5
6
enum
7
{
8
VOTE_DESC_LENGTH
= 64,
9
VOTE_CMD_LENGTH
= 512,
10
VOTE_REASON_LENGTH
= 16,
11
12
MAX_VOTE_OPTIONS
= 8192,
13
};
14
15
struct
CVoteOptionClient
16
{
17
CVoteOptionClient
*
m_pNext
;
18
CVoteOptionClient
*
m_pPrev
;
19
char
m_aDescription
[
VOTE_DESC_LENGTH
];
20
};
21
22
struct
CVoteOptionServer
23
{
24
CVoteOptionServer
*
m_pNext
;
25
CVoteOptionServer
*
m_pPrev
;
26
char
m_aDescription
[
VOTE_DESC_LENGTH
];
27
char
m_aCommand
[1];
28
};
29
30
#endif
CVoteOptionClient
Definition
voting.h:16
CVoteOptionClient::m_pNext
CVoteOptionClient * m_pNext
Definition
voting.h:17
CVoteOptionClient::m_aDescription
char m_aDescription[VOTE_DESC_LENGTH]
Definition
voting.h:19
CVoteOptionClient::m_pPrev
CVoteOptionClient * m_pPrev
Definition
voting.h:18
CVoteOptionServer
Definition
voting.h:23
CVoteOptionServer::m_aCommand
char m_aCommand[1]
Definition
voting.h:27
CVoteOptionServer::m_aDescription
char m_aDescription[VOTE_DESC_LENGTH]
Definition
voting.h:26
CVoteOptionServer::m_pPrev
CVoteOptionServer * m_pPrev
Definition
voting.h:25
CVoteOptionServer::m_pNext
CVoteOptionServer * m_pNext
Definition
voting.h:24
MAX_VOTE_OPTIONS
@ MAX_VOTE_OPTIONS
Definition
voting.h:12
VOTE_DESC_LENGTH
@ VOTE_DESC_LENGTH
Definition
voting.h:8
VOTE_CMD_LENGTH
@ VOTE_CMD_LENGTH
Definition
voting.h:9
VOTE_REASON_LENGTH
@ VOTE_REASON_LENGTH
Definition
voting.h:10
src
game
voting.h
Generated by
1.18.0