//------------------------------------------------------------------------------
//
// 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 SpriteConfig : Luban.BeanBase
{
public SpriteConfig(ByteBuf _buf)
{
Key = _buf.ReadString();
AtlasPath = _buf.ReadString();
SpriteIndex = _buf.ReadInt();
}
public static SpriteConfig DeserializeSpriteConfig(ByteBuf _buf)
{
return new SpriteConfig(_buf);
}
///
/// 资源键
///
public readonly string Key;
///
/// 图集路径(相对于 Assets/GameMain/Textures)
///
public readonly string AtlasPath;
///
/// Sprite 索引(-1 表示整张图)
///
public readonly int SpriteIndex;
public const int __ID__ = -1527849337;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "key:" + Key + ","
+ "atlasPath:" + AtlasPath + ","
+ "spriteIndex:" + SpriteIndex + ","
+ "}";
}
}
}