Incidencia #45167

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

Abrir Fecha: 2022-07-20 22:43 Última actualización: 2022-07-22 20:35

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
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 History (3/4 Histories)

2022-07-20 22:43 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: move top-level parsing into a new PacketsDefinition class" created
2022-07-21 00:09 Updated by: alienvalkyrie
  • Resolución Update from Ninguno to Accepted
Comentario

Depends on #45165

2022-07-22 20:35 Updated by: alienvalkyrie
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar