Freeciv-3.2: generate_packets.RawFieldType Class Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Public Member Functions
generate_packets.RawFieldType Class Reference
Inheritance diagram for generate_packets.RawFieldType:

## Public Member Functions

"FieldType" | array (self, SizeInfo size)
str | __str__ (self)
str | __repr__ (self)

## Detailed Description

    Abstract base class (ABC) for classes representing types defined in a
    packets definition file. These types may require the addition of a size
    in order to be usable; see the array() method and the FieldType class.

Definition at line 532 of file generate_packets.py.

## Member Function Documentation

## ◆ __repr__()

str generate_packets.RawFieldType.__repr__ | ( |  | self | ) |

Definition at line 548 of file generate_packets.py.

## ◆ __str__()

str generate_packets.RawFieldType.__str__ | ( |  | self | ) |

Reimplemented in generate_packets.NeedSizeType, generate_packets.BasicType, generate_packets.FloatType, generate_packets.SizedType, and generate_packets.ArrayType.

Definition at line 545 of file generate_packets.py.

## ◆ array()

"FieldType" generate_packets.RawFieldType.array | ( |  | self,
|  | SizeInfo | size
| ) |  |

    Add an array size to this field type, either to make a type which
    needs a size fully useable, or to make an array type with self as
    the element type.

Reimplemented in generate_packets.NeedSizeType, and generate_packets.FieldType.

Definition at line 538 of file generate_packets.py.