mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using EggLink.DanhengServer.Data.Excel;
|
|
using EggLink.DanhengServer.Game.Rogue.Buff;
|
|
using EggLink.DanhengServer.Proto;
|
|
using EggLink.DanhengServer.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Game.Rogue
|
|
{
|
|
public class RogueActionInstance
|
|
{
|
|
public int QueuePosition { get; set; } = 0;
|
|
public RogueBuffSelectMenu? RogueBuffSelectMenu { get; set; }
|
|
public RogueMiracleSelectInfo? RogueMiracleSelectInfo { get; set; }
|
|
public RogueBonusSelectInfo? RogueBonusSelectInfo { get; set; }
|
|
|
|
public void SetBonus()
|
|
{
|
|
RogueBonusSelectInfo = new()
|
|
{
|
|
BonusIdList = { 4, 5, 6 }
|
|
};
|
|
}
|
|
|
|
public RogueCommonPendingAction ToProto()
|
|
{
|
|
var action = new RogueAction();
|
|
|
|
if (RogueBuffSelectMenu != null)
|
|
{
|
|
action.BuffSelectInfo = RogueBuffSelectMenu.ToProto();
|
|
}
|
|
|
|
if (RogueMiracleSelectInfo != null)
|
|
{
|
|
action.MiracleSelectInfo = RogueMiracleSelectInfo;
|
|
}
|
|
|
|
if (RogueBonusSelectInfo != null)
|
|
{
|
|
action.BonusSelectInfo = RogueBonusSelectInfo;
|
|
}
|
|
|
|
return new()
|
|
{
|
|
QueuePosition = (uint)QueuePosition,
|
|
RogueAction = action
|
|
};
|
|
}
|
|
}
|
|
}
|