mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
52 lines
1.6 KiB
C#
52 lines
1.6 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 sealed partial class Sequence : ai.ComposeNode
|
|
{
|
|
public Sequence(JsonElement _buf) : base(_buf)
|
|
{
|
|
{ var __json0 = _buf.GetProperty("children"); Children = new System.Collections.Generic.List<ai.FlowNode>(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { ai.FlowNode __v0; __v0 = ai.FlowNode.DeserializeFlowNode(__e0); Children.Add(__v0); } }
|
|
}
|
|
|
|
public static Sequence DeserializeSequence(JsonElement _buf)
|
|
{
|
|
return new ai.Sequence(_buf);
|
|
}
|
|
|
|
public readonly System.Collections.Generic.List<ai.FlowNode> Children;
|
|
|
|
public const int __ID__ = -1789006105;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public override void ResolveRef(Tables tables)
|
|
{
|
|
base.ResolveRef(tables);
|
|
foreach (var _e in Children) { _e?.ResolveRef(tables); }
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "nodeName:" + NodeName + ","
|
|
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
|
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
|
+ "children:" + Luban.StringUtil.CollectionToString(Children) + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|