mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
91 lines
2.2 KiB
C#
91 lines
2.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 GameConfig.TB
|
||
|
{
|
||
|
public sealed partial class TbGOnHookMaps : Luban.BeanBase
|
||
|
{
|
||
|
public TbGOnHookMaps(ByteBuf _buf)
|
||
|
{
|
||
|
Id = _buf.ReadInt();
|
||
|
Name = _buf.ReadString();
|
||
|
MapImage = _buf.ReadString();
|
||
|
MapId = _buf.ReadInt();
|
||
|
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);PetIds = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); PetIds[__index0] = __e0;}}
|
||
|
Sign = _buf.ReadString();
|
||
|
Introduce = _buf.ReadString();
|
||
|
}
|
||
|
|
||
|
public static TbGOnHookMaps DeserializeTbGOnHookMaps(ByteBuf _buf)
|
||
|
{
|
||
|
return new TB.TbGOnHookMaps(_buf);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// id
|
||
|
/// </summary>
|
||
|
public readonly int Id;
|
||
|
/// <summary>
|
||
|
/// 地图名称
|
||
|
/// </summary>
|
||
|
public readonly string Name;
|
||
|
/// <summary>
|
||
|
/// 地图图片
|
||
|
/// </summary>
|
||
|
public readonly string MapImage;
|
||
|
/// <summary>
|
||
|
/// 地图场景Id
|
||
|
/// </summary>
|
||
|
public readonly int MapId;
|
||
|
/// <summary>
|
||
|
/// 地图上的宠物列表
|
||
|
/// </summary>
|
||
|
public readonly int[] PetIds;
|
||
|
/// <summary>
|
||
|
/// 地图标识(一般是地图的类名)
|
||
|
/// </summary>
|
||
|
public readonly string Sign;
|
||
|
/// <summary>
|
||
|
/// 地图介绍
|
||
|
/// </summary>
|
||
|
public readonly string Introduce;
|
||
|
|
||
|
public const int __ID__ = 1197577778;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "id:" + Id + ","
|
||
|
+ "name:" + Name + ","
|
||
|
+ "mapImage:" + MapImage + ","
|
||
|
+ "mapId:" + MapId + ","
|
||
|
+ "petIds:" + Luban.StringUtil.CollectionToString(PetIds) + ","
|
||
|
+ "sign:" + Sign + ","
|
||
|
+ "introduce:" + Introduce + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|