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

Public Member Functions

bool down (self)
 
bool up (self)
 

Static Public Attributes

 DOWN_ONLY = frozenset({"sc"})
 
 UP_ONLY = frozenset({"cs"})
 
 UNRESTRICTED = frozenset({"sc", "cs"})
 

Detailed Description

Describes the possible combinations of directions for which a packet
can be valid

Definition at line 3171 of file generate_packets.py.

Member Function Documentation

◆ down()

bool generate_packets.Directions.down (   self)
Whether a packet may be sent from server to client

Definition at line 3187 of file generate_packets.py.

◆ up()

bool generate_packets.Directions.up (   self)
Whether a packet may be sent from client to server

Definition at line 3192 of file generate_packets.py.

Field Documentation

◆ DOWN_ONLY

generate_packets.Directions.DOWN_ONLY = frozenset({"sc"})
static

Definition at line 3177 of file generate_packets.py.

◆ UNRESTRICTED

generate_packets.Directions.UNRESTRICTED = frozenset({"sc", "cs"})
static

Definition at line 3183 of file generate_packets.py.

◆ UP_ONLY

generate_packets.Directions.UP_ONLY = frozenset({"cs"})
static

Definition at line 3180 of file generate_packets.py.