Freeciv-3.3
|
Data Fields | |
float_factor | |
![]() | |
dataio_type | |
public_type | |
Static Public Attributes | |
TYPE_PATTERN = re.compile(r"^([su]float)(\d+)?$") | |
int | float_factor |
![]() | |
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) | |
Type information for a float field
Definition at line 1032 of file generate_packets.py.
Reimplemented from generate_packets.BasicType.
Definition at line 1051 of file generate_packets.py.
Reimplemented from generate_packets.BasicType.
Definition at line 1053 of file generate_packets.py.
Reimplemented from generate_packets.BasicType.
Definition at line 1054 of file generate_packets.py.
str generate_packets.FloatType.__str__ | ( | self | ) |
Reimplemented from generate_packets.BasicType.
Definition at line 1087 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 1070 of file generate_packets.py.
str generate_packets.FloatType.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 1080 of file generate_packets.py.
str generate_packets.FloatType.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 1075 of file generate_packets.py.
|
static |
Definition at line 1046 of file generate_packets.py.
generate_packets.FloatType.float_factor |
Definition at line 1068 of file generate_packets.py.
Definition at line 1035 of file generate_packets.py.