feat: pipe/wire path building API + oni_commander.py high-level commands
New Mod endpoints: - POST /api/action/build_pipe: build gas/liquid pipe path (x1,y1)->(x2,y2) with bridge option - POST /api/action/build_wire: build wire path with types: regular, heavy, conductive, heavy_conductive New Python tool: tools/oni_commander.py High-level commands that combine multiple low-level API calls: - diagnose: full diagnostic (power, CO2, temp, diseases, pipes) - fix_co2: auto-detect CO2 pockets and dig vent shafts - fix_overload: detect overloaded circuits with fix suggestions - emergency_o2: auto-check O2 and build OxygenDiffuser/Electrolyzer - expand_base: dig + build walls/floors in one command (one-click room expansion) - build_pipe_line: simplified CLI for pipe path building - build_wire_line: simplified CLI for wire path building All high-level commands auto-pause/resume the game. CLI: build_pipe_line, build_wire_line added to oni_api.py
This commit is contained in:
11
README.md
11
README.md
@ -111,6 +111,17 @@ python3 tools/oni_api.py batch docs/batch_example.json # 执行批量建造计
|
||||
# 优先级管理
|
||||
python3 tools/oni_api.py priority_global dig 7 # 全局挖掘优先级设为 7
|
||||
python3 tools/oni_api.py priority_type Electrolyzer 9 # 电解器建造优先级设为 9
|
||||
|
||||
# 管道/电线路径
|
||||
python3 tools/oni_api.py build_pipe_line liquid 42 40 48 40 # 铺设液体管道
|
||||
python3 tools/oni_api.py build_wire_line regular 42 40 48 40 # 铺设电线
|
||||
|
||||
# 高级指令(多个 API 组合)
|
||||
python3 tools/oni_commander.py diagnose # 全面诊断
|
||||
python3 tools/oni_commander.py fix_co2 # 自动处理 CO2
|
||||
python3 tools/oni_commander.py fix_overload # 处理过载电路
|
||||
python3 tools/oni_commander.py emergency_o2 # 紧急制氧
|
||||
python3 tools/oni_commander.py expand_base 40 40 10 8 # 一键拓展房间
|
||||
```
|
||||
|
||||
### `tools/oni_analyzer.py` — 智能分析器
|
||||
|
||||
Reference in New Issue
Block a user