53 lines
1.4 KiB
C#
Raw Normal View History

2023-11-05 03:26:09 +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 System.Text.Json;
namespace cfg.ai
{
public abstract partial class Service : ai.Node
{
public Service(JsonElement _buf) : base(_buf)
{
}
public static Service DeserializeService(JsonElement _buf)
{
switch (_buf.GetProperty("$type").GetString())
{
case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf);
case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf);
case "ChooseTarget": return new ai.ChooseTarget(_buf);
case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf);
case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf);
case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf);
default: throw new SerializationException();
}
}
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "nodeName:" + NodeName + ","
+ "}";
}
}
}