135 lines
3.2 KiB
C#
135 lines
3.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
|
||
{
|
||
public sealed partial class CharacterConfig : Luban.BeanBase
|
||
{
|
||
public CharacterConfig(ByteBuf _buf)
|
||
{
|
||
Id = _buf.ReadInt();
|
||
Name = _buf.ReadString();
|
||
InitiallyOwned = _buf.ReadBool();
|
||
MaxHp = _buf.ReadInt();
|
||
MaxMp = _buf.ReadInt();
|
||
Atk = _buf.ReadInt();
|
||
Mat = _buf.ReadInt();
|
||
Speed = _buf.ReadInt();
|
||
AttackActionId = _buf.ReadInt();
|
||
SkillActionId = _buf.ReadInt();
|
||
WeaponItemId = _buf.ReadInt();
|
||
ArmorItemId = _buf.ReadInt();
|
||
Icon = _buf.ReadString();
|
||
Icon_Ref = null;
|
||
}
|
||
|
||
public static CharacterConfig DeserializeCharacterConfig(ByteBuf _buf)
|
||
{
|
||
return new CharacterConfig(_buf);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 角色ID
|
||
/// </summary>
|
||
public readonly int Id;
|
||
/// <summary>
|
||
/// 原型名
|
||
/// </summary>
|
||
public readonly string Name;
|
||
/// <summary>
|
||
/// 新存档拥有
|
||
/// </summary>
|
||
public readonly bool InitiallyOwned;
|
||
/// <summary>
|
||
/// 基础HP上限
|
||
/// </summary>
|
||
public readonly int MaxHp;
|
||
/// <summary>
|
||
/// 基础MP上限
|
||
/// </summary>
|
||
public readonly int MaxMp;
|
||
/// <summary>
|
||
/// 攻击力
|
||
/// </summary>
|
||
public readonly int Atk;
|
||
/// <summary>
|
||
/// 魔力
|
||
/// </summary>
|
||
public readonly int Mat;
|
||
/// <summary>
|
||
/// 速度
|
||
/// </summary>
|
||
public readonly int Speed;
|
||
/// <summary>
|
||
/// 普通攻击行动ID
|
||
/// </summary>
|
||
public readonly int AttackActionId;
|
||
/// <summary>
|
||
/// 唯一技能行动ID
|
||
/// </summary>
|
||
public readonly int SkillActionId;
|
||
/// <summary>
|
||
/// 初始武器ID,0为空
|
||
/// </summary>
|
||
public readonly int WeaponItemId;
|
||
/// <summary>
|
||
/// 初始防具ID,0为空
|
||
/// </summary>
|
||
public readonly int ArmorItemId;
|
||
/// <summary>
|
||
/// 图标资源配置
|
||
/// </summary>
|
||
public readonly string Icon;
|
||
public SpriteConfig Icon_Ref;
|
||
|
||
public const int __ID__ = 676994987;
|
||
public override int GetTypeId() => __ID__;
|
||
|
||
public void ResolveRef(Tables tables)
|
||
{
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Icon_Ref = tables.TbSpriteConfig.GetOrDefault(Icon);
|
||
}
|
||
|
||
public override string ToString()
|
||
{
|
||
return "{ "
|
||
+ "id:" + Id + ","
|
||
+ "name:" + Name + ","
|
||
+ "initiallyOwned:" + InitiallyOwned + ","
|
||
+ "maxHp:" + MaxHp + ","
|
||
+ "maxMp:" + MaxMp + ","
|
||
+ "atk:" + Atk + ","
|
||
+ "mat:" + Mat + ","
|
||
+ "speed:" + Speed + ","
|
||
+ "attackActionId:" + AttackActionId + ","
|
||
+ "skillActionId:" + SkillActionId + ","
|
||
+ "weaponItemId:" + WeaponItemId + ","
|
||
+ "armorItemId:" + ArmorItemId + ","
|
||
+ "icon:" + Icon + ","
|
||
+ "}";
|
||
}
|
||
}
|
||
|
||
}
|