//------------------------------------------------------------------------------
//
// 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 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);
}
///
/// id
///
public readonly int Id;
///
/// 地图名称
///
public readonly string Name;
///
/// 地图图片
///
public readonly string MapImage;
///
/// 地图场景Id
///
public readonly int MapId;
///
/// 地图上的宠物列表
///
public readonly int[] PetIds;
///
/// 地图标识(一般是地图的类名)
///
public readonly string Sign;
///
/// 地图介绍
///
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 + ","
+ "}";
}
}
}