Mania++
 All Classes Functions Variables Pages
Structs.h
1 #ifndef METHODS_STRUCTS_H_
2 #define METHODS_STRUCTS_H_
3 
4 //* ServerInfo
9 {
10  std::string ApiVersion;
11  std::string Build;
12  std::string Name;
13  std::string TitleId;
14  std::string Version;
15 };
16 
17 //* SystemInfo
21 struct SystemInfo
22 {
25  bool IsDedicated;
26  bool IsServer;
27  int P2PPort;
28  int Port;
29  std::string PublishedIp;
30  std::string ServerLogin;
32  std::string TitleId;
33 };
34 
35 //* ServerStatus
40 {
41  int Code;
42  std::string Name;
43 };
44 
45 //* ManiaLinkPageAnswer
50 {
52  int Result;
53 };
54 
55 //* CurrentCallVote
60 {
61  std::string CallerLogin;
62  std::string CmdName;
63  std::string CmdParam;
64 };
65 
66 //* CallVoteRatio
71 {
72  std::string Command;
73  double Ratio;
74 };
75 
76 //* CallVote
81 {
82  std::string Command;
83  std::string Param;
84  double Ratio;
85 };
86 
87 //* CurrentNextValue
92 {
94  int NextValue;
95 };
96 
97 #endif // METHODS_STRUCTS_H_
std::string CmdParam
Callvote parameter.
Definition: Structs.h:63
int CurrentValue
Current value of the setting.
Definition: Structs.h:93
int Result
Answering result.
Definition: Structs.h:52
std::string Command
Command for the ratio.
Definition: Structs.h:72
std::string Param
Parameter of the callvote.
Definition: Structs.h:83
std::string TitleId
Title identifier.
Definition: Structs.h:32
int Port
Game serverport.
Definition: Structs.h:28
std::string Name
Platform name (f.e. ManiaPlanet).
Definition: Structs.h:12
std::string TitleId
Title identifier (f.e. TMCanyon).
Definition: Structs.h:13
std::string PublishedIp
Server IP Address.
Definition: Structs.h:29
std::string Version
Platform version (f.e. 3.3.0).
Definition: Structs.h:14
Contains all information about a player in easy-to-use format.
Definition: Player.h:10
std::string ServerLogin
Server login.
Definition: Structs.h:30
double Ratio
Vote passing ratio (between 0 and 1, -1 for disable).
Definition: Structs.h:73
int P2PPort
Peer-to-peer serverport.
Definition: Structs.h:27
Player AnsweringPlayer
Player answering.
Definition: Structs.h:51
Struct with system information.
Definition: Structs.h:21
int NextValue
Next value of the setting.
Definition: Structs.h:94
Struct with a ManiaLink page answer.
Definition: Structs.h:49
std::string CmdName
Name of the callvote.
Definition: Structs.h:62
Struct with server status.
Definition: Structs.h:39
int ServerPlayerId
Server player identifier.
Definition: Structs.h:31
std::string ApiVersion
API version (f.e. 2013-04-06).
Definition: Structs.h:10
int Code
Current status code.
Definition: Structs.h:41
Struct with server version information.
Definition: Structs.h:8
std::string Command
Name of the callvote.
Definition: Structs.h:82
Struct with a callvote ratio.
Definition: Structs.h:70
Struct with a current callvote.
Definition: Structs.h:59
std::string Name
Current status name.
Definition: Structs.h:42
bool IsServer
Is server?
Definition: Structs.h:26
int ConnectionUploadRate
Upload rate in Kbps.
Definition: Structs.h:24
std::string Build
Build version (f.e. 2015-06-06_18_00).
Definition: Structs.h:11
bool IsDedicated
Is dedicated server?
Definition: Structs.h:25
Struct with a current and next value.
Definition: Structs.h:91
std::string CallerLogin
Player login who created the vote.
Definition: Structs.h:61
Struct with a callvote.
Definition: Structs.h:80
int ConnectionDownloadRate
Download rate in Kbps.
Definition: Structs.h:23
double Ratio
Vote passing ratio (between 0 and 1, -1 for disable).
Definition: Structs.h:84