private void OnMapChange(object sender, MapChangeEvent @event) { var packet = new MapChangePacket { MapName = @event.MapName }; foreach (var peer in m_ConnectionHandler.GetPeers()) { m_ConnectionHandler.Send(peer, packet); } }
public void InvokeRpc(string name, PacketFlags flags, params object[] args) { InvokeRpc(name, m_ConnectionHandler.GetPeers(true), flags, args); }