//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Luban;
namespace SepCore.Definition
{
///
/// 战斗行动效果
///
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);
}
///
/// 目标属性
///
public readonly BattleStatType TargetStat;
///
/// 固定加减值,负数为伤害或减少
///
public readonly int FlatValue;
///
/// 用于缩放的来源属性
///
public readonly BattleStatType SourceStat;
///
/// 来源属性千分比,负数表示减少目标值
///
public readonly int SourceScalePermille;
///
/// 附加状态
///
public readonly BattleStatusType Status;
///
/// 状态持续轮数
///
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 + ","
+ "}";
}
}
}