Freeciv-3.3
|
Protected Member Functions | |
typing.Iterator[str] | _clean_lines (cls, typing.Iterable[str] lines) |
Represents an entire packets definition file
Definition at line 3674 of file generate_packets.py.
generate_packets.PacketsDefinition.__init__ | ( | self, | |
ScriptConfig | cfg, | ||
"TypeRegistry | None" | type_registry = None |
||
) |
Reimplemented from generate_packets.Packet.
Definition at line 3856 of file generate_packets.py.
typing.Iterator[Packet] generate_packets.PacketsDefinition.__iter__ | ( | self | ) |
Definition at line 3868 of file generate_packets.py.
|
protected |
Strip comments and leading/trailing whitespace from the given lines. If a block comment starts in one line and ends in another, the remaining parts are joined together and yielded as one line.
Definition at line 3763 of file generate_packets.py.
"set[str]" generate_packets.PacketsDefinition.all_caps | ( | self | ) |
Set of all capabilities affecting the defined packets
Reimplemented from generate_packets.Packet.
Definition at line 3886 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_delta_stats_report | ( | self | ) |
Code fragment implementing the delta_stats_report() function
Definition at line 3898 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_delta_stats_reset | ( | self | ) |
Code fragment implementing the delta_stats_reset() function
Definition at line 3919 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_enum_packet | ( | self | ) |
Code fragment declaring the packet_type enum
Definition at line 4207 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_packet_destroy | ( | self | ) |
Code fragment implementing the packet_destroy() function
Definition at line 4178 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_packet_functional_capability | ( | self | ) |
Code fragment defining the packet_functional_capability string
Definition at line 3891 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_packet_handlers_fill_capability | ( | self | ) |
Code fragment implementing the packet_handlers_fill_capability() function
Definition at line 4050 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_packet_handlers_fill_initial | ( | self | ) |
Code fragment implementing the packet_handlers_fill_initial() function
Definition at line 3994 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_packet_has_game_info_flag | ( | self | ) |
Code fragment implementing the packet_has_game_info_flag() function
Definition at line 3967 of file generate_packets.py.
str generate_packets.PacketsDefinition.code_packet_name | ( | self | ) |
Code fragment implementing the packet_name() function
Definition at line 3940 of file generate_packets.py.
Define a type alias
Definition at line 3850 of file generate_packets.py.
"typing.Generator[tuple[int, Packet, int], None, int]" generate_packets.PacketsDefinition.iter_by_number | ( | self | ) |
Yield (number, packet, skipped) tuples in order of packet number. skipped is how many numbers were skipped since the last packet Return the maximum packet number (or -1 if there are no packets) when used with `yield from`.
Definition at line 3871 of file generate_packets.py.
generate_packets.PacketsDefinition.parse_clean_lines | ( | self, | |
typing.Iterable[str] | lines | ||
) |
Parse the given lines as type and packet definitions. Comments and blank lines must already be removed beforehand.
Definition at line 3803 of file generate_packets.py.
generate_packets.PacketsDefinition.parse_lines | ( | self, | |
typing.Iterable[str] | lines | ||
) |
Parse the given lines as type and packet definitions.
Definition at line 3799 of file generate_packets.py.
RawFieldType generate_packets.PacketsDefinition.resolve_type | ( | self, | |
str | type_text | ||
) |
Resolve the given type
Definition at line 3844 of file generate_packets.py.
generate_packets.PacketsDefinition.all_caps |
Definition at line 4001 of file generate_packets.py.
|
static |
Definition at line 3740 of file generate_packets.py.
generate_packets.PacketsDefinition.cfg |
Definition at line 3828 of file generate_packets.py.
|
static |
Definition at line 3704 of file generate_packets.py.
|
static |
Definition at line 3677 of file generate_packets.py.
|
static |
Definition at line 3737 of file generate_packets.py.
|
static |
Definition at line 3729 of file generate_packets.py.
Definition at line 3749 of file generate_packets.py.
generate_packets.PacketsDefinition.packets |
Definition at line 3860 of file generate_packets.py.
|
static |
Definition at line 3758 of file generate_packets.py.
generate_packets.PacketsDefinition.packets_by_dirs |
Definition at line 3863 of file generate_packets.py.
Definition at line 3755 of file generate_packets.py.
generate_packets.PacketsDefinition.packets_by_number |
Definition at line 3862 of file generate_packets.py.
Definition at line 3752 of file generate_packets.py.
generate_packets.PacketsDefinition.packets_by_type |
Definition at line 3861 of file generate_packets.py.
generate_packets.PacketsDefinition.resolve_type |
Definition at line 3833 of file generate_packets.py.
|
static |
Definition at line 3722 of file generate_packets.py.
|
static |
Definition at line 3743 of file generate_packets.py.
generate_packets.PacketsDefinition.type_registry |
Definition at line 3858 of file generate_packets.py.
|
static |
Definition at line 3746 of file generate_packets.py.
generate_packets.PacketsDefinition.types |
Definition at line 3859 of file generate_packets.py.