Ticket #45167

generate_packets.py: move top-level parsing into a new PacketsDefinition class

Eröffnet am: 2022-07-20 22:43 Letztes Update: 2022-07-22 20:35

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
1

Details

Part of #45166. Create the class mentioned there and move parsing into it. The class should:

  • be Iterable[Packet]
  • have a packets_by_number: dict[int, Packet] map to catch duplicate packet numbers and to help with by-number iteration used in a few places
  • have a packets_by_type: dict[str, Packet] map to catch duplicate packet type names (and to help with potential future by-type things)
  • have a packets_by_dirs: dict[Directions, list[Packet]] map (where Directions is the enum introduced in #45165) to help with the handlers_fill methods

Ticket-Verlauf (3/4 Historien)

2022-07-20 22:43 Aktualisiert von: alienvalkyrie
  • New Ticket "generate_packets.py: move top-level parsing into a new PacketsDefinition class" created
2022-07-21 00:09 Aktualisiert von: alienvalkyrie
  • Lösung Update from Keine to Accepted
Kommentar

Depends on #45165

2022-07-22 20:35 Aktualisiert von: alienvalkyrie
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden