Crate mission2teegarden_b_models

Source
Expand description

This create store models and protcoll data, which is used by the communication between pybadeg and pc.

§Protocol:

Every message is neither a Protocoll message or a Gamevent. The KeepAlive is also definded at toplevel, to make it only one byte big, because it is send very frequently to pc. The pc assume that the KeepAlive message is send at least once every second. Otherwise the pc assume that the pypbadge was disconnected.

§Connection Establishment

The pc search for seriell devices at start and does send an ConnectionRequest to each Seriell devices. The pybadge responds with ConnectionResponse. After sending an ConnectionResponse the pybadge start listen to other incomming message too.

Structs§

AvailableCards
count of cards, witch are avaibale for the player
CardIter
An iterator over the variants of Card
Log
NeoPixelColor

Enums§

Card
GameOver
Key
MessageToPc
MessageToPyBadge
ToPcGameEvent
ToPcProtocol
ToPybadgeProtocol
ToPypadeGameEvent