You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +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:
@@ -85,7 +85,7 @@ class GDScript : public Script {
|
||||
Map<StringName, MemberInfo> member_indices; //members are just indices to the instantiated script.
|
||||
Map<StringName, Ref<GDScript>> subclasses;
|
||||
Map<StringName, Vector<StringName>> _signals;
|
||||
Vector<MultiplayerAPI::RPCConfig> rpc_functions;
|
||||
Vector<Multiplayer::RPCConfig> rpc_functions;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
||||
@@ -245,7 +245,7 @@ public:
|
||||
virtual void get_constants(Map<StringName, Variant> *p_constants) override;
|
||||
virtual void get_members(Set<StringName> *p_members) override;
|
||||
|
||||
virtual const Vector<MultiplayerAPI::RPCConfig> get_rpc_methods() const override;
|
||||
virtual const Vector<Multiplayer::RPCConfig> get_rpc_methods() const override;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
virtual bool is_placeholder_fallback_enabled() const override { return placeholder_fallback_enabled; }
|
||||
@@ -298,7 +298,7 @@ public:
|
||||
|
||||
void reload_members();
|
||||
|
||||
virtual const Vector<MultiplayerAPI::RPCConfig> get_rpc_methods() const;
|
||||
virtual const Vector<Multiplayer::RPCConfig> get_rpc_methods() const;
|
||||
|
||||
GDScriptInstance();
|
||||
~GDScriptInstance();
|
||||
|
||||
Reference in New Issue
Block a user