feat: 自动战斗新增引航者试炼支持,"MoveCamera" / "移动镜头" 新字段

This commit is contained in:
MistEO
2023-01-10 23:25:05 +08:00
parent e967d98fbe
commit 97266bfa45
6 changed files with 80 additions and 7 deletions

View File

@@ -197,6 +197,10 @@ bool asst::BattleProcessTask::do_action(size_t action_index)
ret = true;
break;
case ActionType::MoveCamera:
ret = move_camera(action.distance, true);
break;
case ActionType::SkillDaemon:
ret = wait_until_end();
break;
@@ -223,10 +227,17 @@ const std::string& asst::BattleProcessTask::get_name_from_group(const std::strin
void asst::BattleProcessTask::notify_action(const battle::copilot::Action& action)
{
const static std::unordered_map<ActionType, std::string> ActionNames = {
{ ActionType::Deploy, "Deploy" }, { ActionType::UseSkill, "UseSkill" },
{ ActionType::Retreat, "Retreat" }, { ActionType::SkillDaemon, "SkillDaemon" },
{ ActionType::SwitchSpeed, "SwitchSpeed" }, { ActionType::SkillUsage, "SkillUsage" },
{ ActionType::BulletTime, "BulletTime" }, { ActionType::Output, "Output" },
{ ActionType::Deploy, "Deploy" },
{ ActionType::UseSkill, "UseSkill" },
{ ActionType::Retreat, "Retreat" },
{ ActionType::SkillDaemon, "SkillDaemon" },
{ ActionType::SwitchSpeed, "SwitchSpeed" },
{ ActionType::SkillUsage, "SkillUsage" },
{ ActionType::BulletTime, "BulletTime" },
{ ActionType::Output, "Output" },
{ ActionType::MoveCamera, "MoveCamera" },
{ ActionType::DrawCard, "DrawCard" },
{ ActionType::CheckIfStartOver, "CheckIfStartOver" },
};
json::value info = basic_info_with_what("CopilotAction");