private GamePlayer(LobbyPlayer lobbyPlayer, NetTunnel tunnel, GameRoom room) { this.name = lobbyPlayer.Name; this.tunnel = tunnel; this.bank = lobbyPlayer.Bank; this.lobbyPlayer = lobbyPlayer; this.gameRoom = room; this.tunnel.OnMessageReceivedEvent += new NetTunnel.OnMessageReceivedCall(tunnel_OnMessageReceivedEvent); this.tunnel.OnUnexpectedDisconnectEvent += new NetTunnel.OnUnexpectedDisconnectCall(tunnel_OnUnexpectedDisconnectEvent); }
public static GamePlayer GamePlayerFromLobbyPlayer(LobbyPlayer player, NetTunnel tunnel, GameRoom room) { return new GamePlayer(player, tunnel, room); }
public static GamePlayer GamePlayerFromLobbyPlayer(LobbyPlayer player, NetTunnel tunnel, GameRoom room) { return(new GamePlayer(player, tunnel, room)); }