summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer/multiplayer_spawner.h
diff options
context:
space:
mode:
authorNathan Franke <me@nathan.sh>2022-07-28 18:30:30 -0500
committerNathan Franke <me@nathan.sh>2022-07-30 21:38:19 -0500
commitb7c5aeca8a996176873a31e9c52950823d14aaae (patch)
tree99bb763b142adc69dc363bc6031fec502a2459a0 /modules/multiplayer/multiplayer_spawner.h
parent66d1bb84c380910a50e3176124da5c8821e93097 (diff)
downloadredot-engine-b7c5aeca8a996176873a31e9c52950823d14aaae.tar.gz
document multiplayer replication classes, small changes to multiplayer spawner
Diffstat (limited to 'modules/multiplayer/multiplayer_spawner.h')
-rw-r--r--modules/multiplayer/multiplayer_spawner.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/multiplayer/multiplayer_spawner.h b/modules/multiplayer/multiplayer_spawner.h
index 80bb878a74..fc3befc2d4 100644
--- a/modules/multiplayer/multiplayer_spawner.h
+++ b/modules/multiplayer/multiplayer_spawner.h
@@ -91,7 +91,9 @@ protected:
void _get_property_list(List<PropertyInfo> *p_list) const;
#endif
public:
- Node *get_spawn_node() const { return spawn_node.is_valid() ? Object::cast_to<Node>(ObjectDB::get_instance(spawn_node)) : nullptr; }
+ Node *get_spawn_node() const {
+ return spawn_node.is_valid() ? Object::cast_to<Node>(ObjectDB::get_instance(spawn_node)) : nullptr;
+ }
void add_spawnable_scene(const String &p_path);
int get_spawnable_scene_count() const;
@@ -110,7 +112,7 @@ public:
Node *instantiate_custom(const Variant &p_data);
Node *instantiate_scene(int p_idx);
- GDVIRTUAL1R(Object *, _spawn_custom, const Variant &);
+ GDVIRTUAL1R(Node *, _spawn_custom, const Variant &);
MultiplayerSpawner() {}
};