2faa3ccce3
GwSession führt eine Sitzung als Host oder als Gast und reicht die Nachrichten des Kerns an GDScript weiter. Nur der Host speichert. Die Behandlung interner Fehler liegt jetzt in einem reinen Rust-Teil und hat einen Test, und das Ereignis join_refused nennt den Schlüssel. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
18 lines
533 B
Rust
18 lines
533 B
Rust
//! GDExtension that makes the deterministic core callable from Godot.
|
|
//!
|
|
//! The bridge only translates. Every rule lives in `grovewright-core`, and
|
|
//! everything that is shown, heard or typed lives in the Godot project.
|
|
|
|
mod driver;
|
|
mod events;
|
|
mod session;
|
|
|
|
use godot::prelude::*;
|
|
|
|
struct GrovewrightExtension;
|
|
|
|
// SAFETY: godot-rust requires this marker to register the extension's entry
|
|
// point. The implementation keeps every default and adds no code.
|
|
#[gdextension]
|
|
unsafe impl ExtensionLibrary for GrovewrightExtension {}
|