You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -136,7 +136,7 @@ private:
|
||||
Map<StringName, EventSignal> event_signals;
|
||||
bool signals_invalidated = true;
|
||||
|
||||
Vector<MultiplayerAPI::RPCConfig> rpc_functions;
|
||||
Vector<Multiplayer::RPCConfig> rpc_functions;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
List<PropertyInfo> exported_members_cache; // members_cache
|
||||
@@ -179,7 +179,7 @@ private:
|
||||
static void update_script_class_info(Ref<CSharpScript> p_script);
|
||||
static void initialize_for_managed_type(Ref<CSharpScript> p_script, GDMonoClass *p_class, GDMonoClass *p_native);
|
||||
|
||||
MultiplayerAPI::RPCMode _member_get_rpc_mode(IMonoClassMember *p_member) const;
|
||||
Multiplayer::RPCMode _member_get_rpc_mode(IMonoClassMember *p_member) const;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
@@ -234,7 +234,7 @@ public:
|
||||
|
||||
int get_member_line(const StringName &p_member) const override;
|
||||
|
||||
const Vector<MultiplayerAPI::RPCConfig> get_rpc_methods() const override;
|
||||
const Vector<Multiplayer::RPCConfig> get_rpc_methods() const override;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
bool is_placeholder_fallback_enabled() const override { return placeholder_fallback_enabled; }
|
||||
@@ -311,7 +311,7 @@ public:
|
||||
void refcount_incremented() override;
|
||||
bool refcount_decremented() override;
|
||||
|
||||
const Vector<MultiplayerAPI::RPCConfig> get_rpc_methods() const override;
|
||||
const Vector<Multiplayer::RPCConfig> get_rpc_methods() const override;
|
||||
|
||||
void notification(int p_notification) override;
|
||||
void _call_notification(int p_notification);
|
||||
|
||||
Reference in New Issue
Block a user