DDNet documentation
Loading...
Searching...
No Matches
Overview

This is the main page of the documentation of the DDNet source code.

Structure

The src folder is structured into several folders as follows:

  • android: Platform-specific code for Android systems.
  • antibot: Antibot API integration.
  • base: Cross-platform abstraction layer. Contains many utility functions and abstracts most platform-specific code. Contains functions for string manipulation, IO, filesystem, time, networking, threading, debugging, secure random, hashes etc. Also contains general purpose types and functions for mathematics, 2D/3D/4D vectors, and colors.
  • engine: Game engine. Mostly implements non-gameplay related functionality like graphics, sound, input, higher-level networking etc.
  • game: Gameplay related code. Separated into client, server, map and editor.
  • macos: Platform-specific code for macOS systems.
  • masterping: Tool that collects game server info via an HTTP endpoint and aggregates them.
  • mastersrv: The mastersrv maintains a list of all registered DDNet (and Teeworlds) servers.
  • rust-bridge: Glue to bridge Rust and C++ code.
  • steam: Steam API integration.
  • test: Unit tests.
  • tools: Additional tools for utility and testing.

Refer to the list of Topics for a structured overview of all documented types and functions.

Documentation

We use doxygen to generate this code documentation. The documentation is updated regularly and available at https://codedoc.ddnet.org/

To generate the documentation locally, install doxygen, then run doxygen within the project folder. The documentation will be written to the docs folder.

Resources