任务单 #45167

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

开放日期: 2022-07-20 22:43 最后更新: 2022-07-22 20:35

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
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

任务单历史 (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
  • 处理结果 Update from to Accepted
评论

Depends on #45165

2022-07-22 20:35 Updated by: alienvalkyrie
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名