DeltaLoaderDocs
  1. Home
  2. API Wiki
  3. API wiki overview

API wiki overview

Every hand-written header of the public SDK, with its comments, plus the build layout and short recipes.

The API wiki lists every hand-written header of the public repository. The comments in a header say what is proven and what is not. Every call that talks to the game fails closed: it returns false or nullptr when the game does not match.

Headers#

HeaderWhat it gives
audio.hppOpenAL by name, the audio engine, a hook on playing a sound.
camera.hppThe editor camera and the view camera of a world.
console.hppThe console window and the log file.
discord.hppDiscord Rich Presence through the local pipe.
events.hppGame events by name.
flags.hppFlag designs and new flags in the atlas.
game.hppEvery game function by name.
game_state.hppApplication states (menu, game, editors) and their changes.
hook.hppThe hook mechanics: install, replace, remove, plan, arguments of the hooked function.
input.hppKey, char and mouse callbacks, key names and key actions.
instances.hppLive objects of a class (track, list, count).
mapicons.hppThe map icon slots and new marker types.
mesh.hppRead, change and write .mesh files.
mod.hppThe skeleton of a mod: SW_MOD, sw_mod_start / sw_mod_stop, log, sleep, running, rt().
network.hppThe network messages and internal queues by name and id.
obj.hppChecked handles to living objects.
overlay.hppPhysical overlay of mod folders with restore.
physics.hppThe Bullet world: gravity, solver iterations, step time.
render.hppFrame end, OpenGL entry points, shaders, uniforms, render targets, the deferred pipeline.
runtime.hppThe connection to the game: checks, reading and writing memory, hooks by name, classes and vtables.
settings.hppThe game settings.
signature.hppByte signatures and the check of the game build.
start_tiles.hppYour own start card (base) in the menu.
textures.hppRead, change and write .txtr files.
tiles.hppThe tile system: definitions, cells, queueing, events.
trees.hppThe kind of tree per tile or chunk.
ui.hppText and buttons in the main menu by name.
vehicle.hppSpawned vehicles and their components (read only).
vfs.hppVirtual file system: mod folders appear in rom without writing anything.
views.hppNamed fields of game objects.
weather.hppWeather, wind, time of day and the wave event.
world.hppIslands and ocean.

sw/api.hpp includes the friendly headers; each header is also self-contained.

Documentation for game build 1.15.26. Found a mistake? Open an issue.