Freeciv-3.3
|
Data Fields | |
size | |
![]() | |
dataio_type | |
public_type | |
Static Public Attributes | |
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] |
Additional Inherited Members | |
![]() | |
_compat_keys (self, Location location, str packet) | |
Abstract base class (ABC) for field types that include a size
Definition at line 1226 of file generate_packets.py.
Reimplemented from generate_packets.BasicType.
Reimplemented in generate_packets.StringType, and generate_packets.MemoryType.
Definition at line 1232 of file generate_packets.py.
str generate_packets.SizedType.__str__ | ( | self | ) |
Reimplemented from generate_packets.BasicType.
Definition at line 1256 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.
Reimplemented in generate_packets.StringType, and generate_packets.MemoryType.
Definition at line 1253 of file generate_packets.py.
Generate a code snippet declaring a field with this type in a packet struct.
Reimplemented from generate_packets.BasicType.
Definition at line 1236 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.
Reimplemented in generate_packets.StringType, and generate_packets.MemoryType.
Definition at line 1249 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.BasicType.
Definition at line 1241 of file generate_packets.py.
|
static |
Definition at line 1229 of file generate_packets.py.
generate_packets.SizedType.size |
Definition at line 1234 of file generate_packets.py.