mc_protocol v0.0.2 McProtocol.Packet behaviour
Handles encoding and decoding of packets on the lowest level.
packet bytes <-> packet struct
Summary
Functions
Gets the packet module for the given direction, mode and id combination
Gets the packet id for the given packet module
Functions
Specs
id_module(atom, atom, non_neg_integer) :: module
Gets the packet module for the given direction, mode and id combination.
The returned module will have this module as it’s behaviour.
Specs
module_id(module) :: non_neg_integer
Gets the packet id for the given packet module.