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