NetworkedMultiplayerPeer.setTargetPeer

Sets the peer to which packets will be sent. The id can be one of: constant TARGET_PEER_BROADCAST to send to all connected peers, constant TARGET_PEER_SERVER to send to the peer acting as server, a valid peer ID to send to that specific peer, a negative peer ID to send to all peers except that one. By default, the target peer is constant TARGET_PEER_BROADCAST.

struct NetworkedMultiplayerPeer
@nogc nothrow
void
setTargetPeer
(
in long id
)

Meta