Adding spectators to Tris example
Posted: 13 Aug 2019, 19:49
Hi,
Clicking a game in the Lobby attempts to join as a player. In case there are 2 players already in the game, OnRoomJoinError(BaseEvent evt) fires. I am rejoining as a spectator in OnRoomJoinError(), but this seems a bad approach because if the game's MaxSpectators is already maxed out, or any other legitimate error, I won't be able to join as a spectator, and I wouldn't see why.
If there is a better approach than OnRoomJoinError() could you please let me know?
Also, other than setting my logs level from WARN to ERROR, can I disable the "Room is full" warning message in the log? I don't need to be warned about it every time a room is full.
Thank you!
Clicking a game in the Lobby attempts to join as a player. In case there are 2 players already in the game, OnRoomJoinError(BaseEvent evt) fires. I am rejoining as a spectator in OnRoomJoinError(), but this seems a bad approach because if the game's MaxSpectators is already maxed out, or any other legitimate error, I won't be able to join as a spectator, and I wouldn't see why.
If there is a better approach than OnRoomJoinError() could you please let me know?
Also, other than setting my logs level from WARN to ERROR, can I disable the "Room is full" warning message in the log? I don't need to be warned about it every time a room is full.
Thank you!