AlicizaX/Client/Assets/Scripts/Hotfix/GameProto/Config/Generate/CmdArgs.cs

66 lines
1.8 KiB
C#
Raw Normal View History

2025-01-23 19:06:48 +08:00
//------------------------------------------------------------------------------
// <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 AlicizaX.Config;
2025-03-04 18:40:14 +08:00
namespace Game.Config
2025-01-23 19:06:48 +08:00
{
2025-03-04 18:40:14 +08:00
public sealed partial class CmdArgs : Luban.BeanBase
2025-01-23 19:06:48 +08:00
{
2025-03-04 18:40:14 +08:00
public CmdArgs(CmdType Cmd, string[] Args)
2025-01-23 19:06:48 +08:00
{
2025-03-04 18:40:14 +08:00
this.Cmd = Cmd;
this.Args = Args;
2025-01-23 19:06:48 +08:00
PostInit();
}
2025-03-04 18:40:14 +08:00
public CmdArgs(ByteBuf _buf)
2025-01-23 19:06:48 +08:00
{
2025-03-04 18:40:14 +08:00
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;}}
2025-01-23 19:06:48 +08:00
// Localization Key Begin
// Localization Key End
PostInit();
}
2025-03-04 18:40:14 +08:00
public static CmdArgs DeserializeCmdArgs(ByteBuf _buf)
2025-01-23 19:06:48 +08:00
{
2025-03-04 18:40:14 +08:00
return new CmdArgs(_buf);
2025-01-23 19:06:48 +08:00
}
2025-03-04 18:40:14 +08:00
public CmdType Cmd { private set; get; }
public string[] Args { private set; get; }
public const int __ID__ = -1746783977;
2025-01-23 19:06:48 +08:00
public override int GetTypeId() => __ID__;
public void ResolveRef(TablesComponent tables)
{
PostResolveRef();
}
public void TranslateText(System.Func<string, string, string> translator)
{
}
public override string ToString()
{
return "{ "
2025-03-04 18:40:14 +08:00
+ "cmd:" + Cmd + ","
+ "Args:" + StringUtil.CollectionToString(Args) + ","
2025-01-23 19:06:48 +08:00
+ "}";
}
partial void PostInit();
partial void PostResolveRef();
}
}