123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
- .. _class_Engine:
- Engine
- ======
- **Inherits:** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Member Functions
- ----------------
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_string>` | :ref:`get_custom_level<class_Engine_get_custom_level>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_frames_drawn<class_Engine_get_frames_drawn>` **(** **)** |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_frames_per_second<class_Engine_get_frames_per_second>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_iterations_per_second<class_Engine_get_iterations_per_second>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`MainLoop<class_mainloop>` | :ref:`get_main_loop<class_Engine_get_main_loop>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_target_fps<class_Engine_get_target_fps>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_time_scale<class_Engine_get_time_scale>` **(** **)** |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_dictionary>` | :ref:`get_version_info<class_Engine_get_version_info>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_in_fixed_frame<class_Engine_is_in_fixed_frame>` **(** **)** const |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_iterations_per_second<class_Engine_set_iterations_per_second>` **(** :ref:`int<class_int>` iterations_per_second **)** |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_target_fps<class_Engine_set_target_fps>` **(** :ref:`int<class_int>` target_fps **)** |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_time_scale<class_Engine_set_time_scale>` **(** :ref:`float<class_float>` time_scale **)** |
- +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
- Member Function Description
- ---------------------------
- .. _class_Engine_get_custom_level:
- - :ref:`String<class_string>` **get_custom_level** **(** **)** const
- Returns the value of the commandline argument "-level".
- .. _class_Engine_get_frames_drawn:
- - :ref:`int<class_int>` **get_frames_drawn** **(** **)**
- Return the total amount of frames drawn.
- .. _class_Engine_get_frames_per_second:
- - :ref:`float<class_float>` **get_frames_per_second** **(** **)** const
- Returns the frames per second of the running game.
- .. _class_Engine_get_iterations_per_second:
- - :ref:`int<class_int>` **get_iterations_per_second** **(** **)** const
- Return the amount of fixed iterations per second (for fixed process and physics).
- .. _class_Engine_get_main_loop:
- - :ref:`MainLoop<class_mainloop>` **get_main_loop** **(** **)** const
- Return the main loop object (see :ref:`MainLoop<class_mainloop>` and :ref:`SceneTree<class_scenetree>`).
- .. _class_Engine_get_target_fps:
- - :ref:`float<class_float>` **get_target_fps** **(** **)** const
- .. _class_Engine_get_time_scale:
- - :ref:`float<class_float>` **get_time_scale** **(** **)**
- .. _class_Engine_get_version_info:
- - :ref:`Dictionary<class_dictionary>` **get_version_info** **(** **)** const
- Returns the current engine version information in a Dictionary.
- "major" - Holds the major version number as a String
- "minor" - Holds the minor version number as a String
- "patch" - Holds the patch version number as a String
- "status" - Holds the status (e.g. "beta", "rc1", "rc2", ... "stable") as a String
- "revision" - Holds the revision (e.g. "custom-build") as a String
- "string" - major + minor + patch + status + revision in a single String
- .. _class_Engine_is_in_fixed_frame:
- - :ref:`bool<class_bool>` **is_in_fixed_frame** **(** **)** const
- .. _class_Engine_set_iterations_per_second:
- - void **set_iterations_per_second** **(** :ref:`int<class_int>` iterations_per_second **)**
- Set the amount of fixed iterations per second (for fixed process and physics).
- .. _class_Engine_set_target_fps:
- - void **set_target_fps** **(** :ref:`int<class_int>` target_fps **)**
- .. _class_Engine_set_time_scale:
- - void **set_time_scale** **(** :ref:`float<class_float>` time_scale **)**
|