Mania++
 All Classes Functions Variables Pages
Structs.h
1 #ifndef METHODS_STRUCTS_H_
2 #define METHODS_STRUCTS_H_
3 
4 #include "../Utils/GameMode.h"
5 
6 //* ServerVersion
11 {
12  std::string ApiVersion;
13  std::string Build;
14  std::string Name;
15  std::string TitleId;
16  std::string Version;
17 };
18 
19 //* SystemInfo
23 struct SystemInfo
24 {
27  bool IsDedicated;
28  bool IsServer;
29  int P2PPort;
30  int Port;
31  std::string PublishedIp;
32  std::string ServerLogin;
34  std::string TitleId;
35 };
36 
37 //* ServerInfo
41 struct ServerInfo
42 {
43  std::string Name;
44  std::string Comment;
45  int MaxPlayers;
47  GameMode Mode;
49  std::string ControllerVersion;
51  std::string PackMask;
54 };
55 
56 //* ServerStatus
61 {
62  int Code;
63  std::string Name;
64 };
65 
66 //* ManiaLinkPageAnswer
71 {
73  int Result;
74 };
75 
76 //* CurrentCallVote
81 {
82  std::string CallerLogin;
83  std::string CmdName;
84  std::string CmdParam;
85 };
86 
87 //* CallVoteRatio
92 {
93  std::string Command;
94  double Ratio;
95 };
96 
97 //* CallVote
102 {
103  std::string Command;
104  std::string Param;
105  double Ratio;
106 };
107 
108 //* CurrentNextValue
113 {
115  int NextValue;
116 };
117 
118 //* BannedPlayer
123 {
124  std::string Login;
125  std::string ClientName;
126  std::string IPAddress;
127 };
128 
129 #endif // METHODS_STRUCTS_H_
std::string CmdParam
Callvote parameter.
Definition: Structs.h:84
int CurrentValue
Current value of the setting.
Definition: Structs.h:114
Struct with information of banned player.
Definition: Structs.h:122
SystemInfo System
Struct with system information.
Definition: Structs.h:53
std::string Name
Server name.
Definition: Structs.h:43
int Result
Answering result.
Definition: Structs.h:73
std::string Command
Command for the ratio.
Definition: Structs.h:93
std::string Param
Parameter of the callvote.
Definition: Structs.h:104
std::string TitleId
Title identifier.
Definition: Structs.h:34
int Port
Game serverport.
Definition: Structs.h:30
int MaxSpectators
Maximum number of spectators.
Definition: Structs.h:46
Player Account
Player object of server.
Definition: Structs.h:50
std::string Name
Platform name (f.e. ManiaPlanet).
Definition: Structs.h:14
std::string TitleId
Title identifier (f.e. TMCanyon).
Definition: Structs.h:15
std::string PublishedIp
Server IP Address.
Definition: Structs.h:31
std::string Version
Platform version (f.e. 3.3.0).
Definition: Structs.h:16
std::string PackMask
Pack mask.
Definition: Structs.h:51
std::string Login
Player login.
Definition: Structs.h:124
Contains all information about a player in easy-to-use format.
Definition: Player.h:11
std::string ServerLogin
Server login.
Definition: Structs.h:32
double Ratio
Vote passing ratio (between 0 and 1, -1 for disable).
Definition: Structs.h:94
int P2PPort
Peer-to-peer serverport.
Definition: Structs.h:29
ServerVersion Version
Struct with server version information.
Definition: Structs.h:52
Player AnsweringPlayer
Player answering.
Definition: Structs.h:72
Struct with system information.
Definition: Structs.h:23
int NextValue
Next value of the setting.
Definition: Structs.h:115
std::string ControllerVersion
Version of the server controller.
Definition: Structs.h:49
Struct with a ManiaLink page answer.
Definition: Structs.h:70
std::string CmdName
Name of the callvote.
Definition: Structs.h:83
Struct with server status.
Definition: Structs.h:60
int ServerPlayerId
Server player identifier.
Definition: Structs.h:33
std::string Comment
Server comment.
Definition: Structs.h:44
int MaxPlayers
Maximum number of players.
Definition: Structs.h:45
std::string ApiVersion
API version (f.e. 2013-04-06).
Definition: Structs.h:12
int Code
Current status code.
Definition: Structs.h:62
Struct with server version information.
Definition: Structs.h:10
std::string Command
Name of the callvote.
Definition: Structs.h:103
Struct with a callvote ratio.
Definition: Structs.h:91
Struct with a current callvote.
Definition: Structs.h:80
std::string Name
Current status name.
Definition: Structs.h:63
bool IsServer
Is server?
Definition: Structs.h:28
int ConnectionUploadRate
Upload rate in Kbps.
Definition: Structs.h:26
std::string Build
Build version (f.e. 2015-06-06_18_00).
Definition: Structs.h:13
GameMode Mode
Current game mode.
Definition: Structs.h:47
bool IsDedicated
Is dedicated server?
Definition: Structs.h:27
std::string IPAddress
Player IP address.
Definition: Structs.h:126
Struct with a current and next value.
Definition: Structs.h:112
std::string CallerLogin
Player login who created the vote.
Definition: Structs.h:82
Struct with a callvote.
Definition: Structs.h:101
int ConnectionDownloadRate
Download rate in Kbps.
Definition: Structs.h:25
std::string ClientName
Player client name.
Definition: Structs.h:125
double Ratio
Vote passing ratio (between 0 and 1, -1 for disable).
Definition: Structs.h:105
Struct with server information.
Definition: Structs.h:41