Skip to content

Commit 467ddda

Browse files
committed
add overrides for some MultiplayerApi methods to have &self receiver rather than &mut self
1 parent 870c725 commit 467ddda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

godot-codegen/src/special_cases/special_cases.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,13 @@ pub fn is_class_method_const(class_name: &TyName, godot_method: &JsonClassMethod
611611
match (class_name.godot_ty.as_str(), godot_method.name.as_str()) {
612612
// Changed to const.
613613
| ("Object", "to_string")
614+
| ("MultiplayerApi", "has_multiplayer_peer")
615+
| ("MultiplayerApi", "get_multiplayer_peer")
616+
| ("MultiplayerApi", "get_unique_id")
617+
| ("MultiplayerApi", "is_server")
618+
| ("MultiplayerApi", "get_remote_sender_id")
619+
| ("MultiplayerApi", "get_peers")
620+
| ("MultiplayerApi", "get_default_interface")
614621
=> Some(true),
615622

616623
// Changed to mut.

0 commit comments

Comments
 (0)