Freeciv-3.3
|
Additional Inherited Members | |
![]() | |
size | |
![]() | |
dataio_type | |
public_type | |
![]() | |
SizeInfo | size |
![]() | |
str | dataio_type |
str | public_type |
str | DEFAULT_REGISTRY = TypeRegistry(BasicType) |
![]() | |
bool | foldable = False |
bool | complex = False |
![]() | |
str | FieldTypeConstructor = typing.Callable[[str, str], RawFieldType] |
![]() | |
_compat_keys (self, Location location, str packet) | |
Type information for a string field
Definition at line 1260 of file generate_packets.py.
Reimplemented from generate_packets.SizedType.
Definition at line 1263 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.BasicType.
Definition at line 1282 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.SizedType.
Definition at line 1277 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.SizedType.
Definition at line 1272 of file generate_packets.py.
str generate_packets.StringType.get_code_get | ( | self, | |
Location | location, | ||
str | packet, | ||
bool | deep_diff = False |
||
) |
Generate a code snippet reading a field of this type from the dataio stream.
Reimplemented from generate_packets.BasicType.
Definition at line 1287 of file generate_packets.py.