Freeciv-3.3
|
Static Public Attributes | |
NeedSizeType | |
cls | |
![]() | |
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 | |
![]() | |
size | |
![]() | |
dataio_type | |
public_type | |
![]() | |
_compat_keys (self, Location location, str packet) | |
Type information for a memory field
Definition at line 1295 of file generate_packets.py.
Reimplemented from generate_packets.SizedType.
Definition at line 1298 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 1312 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 1307 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 1304 of file generate_packets.py.
str generate_packets.MemoryType.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 1327 of file generate_packets.py.
str generate_packets.MemoryType.get_code_put | ( | self, | |
Location | location, | ||
str | packet, | ||
"str | None" | diff_packet = None |
||
) |
Generate a code snippet writing a field of this type to the dataio stream.
Reimplemented from generate_packets.BasicType.
Definition at line 1322 of file generate_packets.py.
|
static |
Definition at line 1335 of file generate_packets.py.
|
static |
Definition at line 1335 of file generate_packets.py.