Freeciv-3.3
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Static Public Attributes
generate_packets.NeedSizeType Class Reference
+ Inheritance diagram for generate_packets.NeedSizeType:

Public Member Functions

 __init__ (self, str dataio_type, str public_type, typing.Callable[[str, str, SizeInfo], "FieldType"] cls)
 
"FieldType" array (self, SizeInfo size)
 
str __str__ (self)
 
- Public Member Functions inherited from generate_packets.RawFieldType
str __repr__ (self)
 

Data Fields

 dataio_type
 
 public_type
 
 cls
 

Static Public Attributes

str dataio_type
 
str public_type
 
typing cls .Callable[[str, str, SizeInfo], "FieldType"]
 
- Static Public Attributes inherited from generate_packets.RawFieldType
str FieldTypeConstructor = typing.Callable[[str, str], RawFieldType]
 

Detailed Description

Helper class for field types that require a size to be usable.

Definition at line 755 of file generate_packets.py.

Constructor & Destructor Documentation

◆ __init__()

generate_packets.NeedSizeType.__init__ (   self,
str  dataio_type,
str  public_type,
typing.Callable[[str, str, SizeInfo], "FieldType"]  cls 
)

Definition at line 767 of file generate_packets.py.

Member Function Documentation

◆ __str__()

str generate_packets.NeedSizeType.__str__ (   self)

Reimplemented from generate_packets.RawFieldType.

Definition at line 776 of file generate_packets.py.

◆ array()

"FieldType" generate_packets.NeedSizeType.array (   self,
SizeInfo  size 
)
Add an array size to make a usable type.

Reimplemented from generate_packets.RawFieldType.

Definition at line 772 of file generate_packets.py.

Field Documentation

◆ cls [1/2]

typing generate_packets.NeedSizeType.cls .Callable[[str, str, SizeInfo], "FieldType"]
static

Definition at line 764 of file generate_packets.py.

◆ cls [2/2]

generate_packets.NeedSizeType.cls

Definition at line 770 of file generate_packets.py.

◆ dataio_type [1/2]

str generate_packets.NeedSizeType.dataio_type
static

Definition at line 758 of file generate_packets.py.

◆ dataio_type [2/2]

generate_packets.NeedSizeType.dataio_type

Definition at line 768 of file generate_packets.py.

◆ public_type [1/2]

str generate_packets.NeedSizeType.public_type
static

Definition at line 761 of file generate_packets.py.

◆ public_type [2/2]

generate_packets.NeedSizeType.public_type

Definition at line 769 of file generate_packets.py.