Packet Protocol

From Terraria Mods Wiki
Jump to: navigation, search

Packet Protocol is a part of Mod Helpers that is meant as an (eventually-complete) upgrade to tModLoader's ModPacket. In a nutshell, it maps your network packets to class fields, therefore removing concerns about the protocol (send and receive, data order, recipient, etc.) from the programmer. The goal is to use better form, and help turn any net code logic/runtime errors into compile-time errors.