Freeciv-3.3
|
Public Member Functions | |
"FieldFlags" | parse (cls, str flags_text) |
__init__ (self, typing.Iterable[str] flag_texts) | |
Data Fields | |
add_caps | |
remove_caps | |
is_key | |
diff | |
Static Public Attributes | |
ADD_CAP_PATTERN = re.compile(r"^add-cap\(([^()]+)\)$") | |
REMOVE_CAP_PATTERN = re.compile(r"^remove-cap\(([^()]+)\)$") | |
bool | is_key = False |
bool | diff = False |
str | add_caps : "set[str]" |
str | remove_caps : "set[str]" |
Information about flags of a given Field. Multiple Field objects can share one FieldFlags instance, e.g. when defined on the same line.
Definition at line 458 of file generate_packets.py.
generate_packets.FieldFlags.__init__ | ( | self, | |
typing.Iterable[str] | flag_texts | ||
) |
Definition at line 491 of file generate_packets.py.
"FieldFlags" generate_packets.FieldFlags.parse | ( | cls, | |
str | flags_text | ||
) |
Parse a FieldFlags object from a comma-separated flag line
Definition at line 482 of file generate_packets.py.
|
static |
Definition at line 462 of file generate_packets.py.
Definition at line 474 of file generate_packets.py.
generate_packets.FieldFlags.add_caps |
Definition at line 492 of file generate_packets.py.
Definition at line 471 of file generate_packets.py.
generate_packets.FieldFlags.diff |
Definition at line 500 of file generate_packets.py.
Definition at line 468 of file generate_packets.py.
generate_packets.FieldFlags.is_key |
Definition at line 497 of file generate_packets.py.
Definition at line 465 of file generate_packets.py.
Definition at line 477 of file generate_packets.py.
generate_packets.FieldFlags.remove_caps |
Definition at line 493 of file generate_packets.py.