扫荡消息增加队伍索引
parent
b5c182bac5
commit
d38a564b9e
|
|
@ -334,9 +334,10 @@ namespace Gameplay.Net
|
|||
/// </summary>
|
||||
/// <param name="levelId"></param>
|
||||
/// <param name="count"></param>
|
||||
public static void LevelSweep(uint levelId, uint count)
|
||||
public static void LevelSweep(uint teamIndex, uint levelId, uint count)
|
||||
{
|
||||
MSG_Clt_G_LevelSweep msg = NetManager.Instance.GetMessage(MSGID.CltGLevelSweep) as MSG_Clt_G_LevelSweep;
|
||||
msg.mPB.TeamIndex = teamIndex;
|
||||
msg.mPB.LevelId = levelId;
|
||||
msg.mPB.Count = count;
|
||||
NetManager.Instance.mClient.SendMessage(msg);
|
||||
|
|
|
|||
|
|
@ -1092,10 +1092,11 @@ public class UI_TeamAndSkillSelectController : UIWindow
|
|||
{
|
||||
if (CommonUtils.CheckEnergy(curLevelInfo.Cfg, sweepCount))
|
||||
{
|
||||
LevelManager.Instance.SettleData = new(curLevelInfo.Cfg.Id, TeamEditManager.Instance.GetSelectTeam());
|
||||
Team team = TeamEditManager.Instance.GetSelectTeam();
|
||||
LevelManager.Instance.SettleData = new(curLevelInfo.Cfg.Id, team);
|
||||
LevelManager.Instance.CurrLevel = curLevelInfo;
|
||||
LevelManager.Instance.IsSweep = true;
|
||||
NetHelper.LevelSweep((uint)curLevelInfo.Cfg.Id, (uint)sweepCount);
|
||||
NetHelper.LevelSweep((uint)team.TeamIndex, (uint)curLevelInfo.Cfg.Id, (uint)sweepCount);
|
||||
BIManager.Instance.TrackEvent("level_event", new Dictionary<string, object>//关卡事件扫荡开始
|
||||
{
|
||||
{"level_id", curLevelInfo.Cfg.Id},
|
||||
|
|
|
|||
Loading…
Reference in New Issue