{
    "AndroidOpenGame": {
        "pre_delay": 0,
        "action": {
            "type": "StartApp",
            "param": {
                "package": "com.hypergryph.endfield"
            }
        },
        "post_delay": 0,
        "next": [
            "OpenGame"
        ]
    },
    "PCOpenGame": {
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "OpenGame"
        ]
    },
    "OpenGame": {
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "EnterGame",
            "[JumpBack]ClickContinue",
            "[JumpBack]CheckIn",
            "[JumpBack]CollectRewards",
            "[JumpBack]CheckInConfirmButton",
            "[JumpBack]MonthlyCard",
            "[JumpBack]WaitCloseGameButton",
            "[JumpBack]CloseButton",
            "[JumpBack]ConfirmCharacter",
            "[JumpBack]LoginFailed",
            "[JumpBack]WaitLoadingIcon",
            "[JumpBack]WaitLoadingText",
            "[JumpBack]WaitBlackScreen"
        ]
    },
    "WaitBlackScreen": {
        "recognition": {
            "type": "ColorMatch",
            "param": {
                "roi": [
                    657,
                    30,
                    308,
                    124
                ],
                "lower": [
                    0,
                    0,
                    0
                ],
                "upper": [
                    0,
                    0,
                    0
                ]
            }
        }
    },
    "WaitCloseGameButton": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    0,
                    626,
                    69,
                    63
                ],
                "template": "OpenGame/CloseGameButton.png"
            }
        }
    },
    "CheckInConfirmButton": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    519,
                    570,
                    259,
                    149
                ],
                "template": "OpenGame/ConfirmButton.png"
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "LoginFailed": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    477,
                    314,
                    329,
                    59
                ],
                "expected": [
                    "重新挑战",
                    "重新挑戰",
                    "(?i)Retry",
                    "もう一度",
                    "登录失败",
                    "登入失敗",
                    "检查网络",
                    "檢查網路",
                    "状态后重试",
                    "狀態後重試",
                    "Login Failed",
                    "Check Network"
                ]
            }
        },
        "next": [
            "LoginFailureConfirmation"
        ]
    },
    "LoginFailureConfirmation": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    528,
                    417,
                    217,
                    56
                ],
                "expected": [
                    "确认",
                    "確定",
                    "Confirm"
                ]
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "ClickContinue": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    1101,
                    357,
                    158,
                    40
                ],
                "expected": [
                    "继续",
                    "繼續",
                    "(?i)Continue",
                    "続ける",
                    "点击",
                    "點按",
                    "任意",
                    "位置",
                    "Click",
                    "Tap",
                    "anywhere"
                ]
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "WaitLoadingIcon": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    638,
                    272,
                    325,
                    127
                ],
                "template": "OpenGame/LoadingIcon.png"
            }
        }
    },
    "WaitLoadingText": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    1116,
                    651,
                    121,
                    45
                ],
                "roi_offset": [
                    0,
                    0,
                    43,
                    0
                ],
                "expected": [
                    "截止当前",
                    "截至目前",
                    "(?i)Now",
                    "現在",
                    "LOAD",
                    "ING"
                ]
            }
        }
    },
    "EnterGame": {
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InWorld"
                ]
            }
        }
    },
    "MonthlyCard": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    499,
                    458,
                    314,
                    159
                ],
                "expected": [
                    "今日",
                    "(?i)Today",
                    "点击确认今日",
                    "點按確認今日",
                    "Monthly Card",
                    "今日月卡奖励",
                    "今日月卡獎勵"
                ]
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "CheckIn": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    891,
                    257,
                    235,
                    108
                ],
                "expected": [
                    "领取",
                    "領取",
                    "(?i)Claim",
                    "受取",
                    "[Cc]laim"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "CollectRewards",
            "CloseButton"
        ]
    },
    "CollectRewards": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    588,
                    67,
                    111,
                    74
                ],
                "expected": [
                    "获得奖励",
                    "獲得獎勵",
                    "(?i)Rewards\\s*Acquired",
                    "報酬一覧",
                    "Rewards"
                ]
            }
        },
        "action": {
            "type": "Click"
        },
        "next": [
            "CloseButton",
            "[JumpBack]waitCloseButton"
        ]
    },
    "waitCloseButton": {
        "action": {
            "type": "Click"
        }
    },
    "CloseButton": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    928,
                    10,
                    345,
                    281
                ],
                "template": [
                    "OpenGame/CloseButtonPC.png",
                    "OpenGame/CloseButton.png"
                ],
                "green_mask": true,
                "threshold": 0.65
            }
        },
        "action": {
            "type": "Click"
        }
    },
    "ConfirmCharacter": {
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    1,
                    581,
                    211,
                    139
                ],
                "template": [
                    "OpenGame/Character.png"
                ],
                "threshold": 0.9
            }
        },
        "action": {
            "type": "Click"
        }
    }
}
