combat bindings: the drone_hit_sphere PC gate sits in bindings/, with no <component>_windows.cpp the ADR names

Open
#2,873 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Read src/runtime/combat/bindings/drone_hit_sphere.cpp and ADR 0050 section 10, then inspect the gate test and the map check for this component. Decide whether the PC gate belongs in a new src/combat/drone/drone_hit_sphere_windows.cpp or should be documented as a binding-level gate in the ADR. Done means the gate test still refuses while an entry is open, the refusal is confirmed by a fresh failing run, and the map check is rerun with generated rows committed if the file moves.

Written by the indexing model from the issue text.

Description

Evidence at 612fe9f22 (the D6 piece's reviewed branch tip, before its fold)

  • src/runtime/combat/bindings/drone_hit_sphere.cpp includes only the rules header src/combat/drone/drone_hit_sphere_rules.h. Its PC-only gate and entry table live in that binding file.
  • No src/combat/drone/drone_hit_sphere_windows.cpp exists on that tip.
  • ADR 0050 section 10 at 6cc9babd6, docs/adr/0050-*.md line 311: "the PC edge is <component>_windows.cpp".

Not shown

  • Whether the gate table and its entries are the PC edge that line 311 names, or a binding-level construct the ADR does not cover. The ADR does not mention a binding's gate table.

Falsifier

  • An ADR 0050 passage that places a binding's gate table and entries in src/runtime/combat/bindings/ with no _windows file for them.

Work

  1. Decide where the PC-only adapter lives. Either move the gate and entry table to src/combat/drone/drone_hit_sphere_windows.cpp (the binding then stays a thin include), or record in ADR 0050 that binding-level gates live in bindings/.
  2. Tests first: the gate test must still refuse while an entry is open after the move, and a fresh failing run must show the refusal.
  3. Re-run the map check for the moved file; commit its rows from the generator.
Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.