mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using EggLink.DanhengServer.Proto;
|
|
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 RogueCommonBuffSelectInfo? RogueCommonBuffSelectInfo { get; set; }
|
|
public RogueMiracleSelectInfo? RogueMiracleSelectInfo { get; set; }
|
|
public RogueBonusSelectInfo? RogueBonusSelectInfo { get; set; }
|
|
|
|
public RogueCommonPendingAction ToProto()
|
|
{
|
|
var action = new RogueAction();
|
|
|
|
if (RogueCommonBuffSelectInfo != null)
|
|
{
|
|
action.BuffSelectInfo = RogueCommonBuffSelectInfo;
|
|
}
|
|
|
|
if (RogueMiracleSelectInfo != null)
|
|
{
|
|
action.MiracleSelectInfo = RogueMiracleSelectInfo;
|
|
}
|
|
|
|
if (RogueBonusSelectInfo != null)
|
|
{
|
|
action.BonusSelectInfo = RogueBonusSelectInfo;
|
|
}
|
|
|
|
return new()
|
|
{
|
|
QueuePosition = (uint)QueuePosition,
|
|
RogueAction = action
|
|
};
|
|
}
|
|
}
|
|
}
|