feat: implemented conclusion selection UI

This commit is contained in:
Sara Gerretsen 2025-11-02 15:07:46 +01:00
parent 5e477d57ff
commit c765f7daf9
12 changed files with 241 additions and 40 deletions

View file

@ -15,6 +15,7 @@ void ServerNode::_bind_methods() {
ClassDB::bind_method(D_METHOD("open"), &self_type::open);
ClassDB::bind_method(D_METHOD("close"), &self_type::close);
ClassDB::bind_method(D_METHOD("is_open"), &self_type::is_open);
ClassDB::bind_method(D_METHOD("send_conclusion", "method", "motive", "murderer"), &self_type::send_conclusion);
ClassDB::bind_static_method(self_type::get_class_static(), "get_singleton", &self_type::get_singleton);
}
@ -75,6 +76,10 @@ ServerNode *ServerNode::get_singleton() {
return singleton_instance;
}
void ServerNode::send_conclusion(NetworkData::ClueID method, NetworkData::ClueID motive, NetworkData::ClueID murderer) {
ydi::server::send::conclusion(method, motive, murderer);
}
bool ServerNode::open() {
return ydi::server::open();
}