nightshade-api 0.56.0

Procedural high level API for the nightshade game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Prints the command surface as json for the binding code generators: the
//! manifest (field roles and reply kinds) alongside the command and reply
//! schemas. Run with the same features a binding compiles against.

use nightshade_api::prelude::{command_manifest_json, command_reply_schema, command_schema};

fn main() {
    println!(
        "{{\"manifest\":{},\"command_schema\":{},\"reply_schema\":{}}}",
        command_manifest_json(),
        command_schema(),
        command_reply_schema()
    );
}