Freeciv-3.2
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 2486 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 2502 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 2507 of file generate_packets.py.

Field Documentation

◆ DOWN_ONLY

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

Definition at line 2492 of file generate_packets.py.

◆ UNRESTRICTED

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

Definition at line 2498 of file generate_packets.py.

◆ UP_ONLY

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

Definition at line 2495 of file generate_packets.py.