-
Notifications
You must be signed in to change notification settings - Fork 5
/
Constants.cs
80 lines (71 loc) · 4.83 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
public class Constants
{
// FOR DEMO PURPOSES ONLY
// It is strongly adviced to move this data out of the game client in a real production environment
// API settings
public const string TITLE_ID = "";
public const bool COMPRESS_API_DATA = false;
public const string PLAYFAB_PLAYER_CUSTOM_ID = "PLAYFAB_PLAYER_CUSTOM_ID";
// Button caption
public const string BUTTON_QUICKMATCH_QUICKMATCHED_CANCELED = "Quick match";
public const string BUTTON_QUICKMATCH_QUICKMATCHED_STARTED = "Cancel match";
// Function names
public const string CREATE_MATCH_LOBBY = "CreateMatchLobby";
public const string DELETE_MATCH_LOBBY_FUNCTION_NAME = "DeleteMatchLobby";
public const string JOIN_MATCH_LOBBY = "JoinMatchLobby";
public const string SEARCH_MATCH_LOBBIES_FUNCTION_NAME = "SearchMatchLobbies";
public const string LEAVE_MATCH_LOBBY = "LeaveMatchLobby";
public const string SET_MATCH_LOBBY_LOCK_STATE = "SetMatchLobbyLockState";
// Status messages
public const string CREATE_MATCH_LOBBY_ERROR = "There was an error trying to create a match lobby. Please try again later";
public const string CREATING_NETWORK = "Opponent found. Creating network...";
public const string COULD_NOT_START_GAME = "Couldn't start the game, try again later";
public const string GAME_OVER = "Game over";
public const string GAME_WIN_CHECK_COMPLETED = "Win check complete";
public const string GAME_WIN_CHECK_STARTED = "Checking for winner";
public const string LOBBY_NAME_EMPTY = "Please insert a name for the Lobby";
public const string MATCH_LOBBY_CREATING = "Creating match lobby: ";
public const string MATCH_LOBBY_CLOSING = "Closing match lobby...";
public const string MATCH_LOBBY_FOUND = " lobbies found";
public const string MATCH_LOBBY_JOIN_OK = "Joined to the lobby successfully";
public const string MATCH_LOBBY_JOIN_INTERNAL_SERVER_ERROR = "An internal server error has happened during the joining";
public const string MATCH_LOBBY_JOIN_ERROR_LOBBY_NOT_FOUND = "The lobby doesn't exists anymore";
public const string MATCH_LOBBY_JOIN_ERROR_LOBBY_FULL = "The lobby is full.";
public const string MATCH_LOBBY_JOIN_ERROR_INVALID_INVITATION_CODE = "Invalid invitation code";
public const string MATCH_LOBBY_JOIN_ERROR_NOT_INVITATION_CODE_INCLUDED = "Lobby locked. Is required an invitation code";
public const string MATCH_LOBBY_JOIN_ERROR_REQUESTER_IS_LOBBY_CREATOR = "You are the creator of the lobby you tried to join";
public const string MATCH_LOBBY_REPEATED = "There is a lobby with the same name";
public const string MATCH_LOBBY_SEARCHING = "Searching for lobbies ...";
public const string MATCH_LOBBY_WAITING = "Waiting for player...";
public const string PLAYER_LOGIN_COMPLETED = "Login successful";
public const string PLAYER_LOGIN_FAILED = "Login failed";
public const string PLAYER_MOVE_COMPLETED = "Player move complete";
public const string PLAYER_MOVE_INVALID = "Invalid player move";
public const string PLAYER_MOVE_PROCESSING = "Executing player move";
public const string PLAYER_MOVE_WAIT = "Waiting for player move";
public const string TICKET_SEARCH = "Searching for opponent...";
public const string TICKET_MATCH = "Opponent found. Starting game...";
public const string TICKET_CANEL = "Matchmaking stopped";
public const string TICKET_CANCEL_STARTED = "Stopping matchmaking...";
public const string TICKET_TIMEDOUT_OR_CANCELLED = "Opponent not found or match was cancelled";
public const string SET_MATCH_LOBBY_LOCK_STATE_OK_ON = "Lobby locked successfully. Invitation code: ";
public const string SET_MATCH_LOBBY_LOCK_STATE_OK_OFF = "Lobby unlocked successfully";
public const string SET_MATCH_LOBBY_LOCK_STATE_ONLY_LOBBY_CREATOR_CAN_LOCK = "Only the lobby creator can modify the lock state";
// Buttons
public const string BTN_CLOSE_MATCH_LOBBY = "Close match lobby";
public const string BTN_CREATE_MATCH_LOBBY = "Create match lobby";
// Matchmaking Queue
public const string QUICK_MATCHMAKING_QUEUE_NAME = "TicTacToeQuickMatch";
public const string PARTY_MATCHMAKING_QUEUE_NAME = "PartyQueue";
// Matchmaking Tags
public const string NETWORK_ID_TAG = "NetworkId";
// It's recommended to set it to 120 as default.
public const int GIVE_UP_AFTER_SECONDS = 120;
// It's recommended to retry getting Ticket status every 6 seconds (max 10 times per minute).
public const float RETRY_GET_TICKET_STATUS_AFTER_SECONDS = 6;
public const float RETRY_GET_LOBBY_INFO_AFTER_SECONDS = 1;
public const float RETRY_GET_MATCH_INFO_AFTER_SECONDS = 1;
public const string MATCH_LOBBY_LIST_CONTENT_CONTAINER_NAME = "MatchLobbyListContent";
public const string MATCH_LOBBY_PLAYERS_LIST_CONTENT_CONTAINER_NAME = "MatchLobbyPlayersListContent";
public const int NUMBER_OF_PLAYERS = 2;
}