The lionengine-game-network module is a specialized module for networked games. It contains a specialized high level API, designed to provide the most common tools for any networked game development, including a dedicated architecture.
Here the different packages:
Here a short overview of the high level API and its architecture (only main items are listed here):
Server
: Represents the application that creates the server, hosting clientsClient
: Represents the application that connects to a server
NetworkMessage
: Network message base, designed to be exchanged between clients and serverNetworkMessageChat
: Special network message for the integrated chatNetworkMessageEntity
: Network message base designed to contain entity dataNetworkMessageDecoder
: Network message base decoder, which must be implemented for specific messages decoder
NetworkedWorldServer
: Represents the world on the server side (which is the main world updater, from client data)NetworkedWorldClient
: Represents the world on the client side (which receive world updates, in order to update it locally)
Here an example of a networked game, highlighting some of the main components:
Read next page: Entry point