添加图片素材读取流程

This commit is contained in:
huangjun
2026-08-31 10:22:59 +08:00
parent 816335b894
commit fce331da84
42 changed files with 19608 additions and 4003 deletions
@@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// <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 + ","
+ "}";
}
}
}