Freeciv-3.2
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Static Public Attributes
generate_packets.FieldFlags Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

generate_packets.FieldFlags.__init__ (   self,
typing.Iterable[str flag_texts 
)

Definition at line 425 of file generate_packets.py.

Member Function Documentation

◆ parse()

"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.

Field Documentation

◆ ADD_CAP_PATTERN

generate_packets.FieldFlags.ADD_CAP_PATTERN = re.compile(r"^add-cap\(([^()]+)\‍)$")
static

Definition at line 402 of file generate_packets.py.

◆ add_caps

generate_packets.FieldFlags.add_caps

Definition at line 426 of file generate_packets.py.

◆ diff [1/2]

bool generate_packets.FieldFlags.diff = False
static

Definition at line 422 of file generate_packets.py.

◆ diff [2/2]

generate_packets.FieldFlags.diff

Definition at line 437 of file generate_packets.py.

◆ is_key [1/2]

bool generate_packets.FieldFlags.is_key = False
static

Definition at line 419 of file generate_packets.py.

◆ is_key [2/2]

generate_packets.FieldFlags.is_key

Definition at line 434 of file generate_packets.py.

◆ REMOVE_CAP_PATTERN

generate_packets.FieldFlags.REMOVE_CAP_PATTERN = re.compile(r"^remove-cap\(([^()]+)\‍)$")
static

Definition at line 405 of file generate_packets.py.

◆ remove_caps

generate_packets.FieldFlags.remove_caps

Definition at line 429 of file generate_packets.py.