class_engine.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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:`String<class_string>` | :ref:`get_custom_level<class_Engine_get_custom_level>` **(** **)** const |
  14. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_frames_drawn<class_Engine_get_frames_drawn>` **(** **)** |
  16. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`float<class_float>` | :ref:`get_frames_per_second<class_Engine_get_frames_per_second>` **(** **)** const |
  18. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`get_iterations_per_second<class_Engine_get_iterations_per_second>` **(** **)** const |
  20. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`MainLoop<class_mainloop>` | :ref:`get_main_loop<class_Engine_get_main_loop>` **(** **)** const |
  22. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`float<class_float>` | :ref:`get_target_fps<class_Engine_get_target_fps>` **(** **)** const |
  24. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`float<class_float>` | :ref:`get_time_scale<class_Engine_get_time_scale>` **(** **)** |
  26. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`Dictionary<class_dictionary>` | :ref:`get_version_info<class_Engine_get_version_info>` **(** **)** const |
  28. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`is_in_fixed_frame<class_Engine_is_in_fixed_frame>` **(** **)** const |
  30. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`set_iterations_per_second<class_Engine_set_iterations_per_second>` **(** :ref:`int<class_int>` iterations_per_second **)** |
  32. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`set_target_fps<class_Engine_set_target_fps>` **(** :ref:`int<class_int>` target_fps **)** |
  34. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`set_time_scale<class_Engine_set_time_scale>` **(** :ref:`float<class_float>` time_scale **)** |
  36. +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  37. Member Function Description
  38. ---------------------------
  39. .. _class_Engine_get_custom_level:
  40. - :ref:`String<class_string>` **get_custom_level** **(** **)** const
  41. Returns the value of the commandline argument "-level".
  42. .. _class_Engine_get_frames_drawn:
  43. - :ref:`int<class_int>` **get_frames_drawn** **(** **)**
  44. Return the total amount of frames drawn.
  45. .. _class_Engine_get_frames_per_second:
  46. - :ref:`float<class_float>` **get_frames_per_second** **(** **)** const
  47. Returns the frames per second of the running game.
  48. .. _class_Engine_get_iterations_per_second:
  49. - :ref:`int<class_int>` **get_iterations_per_second** **(** **)** const
  50. Return the amount of fixed iterations per second (for fixed process and physics).
  51. .. _class_Engine_get_main_loop:
  52. - :ref:`MainLoop<class_mainloop>` **get_main_loop** **(** **)** const
  53. Return the main loop object (see :ref:`MainLoop<class_mainloop>` and :ref:`SceneTree<class_scenetree>`).
  54. .. _class_Engine_get_target_fps:
  55. - :ref:`float<class_float>` **get_target_fps** **(** **)** const
  56. .. _class_Engine_get_time_scale:
  57. - :ref:`float<class_float>` **get_time_scale** **(** **)**
  58. .. _class_Engine_get_version_info:
  59. - :ref:`Dictionary<class_dictionary>` **get_version_info** **(** **)** const
  60. Returns the current engine version information in a Dictionary.
  61. "major" - Holds the major version number as a String
  62. "minor" - Holds the minor version number as a String
  63. "patch" - Holds the patch version number as a String
  64. "status" - Holds the status (e.g. "beta", "rc1", "rc2", ... "stable") as a String
  65. "revision" - Holds the revision (e.g. "custom-build") as a String
  66. "string" - major + minor + patch + status + revision in a single String
  67. .. _class_Engine_is_in_fixed_frame:
  68. - :ref:`bool<class_bool>` **is_in_fixed_frame** **(** **)** const
  69. .. _class_Engine_set_iterations_per_second:
  70. - void **set_iterations_per_second** **(** :ref:`int<class_int>` iterations_per_second **)**
  71. Set the amount of fixed iterations per second (for fixed process and physics).
  72. .. _class_Engine_set_target_fps:
  73. - void **set_target_fps** **(** :ref:`int<class_int>` target_fps **)**
  74. .. _class_Engine_set_time_scale:
  75. - void **set_time_scale** **(** :ref:`float<class_float>` time_scale **)**