mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
52 lines
1.3 KiB
C#
52 lines
1.3 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 System.Text.Json;
|
|
|
|
|
|
namespace cfg.ai
|
|
{
|
|
public abstract partial class ComposeNode : ai.FlowNode
|
|
{
|
|
public ComposeNode(JsonElement _buf) : base(_buf)
|
|
{
|
|
}
|
|
|
|
public static ComposeNode DeserializeComposeNode(JsonElement _buf)
|
|
{
|
|
switch (_buf.GetProperty("$type").GetString())
|
|
{
|
|
case "Sequence": return new ai.Sequence(_buf);
|
|
case "Selector": return new ai.Selector(_buf);
|
|
case "SimpleParallel": return new ai.SimpleParallel(_buf);
|
|
default: throw new SerializationException();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public override void ResolveRef(Tables tables)
|
|
{
|
|
base.ResolveRef(tables);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "nodeName:" + NodeName + ","
|
|
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
|
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|