openlegends-server 0.3.0

OpenLegends Game Server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::Log;
use openlegends_server::api::server::*;

pub fn about(log: &Log) -> String {
    log.notice("Server about request".to_string());
    about::Response::new().to_json().unwrap() // @TODO handle
}

pub fn status(log: &Log) -> String {
    log.notice("Server status request".to_string());
    status::Response::build(true).to_json().unwrap() // @TODO handle
}