97 lines
2.5 KiB
C#
97 lines
2.5 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 Bright.Serialization;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
|
||
|
|
namespace Config.config
|
||
|
|
{
|
||
|
|
public sealed partial class SkinCarConfig : Bright.Config.BeanBase
|
||
|
|
{
|
||
|
|
public SkinCarConfig(ByteBuf _buf)
|
||
|
|
{
|
||
|
|
Id = _buf.ReadString();
|
||
|
|
Name = _buf.ReadString();
|
||
|
|
Hp = _buf.ReadInt();
|
||
|
|
InjuryCoefficient = _buf.ReadFloat();
|
||
|
|
SizeType = _buf.ReadString();
|
||
|
|
Pric = _buf.ReadInt();
|
||
|
|
IsAD = _buf.ReadBool();
|
||
|
|
ADNumber = _buf.ReadInt();
|
||
|
|
PostInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
public static SkinCarConfig DeserializeSkinCarConfig(ByteBuf _buf)
|
||
|
|
{
|
||
|
|
return new config.SkinCarConfig(_buf);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// id
|
||
|
|
/// </summary>
|
||
|
|
public string Id { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 名字
|
||
|
|
/// </summary>
|
||
|
|
public string Name { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 血量
|
||
|
|
/// </summary>
|
||
|
|
public int Hp { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 受伤系数
|
||
|
|
/// </summary>
|
||
|
|
public float InjuryCoefficient { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 大小类型
|
||
|
|
/// </summary>
|
||
|
|
public string SizeType { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 价格
|
||
|
|
/// </summary>
|
||
|
|
public int Pric { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 是否需要看广告
|
||
|
|
/// </summary>
|
||
|
|
public bool IsAD { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 看广告次数
|
||
|
|
/// </summary>
|
||
|
|
public int ADNumber { get; private set; }
|
||
|
|
|
||
|
|
public const int __ID__ = 1665591661;
|
||
|
|
public override int GetTypeId() => __ID__;
|
||
|
|
|
||
|
|
public void Resolve(Dictionary<string, object> _tables)
|
||
|
|
{
|
||
|
|
PostResolve();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public override string ToString()
|
||
|
|
{
|
||
|
|
return "{ "
|
||
|
|
+ "Id:" + Id + ","
|
||
|
|
+ "Name:" + Name + ","
|
||
|
|
+ "Hp:" + Hp + ","
|
||
|
|
+ "InjuryCoefficient:" + InjuryCoefficient + ","
|
||
|
|
+ "SizeType:" + SizeType + ","
|
||
|
|
+ "Pric:" + Pric + ","
|
||
|
|
+ "IsAD:" + IsAD + ","
|
||
|
|
+ "ADNumber:" + ADNumber + ","
|
||
|
|
+ "}";
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void PostInit();
|
||
|
|
partial void PostResolve();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|