public void NextSendRoomData(string data, RoomOrderType order, string tag = "") { if (this.NextPlayer != null) { this.NextPlayer.SendRoomData(data, order, tag); } }
/// <summary> /// 将数据广播到房间内所有已经连到房间会话的玩家 /// </summary> public void BroadCast(string data, RoomOrderType order, string tag = "") { foreach (var ply in this.players) { if (ply.ConnectRoom) { ply.RoomWebsok.SendData(data, (int)order, tag); } } }
public void SendRoomData(string data, RoomOrderType order, string tag = "") { this.RoomWebsok.SendData(data, (int)order, tag); }