Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 private void RemovePlayerState(RoomPlayerState roomPlayerState)
 {
     roomPlayerState.Destroy();
 }