mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-14 10:12:59 +02:00
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
/*
|
|
* LobbyDefines.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
struct LobbyAccount
|
|
{
|
|
std::string accountID;
|
|
std::string displayName;
|
|
//std::string status;
|
|
};
|
|
|
|
struct LobbyGameRoom
|
|
{
|
|
std::string roomID;
|
|
std::string hostAccountID;
|
|
std::string hostAccountDisplayName;
|
|
std::string roomStatus;
|
|
uint32_t playersCount;
|
|
uint32_t playersLimit;
|
|
};
|
|
|
|
struct LobbyChatMessage
|
|
{
|
|
std::string accountID;
|
|
std::string displayName;
|
|
std::string messageText;
|
|
std::chrono::seconds age;
|
|
};
|
|
|
|
enum class LobbyCookieStatus : int32_t
|
|
{
|
|
INVALID,
|
|
EXPIRED,
|
|
VALID
|
|
};
|
|
|
|
enum class LobbyInviteStatus : int32_t
|
|
{
|
|
NOT_INVITED,
|
|
INVITED,
|
|
DECLINED
|
|
};
|
|
|
|
enum class LobbyRoomState : int32_t
|
|
{
|
|
IDLE = 0, // server is ready but no players are in the room
|
|
PUBLIC = 1, // host has joined and allows anybody to join
|
|
PRIVATE = 2, // host has joined but only allows those he invited to join
|
|
//BUSY = 3, // match is ongoing
|
|
//CANCELLED = 4, // game room was cancelled without starting the game
|
|
CLOSED = 5, // game room was closed after playing for some time
|
|
};
|