Files

63 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <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 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);
}
/// <summary>
/// 资源键
/// </summary>
public readonly string Key;
/// <summary>
/// 图集路径(相对于 Assets/GameMain/Textures)
/// </summary>
public readonly string AtlasPath;
/// <summary>
/// Sprite 索引(-1 表示整张图)
/// </summary>
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 + ","
+ "}";
}
}
}