{
    // 只能使用本文件中定义的接口，禁止引用 SceneManager 文件夹内的 __ScenePrivate 节点
    "SceneAnyEnterWorld": {
        "desc": "从任意界面进入谷地/武陵/帝江任意一个大世界",
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "__ScenePrivateCloseADBExit",
            "__ScenePrivateAnyEnterWorldSuccess",
            "[JumpBack]__ScenePrivateLogin",
            "[JumpBack]SceneDialogConfirm",
            "[JumpBack]__ScenePrivateNoticeRewardsUpgrade",
            "[JumpBack]__ScenePrivateEndVisitConfirm",
            "[JumpBack]SceneWaitLoadingExit",
            "[JumpBack]__ScenePrivateAnyExit"
        ]
    },
    "SceneEnterMapAny": {
        "desc": "从任意界面进入任意一个地图界面",
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "__ScenePrivateWorldEnterMapAny",
            "[JumpBack]SceneAnyEnterWorld"
        ]
    },
    "SceneEnterWorldFactory": {
        "desc": "从任意界面进入大世界工厂模式",
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "__ScenePrivateAnyEnterWorldFactorySuccess",
            "__ScenePrivateWorldFactoryDisableEnterFactoryActive",
            "__ScenePrivateWorldFactoryNotActiveEnterFactoryActive",
            "__ScenePrivateWorldDijiangEnterFactoryActive",
            "[JumpBack]SceneAnyEnterWorld"
        ]
    },
    "SceneDialogConfirm": {
        "desc": "点击对话框的确认按钮",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    {
                        "recognition": {
                            "type": "TemplateMatch",
                            "param": {
                                "roi": [
                                    290,
                                    360,
                                    670,
                                    210
                                ],
                                "template": [
                                    "SceneManager/DialogCancel.png"
                                ],
                                "threshold": 0.9
                            }
                        }
                    },
                    {
                        "recognition": {
                            "type": "TemplateMatch",
                            "param": {
                                "roi": [
                                    290,
                                    360,
                                    670,
                                    210
                                ],
                                "template": [
                                    "SceneManager/DialogConfirm.png"
                                ],
                                "threshold": 0.9
                            }
                        }
                    }
                ],
                "box_index": 1
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "SceneDialogCancel": {
        "desc": "点击对话框的取消按钮",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    {
                        "recognition": {
                            "type": "TemplateMatch",
                            "param": {
                                "roi": [
                                    290,
                                    360,
                                    670,
                                    210
                                ],
                                "template": [
                                    "SceneManager/DialogCancel.png"
                                ],
                                "threshold": 0.9
                            }
                        }
                    },
                    {
                        "recognition": {
                            "type": "TemplateMatch",
                            "param": {
                                "roi": [
                                    290,
                                    360,
                                    670,
                                    210
                                ],
                                "template": [
                                    "SceneManager/DialogConfirm.png"
                                ],
                                "threshold": 0.9
                            }
                        }
                    }
                ],
                "box_index": 0
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "SceneNoticeRewardsConfirm": {
        "desc": "点击奖励界面的确认按钮",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InNoticeRewards",
                    "CloseRewardsButton"
                ],
                "box_index": 1
            }
        },
        "pre_wait_freezes": {
            "time": 400,
            "timeout": 5000,
            "target": [
                230,
                250,
                800,
                200
            ]
        },
        "action": {
            "type": "Click"
        },
        "post_wait_freezes": {
            "time": 400,
            "timeout": 2000,
            "target": [
                500,
                0,
                280,
                200
            ]
        },
        "next": [
            "__ScenePrivateNoticeRewardsUpgrade",
            "__ScenePrivateNextTrue"
        ]
    },
    "SceneWaitLoadingExit": {
        "desc": "判断当前场景在加载界面，什么都不做，用于等待加载界面消失",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    0,
                    0,
                    200,
                    200
                ],
                "template": [
                    "SceneManager/LoadingIcon.png"
                ]
            }
        },
        "next": [
            "[JumpBack]SceneCheckYellowColor",
            "[JumpBack]SceneCheckTealColor",
            "[JumpBack]SceneCheckPurpleColor",
            "SceneWaitLoadingExit",
            "__ScenePrivateNextTrue"
        ]
    },
    "SceneCheckYellowColor": {
        "desc": "检查颜色准确性:黄色",
        "max_hit": 1,
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "SceneCheckYellowColorSuccess",
            "SceneCheckYellowColorFailed",
            "EmptyNode"
        ]
    },
    "SceneCheckYellowColorSuccess": {
        "desc": "检查颜色准确性:黄色 成功",
        "recognition": {
            "type": "ColorMatch",
            "param": {
                "roi": [
                    0,
                    480,
                    65,
                    85
                ],
                "method": 40,
                "lower": [
                    30,
                    255,
                    1
                ],
                "upper": [
                    30,
                    255,
                    255
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0
    },
    "SceneCheckYellowColorFailed": {
        "desc": "检查颜色准确性:黄色 失败",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    0,
                    0,
                    200,
                    200
                ],
                "template": [
                    "SceneManager/LoadingIcon.png"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "SceneCheckColorFailedScreenShot"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "<span style=\"color: red; font-weight: bold;\">识别颜色失败，请尝试关闭滤镜:</span><span style=\"color: #807F00; font-weight: bold;\">黄色 (#807F00)</span>"
        }
    },
    "SceneCheckTealColor": {
        "desc": "检查颜色准确性:青色",
        "max_hit": 1,
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "SceneCheckTealColorSuccess",
            "SceneCheckTealColorFailed",
            "EmptyNode"
        ]
    },
    "SceneCheckTealColorSuccess": {
        "desc": "检查颜色准确性:青色 成功",
        "recognition": {
            "type": "ColorMatch",
            "param": {
                "roi": [
                    0,
                    518,
                    65,
                    85
                ],
                "method": 40,
                "lower": [
                    90,
                    255,
                    1
                ],
                "upper": [
                    90,
                    255,
                    255
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0
    },
    "SceneCheckTealColorFailed": {
        "desc": "检查颜色准确性:青色 失败",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    0,
                    0,
                    200,
                    200
                ],
                "template": [
                    "SceneManager/LoadingIcon.png"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "SceneCheckColorFailedScreenShot"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "<span style=\"color: red; font-weight: bold;\">识别颜色失败，请尝试关闭滤镜:</span><span style=\"color: #007F7F; font-weight: bold;\">青色 (#007F7F)</span>"
        }
    },
    "SceneCheckPurpleColor": {
        "desc": "检查颜色准确性:紫色",
        "max_hit": 1,
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "SceneCheckPurpleColorSuccess",
            "SceneCheckPurpleColorFailed",
            "EmptyNode"
        ]
    },
    "SceneCheckPurpleColorSuccess": {
        "desc": "检查颜色准确性:紫色 成功",
        "recognition": {
            "type": "ColorMatch",
            "param": {
                "roi": [
                    0,
                    553,
                    65,
                    85
                ],
                "method": 40,
                "lower": [
                    150,
                    255,
                    1
                ],
                "upper": [
                    150,
                    255,
                    255
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0
    },
    "SceneCheckPurpleColorFailed": {
        "desc": "检查颜色准确性:紫色 失败",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    0,
                    0,
                    200,
                    200
                ],
                "template": [
                    "SceneManager/LoadingIcon.png"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "rate_limit": 0,
        "next": [
            "SceneCheckColorFailedScreenShot"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "<span style=\"color: red; font-weight: bold;\">识别颜色失败，请尝试关闭滤镜:</span><span style=\"color: #80007F; font-weight: bold;\">紫色 (#80007F)</span>"
        }
    },
    "SceneCheckColorFailedScreenShot": {
        "desc": "检查颜色准确性失败时，截图保存到 debug 目录",
        "max_hit": 1,
        "pre_delay": 0,
        "action": {
            "type": "Screencap"
        },
        "post_delay": 0,
        "rate_limit": 0
    }
}
