Skip to content

feat(EnvironmentMonitoring): 支持不同任务使用不同的视角调整方案#1043

Merged
he0119 merged 2 commits intomainfrom
feat/EnvironmentMonitoring-take-photo
Mar 6, 2026
Merged

feat(EnvironmentMonitoring): 支持不同任务使用不同的视角调整方案#1043
he0119 merged 2 commits intomainfrom
feat/EnvironmentMonitoring-take-photo

Conversation

@he0119
Copy link
Contributor

@he0119 he0119 commented Mar 6, 2026

并且不再共用 max_hit

Summary by Sourcery

支持为每个 EnvironmentMonitoring 任务配置各自独立的视角调整方案,而不再在任务之间共享诸如 max_hit 等公共参数。

New Features:

  • 允许每个 EnvironmentMonitoring 任务在其 JSON 配置中定义自己的相机/视角调整方案。

Enhancements:

  • 解耦共享的 max_hit 及相关参数,使监控任务不再在公共配置中共享视点调优设置。
Original summary in English

Summary by Sourcery

Support distinct view adjustment configurations per EnvironmentMonitoring task without sharing common parameters like max_hit across tasks.

New Features:

  • Allow each EnvironmentMonitoring mission to define its own camera/view adjustment scheme in its JSON configuration.

Enhancements:

  • Decouple shared max_hit and related parameters so monitoring tasks no longer share viewpoint tuning settings in common configs.

Copilot AI review requested due to automatic review settings March 6, 2026 12:39
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好——我已经审查了你的改动,看起来很棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,请考虑分享给更多人 ✨
帮我变得更有用!请在每条评论上点选 👍 或 👎,我会根据你的反馈改进后续评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本 PR 针对 EnvironmentMonitoring(环境监测) 的拍照流程做了结构调整,使不同任务可以配置各自的“视角/朝向调整”方案,并将原先共用的 max_hit 拆分到任务级节点上,避免多任务之间相互消耗命中次数。

Changes:

  • 将原先按方向拆分的 EnvironmentMonitoringTakePhotoUp/Down/Left/Right 合并为统一入口 EnvironmentMonitoringTakePhoto
  • 在拍照失败回退链路中改为使用锚点 EnvironmentMonitoringAdjustCamera 指向“任务专属的调整朝向子任务”。
  • 为多个城郊监测终端任务新增各自的 *AdjustCamera 子任务节点,并在任务进入拍照前设置对应 anchor。

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
assets/resource/pipeline/EnvironmentMonitoring/TakePhoto.json 合并拍照入口,并将回退调整逻辑从 EnvironmentMonitoringSwipeScreen* 改为锚点 EnvironmentMonitoringAdjustCamera
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/IndoorCrops.json 为“室内作物”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/EternalSunset.json 为“栖霞驻影”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/CollapsedTianshiPillar.json 为“天师柱塌陷”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/CleansingJade.json 为“漱玉”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/CisternOriginiumSlugs.json 为“蓄水源石虫”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务(向右滑)
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/BeaconDamagedInBlightTide.json 为“侵蚀潮中损坏的信标”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务(向下滑)
assets/resource/pipeline/EnvironmentMonitoring/OutskirtsMonitoringTerminal/AncientTree.json 为“古树”任务设置 EnvironmentMonitoringAdjustCamera 并新增任务专属调整子任务
Comments suppressed due to low confidence (1)

assets/resource/pipeline/EnvironmentMonitoring/TakePhoto.json:7

  • 现在 EnterCameraModeClick 的失败分支改为跳转到 [JumpBack][Anchor]EnvironmentMonitoringAdjustCamera,但 EnvironmentMonitoringTakePhoto 本身不再设置该 anchor;如果调用方未显式设置(例如 OutskirtsMonitoringTerminal/RainbowFin.json 仍直接进入 EnvironmentMonitoringTakePhotoDirectly 且只设置了 EnvironmentMonitoringBactToTerminal),该 [Anchor] 会解析不到目标节点,导致回退流程失败。建议在 EnvironmentMonitoringTakePhoto 增加一个默认的 EnvironmentMonitoringAdjustCamera anchor(指向一个安全的默认调整/空操作节点),并/或确保所有进入拍照流程的任务在进入前都设置该 anchor。
    "EnvironmentMonitoringTakePhoto": {
        "desc": "环境监测拍照",
        "next": [
            "EnvironmentMonitoringEnterCameraMode",
            "EnvironmentMonitoringTakePhotoDirectly"
        ]

@he0119 he0119 merged commit 1da6cb2 into main Mar 6, 2026
17 checks passed
@he0119 he0119 deleted the feat/EnvironmentMonitoring-take-photo branch March 6, 2026 13:00
MistEO pushed a commit that referenced this pull request Mar 9, 2026
并且不再共用 max_hit

## Summary by Sourcery

支持为每个 EnvironmentMonitoring 任务配置各自独立的视角调整方案,而不再在任务之间共享诸如 `max_hit`
等公共参数。

New Features:
- 允许每个 EnvironmentMonitoring 任务在其 JSON 配置中定义自己的相机/视角调整方案。

Enhancements:
- 解耦共享的 `max_hit` 及相关参数,使监控任务不再在公共配置中共享视点调优设置。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Support distinct view adjustment configurations per
EnvironmentMonitoring task without sharing common parameters like
max_hit across tasks.

New Features:
- Allow each EnvironmentMonitoring mission to define its own camera/view
adjustment scheme in its JSON configuration.

Enhancements:
- Decouple shared max_hit and related parameters so monitoring tasks no
longer share viewpoint tuning settings in common configs.

</details>
MistEO pushed a commit that referenced this pull request Mar 9, 2026
并且不再共用 max_hit

## Summary by Sourcery

支持为每个 EnvironmentMonitoring 任务配置各自独立的视角调整方案,而不再在任务之间共享诸如 `max_hit`
等公共参数。

New Features:
- 允许每个 EnvironmentMonitoring 任务在其 JSON 配置中定义自己的相机/视角调整方案。

Enhancements:
- 解耦共享的 `max_hit` 及相关参数,使监控任务不再在公共配置中共享视点调优设置。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Support distinct view adjustment configurations per
EnvironmentMonitoring task without sharing common parameters like
max_hit across tasks.

New Features:
- Allow each EnvironmentMonitoring mission to define its own camera/view
adjustment scheme in its JSON configuration.

Enhancements:
- Decouple shared max_hit and related parameters so monitoring tasks no
longer share viewpoint tuning settings in common configs.

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants