Show / Hide Table of Contents

Picture of Architecture

Components

Network

  • Offers basic network connection handling for server and clients.
  • Defines a protocol for client-server communication.
  • Implementation of protocol packet handlers.
  • Connection state transitions for client & server.

Protocol

The protocol describes communication between client and server in multiple stages:

  1. Establish a connection.
  2. Exchange initial world state.
  3. Keep the state in sync. Detailed documentation about the protocol can be found in Network.Protocol.

Sync

Library to declare fields whose values are supposed to be synchronized.

  • Watches for local changes to registered fields.
  • Offers callbacks for local change requests.
  • Offers generic interface to read & write values.

Mod

Handles everything interacting directly with game state or logic.

Issues

  • Persistence should be refactored into a separate layer.
  • Improve this Doc
☀
☾
Back to top Generated by DocFX