Add simple NetworkManager

This commit is contained in:
Sofia 2026-07-15 18:35:37 +03:00
parent 0e83927a0b
commit a588dfe7dd
4 changed files with 40 additions and 1 deletions

View File

@ -11,14 +11,23 @@ config_version=5
[application]
config/name="QuakeBall"
run/main_scene="uid://lahirbqfppvw"
config/features=PackedStringArray("4.7", "Forward Plus")
config/icon="res://icon.svg"
[autoload]
NetworkManagerGlob="*uid://cxuy526twid8s"
[display]
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
[dotnet]
project/assembly_name="QuakeBall"
[physics]
3d/physics_engine="Jolt Physics"
@ -26,4 +35,3 @@ window/stretch/aspect="expand"
[rendering]
rendering_device/driver.windows="d3d12"
renderer/rendering_method="forward_plus"

14
godot/scenes/main.tscn Normal file
View File

@ -0,0 +1,14 @@
[gd_scene format=3 uid="uid://lahirbqfppvw"]
[sub_resource type="BoxMesh" id="BoxMesh_m77kh"]
[node name="Node3D" type="Node3D" unique_id=591926555]
[node name="Camera3D" type="Camera3D" parent="." unique_id=1513321931]
transform = Transform3D(0.85754585, -0.09722054, 0.50513697, 0, 0.98197806, 0.18899518, -0.5144076, -0.16207202, 0.8420912, 1.0974057, 0.86883736, 1.7596759)
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1466304853]
mesh = SubResource("BoxMesh_m77kh")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=75522463]
transform = Transform3D(0.61237246, -0.5, 0.61237246, 0.3535534, 0.8660254, 0.3535534, -0.7071068, 0, 0.7071068, 0, 1, 2)

View File

@ -0,0 +1,3 @@
[gd_scene format=3 uid="uid://cxuy526twid8s"]
[node name="NetworkManager" type="NetworkManager" unique_id=1177599919]

View File

@ -4,3 +4,17 @@ struct MyExtension;
#[gdextension]
unsafe impl ExtensionLibrary for MyExtension {}
#[derive(GodotClass)]
#[class(base=Node)]
struct NetworkManager {
base: Base<Node>,
}
#[godot_api]
impl INode for NetworkManager {
fn init(base: Base<Node>) -> Self {
godot_print!("Hello, world!");
NetworkManager { base }
}
}