Freeciv-3.3
|
Static Public Member Functions | |
SizeInfo | size_at (Location location) |
Data Fields | |
dataio_type | |
public_type | |
Static Public Attributes | |
str | dataio_type |
str | public_type |
bool | complex = True |
![]() | |
bool | foldable = False |
bool | complex = False |
![]() | |
str | FieldTypeConstructor = typing.Callable[[str, str], RawFieldType] |
Additional Inherited Members | |
![]() | |
_compat_keys (self, Location location, str packet) | |
Type information for a string vector field
Definition at line 1945 of file generate_packets.py.
Definition at line 1956 of file generate_packets.py.
str generate_packets.StrvecType.__str__ | ( | self | ) |
Reimplemented from generate_packets.RawFieldType.
Definition at line 2071 of file generate_packets.py.
Generate a code snippet comparing a field of this type between the given packets and setting `differ` accordingly. The `old` packet is one we know to have been initialized by our own code.
Reimplemented from generate_packets.SequenceType.
Definition at line 2017 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 1995 of file generate_packets.py.
Generate a code snippet declaring a field with this type in a packet struct.
Reimplemented from generate_packets.FieldType.
Definition at line 1966 of file generate_packets.py.
Generate a code snippet shallow-copying a value of this type from dsend arguments into a packet struct.
Reimplemented from generate_packets.FieldType.
Definition at line 1986 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 2006 of file generate_packets.py.
Generate a code snippet factoring a field of this type into a hash computation's `result`.
Reimplemented from generate_packets.FieldType.
Definition at line 2014 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 1980 of file generate_packets.py.
Generate a code fragment declaring a parameter with this type for a handle function. See also self.get_code_handle_arg()
Reimplemented from generate_packets.FieldType.
Definition at line 1971 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 2040 of file generate_packets.py.
str generate_packets.StrvecType.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 2058 of file generate_packets.py.
str generate_packets.StrvecType.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 2048 of file generate_packets.py.
Return a code condition that if TRUE means the field cannot be used normally and should be treated as empty, or None if this never happens
Reimplemented from generate_packets.SequenceType.
Definition at line 2037 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 2032 of file generate_packets.py.
Return a size info object for a field of this type
Reimplemented from generate_packets.SequenceType.
Definition at line 2029 of file generate_packets.py.
Definition at line 1954 of file generate_packets.py.
|
static |
Definition at line 1948 of file generate_packets.py.
generate_packets.StrvecType.dataio_type |
Definition at line 1963 of file generate_packets.py.
|
static |
Definition at line 1951 of file generate_packets.py.
generate_packets.StrvecType.public_type |
Definition at line 1964 of file generate_packets.py.