扫荡消息增加队伍索引

main
yurui 2024-10-17 15:18:51 +08:00
parent b5c182bac5
commit d38a564b9e
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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},