Add Makefile and format rust core

This commit is contained in:
Nikolai Rodionov 2025-02-01 20:09:36 +01:00
parent bd91818682
commit c74043b4c5
Signed by: allanger
GPG Key ID: 09F8B434D0FDD99B
2 changed files with 11 additions and 2 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
rust_build:
cd rust && cargo build
rust_fmt:
cd rust && cargo fmt

View File

@ -103,7 +103,11 @@ impl PlayerServerNode {
Some(map) => map, Some(map) => map,
None => return, None => return,
}; };
let args = &[casted_bullet_node.to_variant(), 10.to_variant(), 10.to_variant()]; let args = &[
casted_bullet_node.to_variant(),
10.to_variant(),
10.to_variant(),
];
map.call("spawn_bullet", args); map.call("spawn_bullet", args);
} }
} }