//------------------------------------------------------------------------------
//
// 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;
using AlicizaX.Config;
namespace Game.Config
{
public sealed partial class CmdArgs : Luban.BeanBase
{
public CmdArgs(CmdType Cmd, string[] Args)
{
this.Cmd = Cmd;
this.Args = Args;
PostInit();
}
public CmdArgs(ByteBuf _buf)
{
Cmd = (CmdType)_buf.ReadInt();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Args = new string[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { string __e0;__e0 = _buf.ReadString(); Args[__index0] = __e0;}}
// Localization Key Begin
// Localization Key End
PostInit();
}
public static CmdArgs DeserializeCmdArgs(ByteBuf _buf)
{
return new CmdArgs(_buf);
}
public CmdType Cmd { private set; get; }
public string[] Args { private set; get; }
public const int __ID__ = -1746783977;
public override int GetTypeId() => __ID__;
public void ResolveRef(TablesComponent tables)
{
PostResolveRef();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "cmd:" + Cmd + ","
+ "Args:" + StringUtil.CollectionToString(Args) + ","
+ "}";
}
partial void PostInit();
partial void PostResolveRef();
}
}