DC-SDK

Read and write Drift City's files, and write mods that run inside it.

DC-SDK has two targets. dc::sdk is a static library for tools and editors that work on Drift City's files and needs nothing beyond the standard library. dc::runtime is a header-only layer for mods that run inside the game, with the helper that rebases the executable's addresses to where Windows loaded it.

#include <dc/dc.h>

auto table = dc::xlt_read(L"VehicleList.xlt");
if (!table) return fail(table.error().message);

int name = table->col(L"Vehicle Name");
for (size_t i = 0; i < table->size(); ++i)
    print(table->cell(i, name));

What it covers

Errors come back as dc::Result values. The facts it is built on are written up in DC-Encyclopedia.