class_engine.rst 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_Engine:
  4. Engine
  5. ======
  6. **Inherits:** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  13. | :ref:`int<class_int>` | :ref:`get_frames_drawn<class_Engine_get_frames_drawn>` **(** **)** |
  14. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_frames_per_second<class_Engine_get_frames_per_second>` **(** **)** const |
  16. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`get_iterations_per_second<class_Engine_get_iterations_per_second>` **(** **)** const |
  18. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`MainLoop<class_mainloop>` | :ref:`get_main_loop<class_Engine_get_main_loop>` **(** **)** const |
  20. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`get_target_fps<class_Engine_get_target_fps>` **(** **)** const |
  22. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`float<class_float>` | :ref:`get_time_scale<class_Engine_get_time_scale>` **(** **)** |
  24. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`Dictionary<class_dictionary>` | :ref:`get_version_info<class_Engine_get_version_info>` **(** **)** const |
  26. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`is_editor_hint<class_Engine_is_editor_hint>` **(** **)** const |
  28. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`is_in_fixed_frame<class_Engine_is_in_fixed_frame>` **(** **)** const |
  30. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`set_editor_hint<class_Engine_set_editor_hint>` **(** :ref:`bool<class_bool>` enabled **)** |
  32. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`set_iterations_per_second<class_Engine_set_iterations_per_second>` **(** :ref:`int<class_int>` iterations_per_second **)** |
  34. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`set_target_fps<class_Engine_set_target_fps>` **(** :ref:`int<class_int>` target_fps **)** |
  36. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`set_time_scale<class_Engine_set_time_scale>` **(** :ref:`float<class_float>` time_scale **)** |
  38. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  39. Member Function Description
  40. ---------------------------
  41. .. _class_Engine_get_frames_drawn:
  42. - :ref:`int<class_int>` **get_frames_drawn** **(** **)**
  43. Return the total amount of frames drawn.
  44. .. _class_Engine_get_frames_per_second:
  45. - :ref:`float<class_float>` **get_frames_per_second** **(** **)** const
  46. Returns the frames per second of the running game.
  47. .. _class_Engine_get_iterations_per_second:
  48. - :ref:`int<class_int>` **get_iterations_per_second** **(** **)** const
  49. Return the amount of fixed iterations per second (for fixed process and physics).
  50. .. _class_Engine_get_main_loop:
  51. - :ref:`MainLoop<class_mainloop>` **get_main_loop** **(** **)** const
  52. Return the main loop object (see :ref:`MainLoop<class_mainloop>` and :ref:`SceneTree<class_scenetree>`).
  53. .. _class_Engine_get_target_fps:
  54. - :ref:`float<class_float>` **get_target_fps** **(** **)** const
  55. .. _class_Engine_get_time_scale:
  56. - :ref:`float<class_float>` **get_time_scale** **(** **)**
  57. .. _class_Engine_get_version_info:
  58. - :ref:`Dictionary<class_dictionary>` **get_version_info** **(** **)** const
  59. Returns the current engine version information in a Dictionary.
  60. "major" - Holds the major version number as a String
  61. "minor" - Holds the minor version number as a String
  62. "patch" - Holds the patch version number as a String
  63. "status" - Holds the status (e.g. "beta", "rc1", "rc2", ... "stable") as a String
  64. "revision" - Holds the revision (e.g. "custom-build") as a String
  65. "string" - major + minor + patch + status + revision in a single String
  66. .. _class_Engine_is_editor_hint:
  67. - :ref:`bool<class_bool>` **is_editor_hint** **(** **)** const
  68. .. _class_Engine_is_in_fixed_frame:
  69. - :ref:`bool<class_bool>` **is_in_fixed_frame** **(** **)** const
  70. .. _class_Engine_set_editor_hint:
  71. - void **set_editor_hint** **(** :ref:`bool<class_bool>` enabled **)**
  72. .. _class_Engine_set_iterations_per_second:
  73. - void **set_iterations_per_second** **(** :ref:`int<class_int>` iterations_per_second **)**
  74. Set the amount of fixed iterations per second (for fixed process and physics).
  75. .. _class_Engine_set_target_fps:
  76. - void **set_target_fps** **(** :ref:`int<class_int>` target_fps **)**
  77. .. _class_Engine_set_time_scale:
  78. - void **set_time_scale** **(** :ref:`float<class_float>` time_scale **)**