MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_spawn_argument

Method get_spawn_argument

modules/multiplayer/multiplayer_spawner.cpp:298–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298const Variant MultiplayerSpawner::get_spawn_argument(const ObjectID &p_id) const {
299 const SpawnInfo *info = tracked_nodes.getptr(p_id);
300 return info ? info->args : Variant();
301}
302
303Node *MultiplayerSpawner::instantiate_scene(int p_id) {
304 ERR_FAIL_COND_V_MSG(spawn_limit && spawn_limit <= tracked_nodes.size(), nullptr, "Spawn limit reached!");

Callers 1

_make_spawn_packetMethod · 0.80

Calls 2

VariantClass · 0.50
getptrMethod · 0.45

Tested by

no test coverage detected