KRPC#

Provides functionality to interact with the server: its status and services, the connected clients, the game scene and pause state, and holding the game on a physics tick. The expressions build server side functions.

Example#

The following example prints the version of the server:

#include <iostream>
#include <krpc.hpp>
#include <krpc/services/krpc.hpp>

int main() {
  auto conn = krpc::connect("KRPC Example");
  krpc::services::KRPC krpc(conn);
  std::cout << krpc.get_status().version << std::endl;
}