class_multiplayerspawner.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/MultiplayerSpawner.xml.
  6. .. _class_MultiplayerSpawner:
  7. MultiplayerSpawner
  8. ==================
  9. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Properties
  11. ----------
  12. +---------------------------------+-------------------------------------------------------------------+------------------+
  13. | :ref:`int<class_int>` | :ref:`spawn_limit<class_MultiplayerSpawner_property_spawn_limit>` | ``0`` |
  14. +---------------------------------+-------------------------------------------------------------------+------------------+
  15. | :ref:`NodePath<class_NodePath>` | :ref:`spawn_path<class_MultiplayerSpawner_property_spawn_path>` | ``NodePath("")`` |
  16. +---------------------------------+-------------------------------------------------------------------+------------------+
  17. Methods
  18. -------
  19. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Object<class_Object>` | :ref:`_spawn_custom<class_MultiplayerSpawner_method__spawn_custom>` **(** :ref:`Variant<class_Variant>` data **)** |virtual| |
  21. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`add_spawnable_scene<class_MultiplayerSpawner_method_add_spawnable_scene>` **(** :ref:`String<class_String>` path **)** |
  23. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`clear_spawnable_scenes<class_MultiplayerSpawner_method_clear_spawnable_scenes>` **(** **)** |
  25. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`String<class_String>` | :ref:`get_spawnable_scene<class_MultiplayerSpawner_method_get_spawnable_scene>` **(** :ref:`int<class_int>` path **)** |const| |
  27. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`get_spawnable_scene_count<class_MultiplayerSpawner_method_get_spawnable_scene_count>` **(** **)** |const| |
  29. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`Node<class_Node>` | :ref:`spawn<class_MultiplayerSpawner_method_spawn>` **(** :ref:`Variant<class_Variant>` data=null **)** |
  31. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+
  32. Signals
  33. -------
  34. .. _class_MultiplayerSpawner_signal_despawned:
  35. - **despawned** **(** :ref:`int<class_int>` scene_id, :ref:`Node<class_Node>` node **)**
  36. ----
  37. .. _class_MultiplayerSpawner_signal_spawned:
  38. - **spawned** **(** :ref:`int<class_int>` scene_id, :ref:`Node<class_Node>` node **)**
  39. Property Descriptions
  40. ---------------------
  41. .. _class_MultiplayerSpawner_property_spawn_limit:
  42. - :ref:`int<class_int>` **spawn_limit**
  43. +-----------+------------------------+
  44. | *Default* | ``0`` |
  45. +-----------+------------------------+
  46. | *Setter* | set_spawn_limit(value) |
  47. +-----------+------------------------+
  48. | *Getter* | get_spawn_limit() |
  49. +-----------+------------------------+
  50. ----
  51. .. _class_MultiplayerSpawner_property_spawn_path:
  52. - :ref:`NodePath<class_NodePath>` **spawn_path**
  53. +-----------+-----------------------+
  54. | *Default* | ``NodePath("")`` |
  55. +-----------+-----------------------+
  56. | *Setter* | set_spawn_path(value) |
  57. +-----------+-----------------------+
  58. | *Getter* | get_spawn_path() |
  59. +-----------+-----------------------+
  60. Method Descriptions
  61. -------------------
  62. .. _class_MultiplayerSpawner_method__spawn_custom:
  63. - :ref:`Object<class_Object>` **_spawn_custom** **(** :ref:`Variant<class_Variant>` data **)** |virtual|
  64. ----
  65. .. _class_MultiplayerSpawner_method_add_spawnable_scene:
  66. - void **add_spawnable_scene** **(** :ref:`String<class_String>` path **)**
  67. ----
  68. .. _class_MultiplayerSpawner_method_clear_spawnable_scenes:
  69. - void **clear_spawnable_scenes** **(** **)**
  70. ----
  71. .. _class_MultiplayerSpawner_method_get_spawnable_scene:
  72. - :ref:`String<class_String>` **get_spawnable_scene** **(** :ref:`int<class_int>` path **)** |const|
  73. ----
  74. .. _class_MultiplayerSpawner_method_get_spawnable_scene_count:
  75. - :ref:`int<class_int>` **get_spawnable_scene_count** **(** **)** |const|
  76. ----
  77. .. _class_MultiplayerSpawner_method_spawn:
  78. - :ref:`Node<class_Node>` **spawn** **(** :ref:`Variant<class_Variant>` data=null **)**
  79. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  80. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  81. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  82. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  83. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  84. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`