2025-06-07 17:43:34 +08:00

68 lines
1.7 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;
using SimpleJSON;
namespace cfg.data
{
public sealed partial class DurakHall : Luban.BeanBase
{
public DurakHall(JSONNode _buf)
{
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
{ if(!_buf["bet"].IsNumber) { throw new SerializationException(); } Bet = _buf["bet"]; }
{ if(!_buf["is_tyro"].IsBoolean) { throw new SerializationException(); } IsTyro = _buf["is_tyro"]; }
}
public static DurakHall DeserializeDurakHall(JSONNode _buf)
{
return new data.DurakHall(_buf);
}
/// <summary>
/// 大厅房间id
/// </summary>
public readonly int Id;
/// <summary>
/// 名称
/// </summary>
public readonly string Name;
/// <summary>
/// 赌注
/// </summary>
public readonly int Bet;
/// <summary>
/// 是否新手房
/// </summary>
public readonly bool IsTyro;
public const int __ID__ = 2093658976;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "bet:" + Bet + ","
+ "isTyro:" + IsTyro + ","
+ "}";
}
}
}