Freeciv-3.2
|
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 |
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 398 of file generate_packets.py.
generate_packets.FieldFlags.__init__ | ( | self, | |
typing.Iterable[str] | flag_texts | ||
) |
Definition at line 425 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 410 of file generate_packets.py.
|
static |
Definition at line 402 of file generate_packets.py.
generate_packets.FieldFlags.add_caps |
Definition at line 426 of file generate_packets.py.
Definition at line 422 of file generate_packets.py.
generate_packets.FieldFlags.diff |
Definition at line 437 of file generate_packets.py.
Definition at line 419 of file generate_packets.py.
generate_packets.FieldFlags.is_key |
Definition at line 434 of file generate_packets.py.
Definition at line 405 of file generate_packets.py.
generate_packets.FieldFlags.remove_caps |
Definition at line 429 of file generate_packets.py.