[#12567] 添加 configPos 单位控制
变更摘要
添加 ucontrol configPos 指令,允许单位使用逻辑坐标配置附近建筑的目标位置。该实现不暴露内部信息,将坐标转换为兼容方块使用的 Point2 配置。已通过游戏内多种建筑测试验证。
状态 Open · 目标分支 master ← config-pos
主要变更
添加 ucontrol configPos 指令
允许单位配置附近建筑的目标位置
目标坐标转换为 Point2 配置
不兼容的方块不受影响
作者说明
如果你的 Pull Request 不涉及翻译或服务器列表,请阅读下方的要求列表并勾选每个复选框:
我已阅读贡献指南。
我已确保我的代码可以编译(如适用)。
我已确保此 PR 中的任何新功能在游戏中运行正常(如适用)。
添加了 ucontrol configPos x y tx ty,允许单位使用普通逻辑坐标通过目标位置配置附近的建筑。
这是 #12538 的另一种实现方式。未向用户暴露内部信息。目标坐标在内部转换为兼容方块使用的现有 Point2 配置。没有 Point2 配置处理器的方块不受影响。
已在游戏中使用相位传送带/导管、桥梁传送带/导管和质量驱动器进行了测试。还测试了动力节点,以验证不受支持的配置类型不会受到影响。
GitHub 原文
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Adds ucontrol configPos x y tx ty, allowing units to configure nearby buildings with a target position using normal logic coordinates.
This is a different approach to #12538. No internal information exposed to user. The target coordinates are converted internally to the existing Point2 configuration used by compatible blocks. Blocks without a Point2 configuration handler are left unaffected.
Tested in-game with phase conveyors/conduits, bridge conveyors/conduits, and mass drivers. Also tested with a power node to verify that unsupported configuration types are not affected.
由 MDT GitHub 同步机器人自动同步,中文翻译与摘要由 AI 辅助生成,仅供阅读参考。