mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
update
This commit is contained in:
52
luban_examples/Projects/CfgValidator/Gen/ai.Service.cs
Normal file
52
luban_examples/Projects/CfgValidator/Gen/ai.Service.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user