pub fn send_to_team<I>(&self, team: Team, msg: I)
	where
		I: Into<ServerPacket>,
	{
		let msg = msg.into();

		(&self.associated, &self.team)
			.join()
			.filter(|(_, &t)| t == team)
			.for_each(|(assoc, _)| {
				self.conns.send_to_ref(assoc.0, &msg);
			});
	}
/// Send a packet to all players on a team.
Send a packet to all players on a team.
Send a packet to all players on a team .
pub fn send_to_team<I>(&self, team: Team, msg: I)
	where
		I: Into<ServerPacket>,
	{
		let msg = msg.into();
		(&self.associated, &self.team)
			.join()
			.filter(|(_, &t)| t == team)
			.for_each(|(assoc, _)| {
				self.conns.send_to_ref(assoc.0, &msg);
			});
	}
pub fn send_to_team < I > ( & self , team : Team , msg : I ) where I : Into < ServerPacket > , { let msg = msg . into ( ) ; ( & self . associated , & self . team ) . join ( ) . filter ( | ( _ , & t ) | t == team ) . for_each ( | ( assoc , _ ) | { self . conns . send_to_ref ( assoc . 0 , & msg ) ; } ) ; }
Send a packet to all players on a team.
Send a packet to all players on a team .
&self
team
Team
msg
I
&self
team
Team
msg
I