You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Net] Move multiplayer to core subdir, split RPCManager.
Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
This commit is contained in:
@@ -127,9 +127,9 @@ void GDAPI godot_nativescript_register_method(void *p_gdnative_handle, const cha
|
||||
E->get().methods.insert(p_function_name, method);
|
||||
|
||||
if (p_attr.rpc_type != GODOT_METHOD_RPC_MODE_DISABLED) {
|
||||
MultiplayerAPI::RPCConfig nd;
|
||||
Multiplayer::RPCConfig nd;
|
||||
nd.name = String(p_name);
|
||||
nd.rpc_mode = MultiplayerAPI::RPCMode(p_attr.rpc_type);
|
||||
nd.rpc_mode = Multiplayer::RPCMode(p_attr.rpc_type);
|
||||
E->get().rpc_methods.push_back(nd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user