Add Makefile and format rust core
This commit is contained in:
parent
bd91818682
commit
c74043b4c5
5
Makefile
Normal file
5
Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
rust_build:
|
||||
cd rust && cargo build
|
||||
|
||||
rust_fmt:
|
||||
cd rust && cargo fmt
|
@ -103,7 +103,11 @@ impl PlayerServerNode {
|
||||
Some(map) => map,
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user