public RoomPlayerState AddPlayerState(PlayerState playerState, bool readOnly) { RoomPlayerState r; if (PlayerStateWidgets.ContainsKey(playerState.ID)) { r = PlayerStateWidgets[playerState.ID]; //r.PlayerName = playerState.Name; //r.Color = playerState.Color.ToGdkColor(); //r.Ready = playerState.Ready; } else { r = new RoomPlayerState(ClientManager, playerState, readOnly); //r.PlayerState = playerState; playersInfo.Add(r); PlayerStateWidgets.Add(playerState.ID, r); } return(r); //r.PlayerState = playerState; }
private void RemovePlayerState(RoomPlayerState roomPlayerState) { roomPlayerState.Destroy(); }