{
  "name": "hero",
  "root": {
    "id": 1,
    "name": "Selector",
    "desc": "英雄测试AI",
    "args": {},
    "children": [
      {
        "id": 2,
        "name": "AlwaysFail",
        "children": [
          {
            "id": 3,
            "name": "Once",
            "children": [
              {
                "id": 4,
                "name": "Sequence",
                "children": [
                  {
                    "id": 5,
                    "name": "Listen",
                    "args": {
                      "builtin": "beforeRunTree"
                    },
                    "children": [
                      {
                        "id": 6,
                        "name": "Log",
                        "args": {
                          "message": "=> before run hero"
                        }
                      }
                    ]
                  },
                  {
                    "id": 7,
                    "name": "Listen",
                    "args": {
                      "builtin": "afterRunTree"
                    },
                    "children": [
                      {
                        "id": 8,
                        "name": "Log",
                        "args": {
                          "message": "=> after run hero"
                        }
                      }
                    ]
                  },
                  {
                    "id": 9,
                    "name": "Listen",
                    "args": {
                      "builtin": "treeInterrupted"
                    },
                    "children": [
                      {
                        "id": 10,
                        "name": "Log",
                        "args": {
                          "message": "=> interrupt run hero"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": 11,
        "name": "Sequence",
        "desc": "攻击",
        "args": {},
        "children": [
          {
            "id": 12,
            "name": "FindEnemy",
            "args": {
              "x": 0,
              "y": 0,
              "w": 100,
              "h": 50
            },
            "output": [
              "enemy"
            ]
          },
          {
            "id": 13,
            "name": "Attack",
            "args": {},
            "input": [
              "enemy"
            ]
          },
          {
            "id": 14,
            "name": "Wait",
            "args": {
              "time": 10
            }
          }
        ]
      },
      {
        "id": 15,
        "name": "Sequence",
        "desc": "移动",
        "args": {},
        "children": [
          {
            "id": 16,
            "name": "FindEnemy",
            "args": {
              "w": 1000,
              "h": 500,
              "x": 0,
              "y": 0
            },
            "output": [
              "enemy"
            ]
          },
          {
            "id": 17,
            "name": "MoveToTarget",
            "args": {},
            "input": [
              "enemy"
            ]
          }
        ]
      },
      {
        "id": 18,
        "name": "Sequence",
        "desc": "逃跑",
        "args": {},
        "children": [
          {
            "id": 19,
            "name": "GetHp",
            "args": {},
            "output": [
              "hp"
            ]
          },
          {
            "id": 20,
            "name": "MoveToPos",
            "args": {
              "x": 0,
              "y": 0
            }
          }
        ]
      },
      {
        "id": 21,
        "name": "Idle"
      }
    ]
  },
  "export": true,
  "desc": "英雄测试AI"
}