diff options
| author | oy <Tom_Adams@web.de> | 2011-03-26 17:44:34 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-26 17:44:34 +0100 |
| commit | fbeace52723509604e390f0a20e9f922aa26d1d6 (patch) | |
| tree | ea60feca2bf3346ef62ce12339e40573dfea9762 /src/game/voting.h | |
| parent | b8f144ba811708bfac82faed438ce389f3d01863 (diff) | |
| download | zcatch-fbeace52723509604e390f0a20e9f922aa26d1d6.tar.gz zcatch-fbeace52723509604e390f0a20e9f922aa26d1d6.zip | |
cleaned up some voting code
Diffstat (limited to 'src/game/voting.h')
| -rw-r--r-- | src/game/voting.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/voting.h b/src/game/voting.h new file mode 100644 index 00000000..8b31d93d --- /dev/null +++ b/src/game/voting.h @@ -0,0 +1,28 @@ +/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ +/* If you are missing that file, acquire a complete release at teeworlds.com. */ +#ifndef GAME_VOTING_H +#define GAME_VOTING_H + +enum +{ + VOTE_DESC_LENGTH=64, + VOTE_CMD_LENGTH=512, + VOTE_REASON_LENGTH=16, +}; + +struct CVoteOptionClient +{ + CVoteOptionClient *m_pNext; + CVoteOptionClient *m_pPrev; + char m_aDescription[VOTE_DESC_LENGTH]; +}; + +struct CVoteOptionServer +{ + CVoteOptionServer *m_pNext; + CVoteOptionServer *m_pPrev; + char m_aDescription[VOTE_DESC_LENGTH]; + char m_aCommand[1]; +}; + +#endif |