|
@@ -134,7 +134,7 @@ namespace BattleRoom
|
|
|
if (ClientPeers.TryGetValue(peerId, out var peer))
|
|
|
{
|
|
|
var info = new SC_BT_Status() { PropertyName = msg.PropertyName, Value = msg.Value, SenderUid = msg.SenderUid, Zoneid = msg.Zoneid };
|
|
|
- this.Broadcast(TargetType.Others, eProtocalCommand.CsBtStatus, info);
|
|
|
+ this.Broadcast(TargetType.Others, eProtocalCommand.ScBtStatus, info);
|
|
|
}
|
|
|
}
|
|
|
void On_BtPosition(int peerId, sSocketData data)
|
|
@@ -143,7 +143,7 @@ namespace BattleRoom
|
|
|
if (ClientPeers.TryGetValue(peerId, out var peer))
|
|
|
{
|
|
|
var info = new SC_BT_Position() { X = msg.X, Y = msg.Y, Z = msg.Z, SenderUid = msg.SenderUid, Zoneid = msg.Zoneid };
|
|
|
- this.Broadcast(TargetType.Others, eProtocalCommand.CsBtStatus, info);
|
|
|
+ this.Broadcast(TargetType.All, eProtocalCommand.ScBtPostion, info);
|
|
|
}
|
|
|
}
|
|
|
void On_BtBroadCast(int peerId, sSocketData data)
|
|
@@ -152,7 +152,7 @@ namespace BattleRoom
|
|
|
if (ClientPeers.TryGetValue(peerId, out var peer))
|
|
|
{
|
|
|
var info = new SC_BT_BroadCast() { Msg = msg.Msg, SenderUid = msg.SenderUid, Zoneid = msg.Zoneid };
|
|
|
- this.Broadcast(TargetType.Others, eProtocalCommand.CsBtStatus, info);
|
|
|
+ this.Broadcast(TargetType.Others, eProtocalCommand.ScBtBroadCast, info);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -162,7 +162,7 @@ namespace BattleRoom
|
|
|
if (ClientPeers.TryGetValue(peerId, out var peer))
|
|
|
{
|
|
|
var info = new SC_BT_Over() { Msg = msg.Msg, SenderUid = msg.SenderUid, Zoneid = msg.Zoneid };
|
|
|
- this.Broadcast(TargetType.Others, eProtocalCommand.CsBtStatus, info);
|
|
|
+ this.Broadcast(TargetType.Others, eProtocalCommand.ScGameOver, info);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -215,6 +215,7 @@ namespace BattleRoom
|
|
|
this.ClientPeers.Values.ToList().ForEach(p => p.SendEvent(msgType, msg));
|
|
|
break;
|
|
|
case TargetType.Others:
|
|
|
+ this.ClientPeers.Values.ToList().ForEach(p =>p.SendEvent(msgType, msg));
|
|
|
break;
|
|
|
}
|
|
|
|