87 lines
2.2 KiB
C#
87 lines
2.2 KiB
C#
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using Luban;
|
|
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
/// <summary>
|
|
/// 战斗行动效果
|
|
/// </summary>
|
|
public sealed partial class BattleEffect : Luban.BeanBase
|
|
{
|
|
public BattleEffect(ByteBuf _buf)
|
|
{
|
|
TargetStat = (BattleStatType)_buf.ReadInt();
|
|
FlatValue = _buf.ReadInt();
|
|
SourceStat = (BattleStatType)_buf.ReadInt();
|
|
SourceScalePermille = _buf.ReadInt();
|
|
Status = (BattleStatusType)_buf.ReadInt();
|
|
DurationRounds = _buf.ReadInt();
|
|
}
|
|
|
|
public static BattleEffect DeserializeBattleEffect(ByteBuf _buf)
|
|
{
|
|
return new BattleEffect(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 目标属性
|
|
/// </summary>
|
|
public readonly BattleStatType TargetStat;
|
|
/// <summary>
|
|
/// 固定加减值,负数为伤害或减少
|
|
/// </summary>
|
|
public readonly int FlatValue;
|
|
/// <summary>
|
|
/// 用于缩放的来源属性
|
|
/// </summary>
|
|
public readonly BattleStatType SourceStat;
|
|
/// <summary>
|
|
/// 来源属性千分比,负数表示减少目标值
|
|
/// </summary>
|
|
public readonly int SourceScalePermille;
|
|
/// <summary>
|
|
/// 附加状态
|
|
/// </summary>
|
|
public readonly BattleStatusType Status;
|
|
/// <summary>
|
|
/// 状态持续轮数
|
|
/// </summary>
|
|
public readonly int DurationRounds;
|
|
|
|
public const int __ID__ = 1948115081;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "targetStat:" + TargetStat + ","
|
|
+ "flatValue:" + FlatValue + ","
|
|
+ "sourceStat:" + SourceStat + ","
|
|
+ "sourceScalePermille:" + SourceScalePermille + ","
|
|
+ "status:" + Status + ","
|
|
+ "durationRounds:" + DurationRounds + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|