Skip to content
0.2.0-dev Download ZIP
55 lines ·1.8 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="GodotInstance" inherits="Object" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Provides access to an embedded Godot instance.
5 </brief_description>
6 <description>
7 GodotInstance represents a running Godot instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API [code]libgodot_create_godot_instance[/code]. Only one may be created per process.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="focus_in">
13 <return type="void" />
14 <description>
15 Notifies the instance that it is now in focus.
16 </description>
17 </method>
18 <method name="focus_out">
19 <return type="void" />
20 <description>
21 Notifies the instance that it is now not in focus.
22 </description>
23 </method>
24 <method name="is_started">
25 <return type="bool" />
26 <description>
27 Returns [code]true[/code] if this instance has been fully started.
28 </description>
29 </method>
30 <method name="iteration">
31 <return type="bool" />
32 <description>
33 Runs a single iteration of the main loop. Returns [code]true[/code] if the engine is attempting to quit.
34 </description>
35 </method>
36 <method name="pause">
37 <return type="void" />
38 <description>
39 Notifies the instance that it is going to be paused.
40 </description>
41 </method>
42 <method name="resume">
43 <return type="void" />
44 <description>
45 Notifies the instance that it is being resumed.
46 </description>
47 </method>
48 <method name="start">
49 <return type="bool" />
50 <description>
51 Finishes this instance's startup sequence. Returns [code]true[/code] on success.
52 </description>
53 </method>
54 </methods>
55</class>