Freeciv-3.3
|
Data Fields | |
elem | |
![]() | |
struct_type | |
![]() | |
dataio_type | |
public_type | |
Static Public Attributes | |
FieldType | elem |
bool | complex = True |
![]() | |
bool | foldable = False |
bool | complex = False |
![]() | |
str | FieldTypeConstructor = typing.Callable[[str, str], RawFieldType] |
![]() | |
TYPE_PATTERN = re.compile(r"^struct\s+(\w+)$") | |
str | struct_type |
![]() | |
str | dataio_type |
str | public_type |
str | DEFAULT_REGISTRY = TypeRegistry(BasicType) |
Protected Member Functions | |
Location | _sub (self, Location location, int json_step=1) |
![]() | |
_compat_keys (self, Location location, str packet) | |
Type information for a specialized vector field
Definition at line 1884 of file generate_packets.py.
generate_packets.SpecvecType.__init__ | ( | self, | |
StructType | elem | ||
) |
Reimplemented from generate_packets.StructType.
Definition at line 1892 of file generate_packets.py.
str generate_packets.SpecvecType.__str__ | ( | self | ) |
Reimplemented from generate_packets.RawFieldType.
Definition at line 1941 of file generate_packets.py.
Definition at line 1913 of file generate_packets.py.
Generate a code snippet deep-copying a field of this type from one packet struct to another that has already been initialized. Subclasses must override this if self.complex is True
Reimplemented from generate_packets.FieldType.
Definition at line 1903 of file generate_packets.py.
Generate a code snippet deinitializing a field of this type in the packet struct before it gets destroyed. Subclasses must override this if self.complex is True
Reimplemented from generate_packets.FieldType.
Definition at line 1908 of file generate_packets.py.
Generate a code snippet initializing a field of this type in the packet struct, after the struct has already been zeroed. Subclasses must override this if self.complex is True
Reimplemented from generate_packets.FieldType.
Definition at line 1898 of file generate_packets.py.
Generate the loop body for get_code_cmp() This is placed at the very beginning of a scope, so variable declarations are permitted without requiring an extra block.
Reimplemented from generate_packets.SequenceType.
Definition at line 1930 of file generate_packets.py.
str generate_packets.SpecvecType.inner_get | ( | self, | |
Location | location, | ||
str | packet, | ||
bool | deep_diff = False , |
||
int | json_step = 1 |
||
) |
Generate the main part of the loop body for get_code_get()
Reimplemented from generate_packets.SequenceType.
Definition at line 1937 of file generate_packets.py.
str generate_packets.SpecvecType.inner_put | ( | self, | |
Location | location, | ||
str | packet, | ||
"str | None" | diff_packet = None , |
||
int | json_step = 1 |
||
) |
Generate the main part of the loop body for get_code_put()
Reimplemented from generate_packets.SequenceType.
Definition at line 1933 of file generate_packets.py.
Return a code snippet updating the size of a field of this type, or the empty string if this type doesn't need to individually transmit and update its size
Reimplemented from generate_packets.SequenceType.
Definition at line 1921 of file generate_packets.py.
Return a size info object for a field of this type
Reimplemented from generate_packets.SequenceType.
Definition at line 1918 of file generate_packets.py.
Definition at line 1890 of file generate_packets.py.
|
static |
Definition at line 1887 of file generate_packets.py.
generate_packets.SpecvecType.elem |
Definition at line 1896 of file generate_packets.py.