//------------------------------------------------------------------------------
// <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 DistanceLessThan : ai.Decorator
{
    public DistanceLessThan(JsonElement _buf)  : base(_buf) 
    {
        Actor1Key = _buf.GetProperty("actor1_key").GetString();
        Actor2Key = _buf.GetProperty("actor2_key").GetString();
        Distance = _buf.GetProperty("distance").GetSingle();
        ReverseResult = _buf.GetProperty("reverse_result").GetBoolean();
    }

    public static DistanceLessThan DeserializeDistanceLessThan(JsonElement _buf)
    {
        return new ai.DistanceLessThan(_buf);
    }

    public readonly string Actor1Key;
    public readonly string Actor2Key;
    public readonly float Distance;
    public readonly bool ReverseResult;
   
    public const int __ID__ = -1207170283;
    public override int GetTypeId() => __ID__;

    public override void ResolveRef(Tables tables)
    {
        base.ResolveRef(tables);
        
        
        
        
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "nodeName:" + NodeName + ","
        + "flowAbortMode:" + FlowAbortMode + ","
        + "actor1Key:" + Actor1Key + ","
        + "actor2Key:" + Actor2Key + ","
        + "distance:" + Distance + ","
        + "reverseResult:" + ReverseResult + ","
        + "}";
    }
}

}