Crate lightyear

source ·
Expand description

Lightyear is a networking library for Bevy. It is designed for server-authoritative multiplayer games; and aims to be both feature-complete and easy-to-use.

You can find more information in the book!

Modules

  • Channels are used to add reliability/ordering on top of the transport layer
  • The Client bevy resource
  • A connection is a wrapper that lets us send message and apply replication
  • Handles dealing with inputs (keyboard presses, mouse clicks) sent from a player (client) to server
  • Netcode.io protocol to establish a connection on top of an unreliable transport
  • Module to group messages into packets
  • Prelude containing commonly used types
  • The Protocol is used to define all the types that can be sent over the network
  • Serialization and deserialization of types
  • Defines the Server bevy resource
  • Shared code between the server and client.
  • Provides an abstraction over an unreliable transport The transport layer is responsible for sending and receiving raw byte arrays packets through the network.
  • Extra utilities Contains a set of useful utilities

Macros

  • This macro is used to build the Protocol struct