diff --git a/doc/classes/AnimationNodeAdd3.xml b/doc/classes/AnimationNodeAdd3.xml index 25284b23642..307a276044a 100644 --- a/doc/classes/AnimationNodeAdd3.xml +++ b/doc/classes/AnimationNodeAdd3.xml @@ -4,10 +4,10 @@ Blends two of three animations additively inside of an [AnimationNodeBlendTree]. - A resource to add to an [AnimationNodeBlendTree]. Blends two animations together additively out of three based on a value in the [-1.0, 1.0] range. + A resource to add to an [AnimationNodeBlendTree]. Blends two animations together additively out of three based on a value in the [code][-1.0, 1.0][/code] range. This node has three inputs: - The base animation to add to - - A -add animation to blend with when the blend amount is in the [-1.0, 0.0] range. + - A -add animation to blend with when the blend amount is in the [code][-1.0, 0.0][/code] range. - A +add animation to blend with when the blend amount is in the [code][0.0, 1.0][/code] range diff --git a/doc/classes/AnimationNodeBlend3.xml b/doc/classes/AnimationNodeBlend3.xml index 371ec44a2f1..d7d3b0767b4 100644 --- a/doc/classes/AnimationNodeBlend3.xml +++ b/doc/classes/AnimationNodeBlend3.xml @@ -4,10 +4,10 @@ Blends two of three animations linearly inside of an [AnimationNodeBlendTree]. - A resource to add to an [AnimationNodeBlendTree]. Blends two animations together linearly out of three based on a value in the [-1.0, 1.0] range. + A resource to add to an [AnimationNodeBlendTree]. Blends two animations together linearly out of three based on a value in the [code][-1.0, 1.0][/code] range. This node has three inputs: - The base animation - - A -blend animation to blend with when the blend amount is in the [-1.0, 0.0] range. + - A -blend animation to blend with when the blend amount is in the [code][-1.0, 0.0][/code] range. - A +blend animation to blend with when the blend amount is in the [code][0.0, 1.0][/code] range diff --git a/doc/classes/AnimationNodeBlendSpace2D.xml b/doc/classes/AnimationNodeBlendSpace2D.xml index 17b721cc5f1..92d57b78ad2 100644 --- a/doc/classes/AnimationNodeBlendSpace2D.xml +++ b/doc/classes/AnimationNodeBlendSpace2D.xml @@ -161,7 +161,7 @@ The blend space plays the animation of the node the blending position is closest to. Useful for frame-by-frame 2D animations. - Similar to [const BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position. + Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position. diff --git a/doc/classes/AnimationNodeStateMachineTransition.xml b/doc/classes/AnimationNodeStateMachineTransition.xml index e5699b57aa7..feb8847e01d 100644 --- a/doc/classes/AnimationNodeStateMachineTransition.xml +++ b/doc/classes/AnimationNodeStateMachineTransition.xml @@ -13,7 +13,7 @@ Turn on auto advance when this condition is set. The provided name will become a boolean parameter on the [AnimationTree] that can be controlled from code (see [url=https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html#controlling-from-code][/url]). For example, if [member AnimationTree.tree_root] is an [AnimationNodeStateMachine] and [member advance_condition] is set to "idle": [codeblock] $animation_tree["parameters/conditions/idle"] = is_on_floor and linear_velocity.x == 0 - [codeblock] + [/codeblock] Turn on the transition automatically when this state is reached. This works best with [constant SWITCH_MODE_AT_END]. diff --git a/doc/classes/BakedLightmap.xml b/doc/classes/BakedLightmap.xml index 7e01b06bd43..ad743fa26c6 100644 --- a/doc/classes/BakedLightmap.xml +++ b/doc/classes/BakedLightmap.xml @@ -36,6 +36,8 @@ Multiplies the light sources' intensity by this value. For instance, if the value is set to 2, lights will be twice as bright. If the value is set to 0.5, lights will be half as bright. + + If [code]true[/code], lightmap can capture light values greater than [code]1.0[/code]. Turning this off will result in a smaller lightmap. Default value:[code]false[/code]. diff --git a/doc/classes/Bone2D.xml b/doc/classes/Bone2D.xml index 2ba3a8a9c34..b36c6da32f3 100644 --- a/doc/classes/Bone2D.xml +++ b/doc/classes/Bone2D.xml @@ -4,7 +4,7 @@ Joint used with [Skeleton2D] to control and animate other nodes. - Use a hierarchy of [code]Bone2D[/code] bound to a [Skeleton2D] to control, and animate other [class Node2D] nodes. + Use a hierarchy of [code]Bone2D[/code] bound to a [Skeleton2D] to control, and animate other [Node2D] nodes. You can use [code]Bone2D[/code] and [code]Skeleton2D[/code] nodes to animate 2D meshes created with the Polygon 2D UV editor. Each bone has a [member rest] transform that you can reset to with [method apply_rest]. These rest poses are relative to the bone's parent. If in the editor, you can set the rest pose of an entire skeleton using a menu option, from the code, you need to iterate over the bones to set their individual rest poses. @@ -39,7 +39,7 @@ Length of the bone's representation drawn in the editor's viewport in pixels. - Rest transform of the bone. You can reset the node's transforms to this value using [member apply_rest]. + Rest transform of the bone. You can reset the node's transforms to this value using [method apply_rest]. diff --git a/doc/classes/CPUParticles.xml b/doc/classes/CPUParticles.xml index a8aa29a81c2..273b8330336 100644 --- a/doc/classes/CPUParticles.xml +++ b/doc/classes/CPUParticles.xml @@ -68,10 +68,10 @@ Animation speed randomness ratio. Default value: [code]0[/code]. - Each particle's initial color. If [member texture] is defined, it will be multiplied by this color. + Unused for 3D particles. - Each particle's color will vary along this [Gradient]. + Unused for 3D particles. The rate at which particles lose velocity. @@ -86,7 +86,7 @@ Particle draw order. Uses [enum DrawOrder] values. Default value: [constant DRAW_ORDER_INDEX]. - The rectangle's extents if [member emission_shape] is set to [const EMISSION_SHAPE_BOX]. + The rectangle's extents if [member emission_shape] is set to [constant EMISSION_SHAPE_BOX]. @@ -219,37 +219,34 @@ Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set angular velocity properties. - - Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set orbital velocity properties. - - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set linear acceleration properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set radial acceleration properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set tangential acceleration properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set damping properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set angle properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set scale properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set hue variation properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set animation speed properties. - + Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set animation offset properties. - + Represents the size of the [enum Parameter] enum. @@ -271,10 +268,10 @@ Particles will be emitted in the volume of a box. - Particles will be emitted at a position determined by sampling a random point on the [member emission_point_texture]. Particle color will be modulated by [member emission_color_texture]. + Particles will be emitted at a position chosen randomly among [member emission_points]. Particle color will be modulated by [member emission_colors]. - Particles will be emitted at a position determined by sampling a random point on the [member emission_point_texture]. Particle velocity and rotation will be set based on [member emission_normal_texture]. Particle color will be modulated by [member emission_color_texture]. + Particles will be emitted at a position chosen randomly among [member emission_points]. Particle velocity and rotation will be set based on [member emission_normals]. Particle color will be modulated by [member emission_colors]. diff --git a/doc/classes/CPUParticles2D.xml b/doc/classes/CPUParticles2D.xml index 68659d051d4..790857ae823 100644 --- a/doc/classes/CPUParticles2D.xml +++ b/doc/classes/CPUParticles2D.xml @@ -93,13 +93,13 @@ - The rectangle's extents if [member emission_shape] is set to [const EMISSION_SHAPE_RECTANGLE]. + The rectangle's extents if [member emission_shape] is set to [constant EMISSION_SHAPE_RECTANGLE]. Particles will be emitted inside this region. Use [enum EmissionShape] for values. Default value: [constant EMISSION_SHAPE_POINT]. - The circle's radius if [member emission_shape] is set to [const EMISSION_SHAPE_CIRCLE]. + The circle's radius if [member emission_shape] is set to [constant EMISSION_SHAPE_CIRCLE]. If [code]true[/code], particles are being emitted. Default value: [code]true[/code]. @@ -261,10 +261,10 @@ Particles will be emitted in the area of a rectangle. - Particles will be emitted at a position determined by sampling a random point on the [member emission_point_texture]. Particle color will be modulated by [member emission_color_texture]. + Particles will be emitted at a position chosen randomly among [member emission_points]. Particle color will be modulated by [member emission_colors]. - Particles will be emitted at a position determined by sampling a random point on the [member emission_point_texture]. Particle velocity and rotation will be set based on [member emission_normal_texture]. Particle color will be modulated by [member emission_color_texture]. + Particles will be emitted at a position chosen randomly among [member emission_points]. Particle velocity and rotation will be set based on [member emission_normals]. Particle color will be modulated by [member emission_colors]. diff --git a/doc/classes/ConfigFile.xml b/doc/classes/ConfigFile.xml index 47392956705..cbc9338d8dd 100644 --- a/doc/classes/ConfigFile.xml +++ b/doc/classes/ConfigFile.xml @@ -94,7 +94,7 @@ - Loads the config file specified as a parameter. The file's contents are parsed and loaded in the ConfigFile object which the method was called on. Returns one of the [constant OK], [constant FAILED] or [code]ERR_*[/code] constants listed in [@GlobalScope]. If the load was successful, the return value is [constant OK]. + Loads the config file specified as a parameter. The file's contents are parsed and loaded in the ConfigFile object which the method was called on. Returns one of the [constant @GlobalScope.OK], [constant @GlobalScope.FAILED] or [code]ERR_*[/code] constants listed in [@GlobalScope]. If the load was successful, the return value is [constant @GlobalScope.OK]. @@ -103,7 +103,7 @@ - Saves the contents of the ConfigFile object to the file specified as a parameter. The output file uses an INI-style structure. Returns one of the [constant OK], [constant FAILED] or [code]ERR_*[/code] constants listed in [@GlobalScope]. If the load was successful, the return value is [constant OK]. + Saves the contents of the ConfigFile object to the file specified as a parameter. The output file uses an INI-style structure. Returns one of the [constant @GlobalScope.OK], [constant @GlobalScope.FAILED] or [code]ERR_*[/code] constants listed in [@GlobalScope]. If the load was successful, the return value is [constant @GlobalScope.OK]. diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 10ff5bf15aa..bc293aea527 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -684,7 +684,7 @@ Enables whether rendering of children should be clipped to this control's rectangle. If [code]true[/code], parts of a child which would be visibly outside of this control's rectangle will not be rendered. - + The node's global position, relative to the world (usually to the top-left corner of the window). @@ -693,7 +693,7 @@ By default, the node's pivot is its top-left corner. When you change its [member rect_scale], it will scale around this pivot. Set this property to [member rect_size] / 2 to center the pivot in the node's rectangle. - + The node's position, relative to its parent. It corresponds to the rectangle's top-left corner. The property is not affected by [member rect_pivot_offset]. @@ -702,7 +702,7 @@ The node's scale, relative to its [member rect_size]. Change this property to scale the node around its [member rect_pivot_offset]. - + The size of the node's bounding rectangle, in pixels. [Container] nodes update this property automatically. diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index 1c459187e6c..856497eee81 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -73,7 +73,7 @@ - Returns the [Color] set by [member set_custom_bg_color]. Default value is [code]Color(0, 0, 0, 0)[/code]. + Returns the [Color] set by [method set_item_custom_bg_color]. Default value is [code]Color(0, 0, 0, 0)[/code]. @@ -82,7 +82,7 @@ - Returns the [Color] set by [member set_custom_fg_color]. Default value is [code]Color(0, 0, 0, 0)[/code]. + Returns the [Color] set by [method set_item_custom_fg_color]. Default value is [code]Color(0, 0, 0, 0)[/code]. @@ -91,7 +91,7 @@ - Returns the icon associated with the specified index. Default value is [code]null[/code] + Returns the icon associated with the specified index. Default value is [code]null[/code]. @@ -117,7 +117,7 @@ - Returns the metadata value of the specified index set by [member set_item_metadata]. + Returns the metadata value of the specified index set by [method set_item_metadata]. @@ -416,7 +416,7 @@ Sets the default icon size in pixels. - Sets the default position of the icon to either [const ICON_MODE_LEFT] or [const ICON_MODE_TOP]. + Sets the default position of the icon to either [constant ICON_MODE_LEFT] or [constant ICON_MODE_TOP]. Sets the icon size to its initial size multiplied by the specified scale. Default value is 1.0. diff --git a/doc/classes/MultiMesh.xml b/doc/classes/MultiMesh.xml index e081e834020..c3cee7f050c 100644 --- a/doc/classes/MultiMesh.xml +++ b/doc/classes/MultiMesh.xml @@ -56,17 +56,6 @@ Returns the [Transform2D] of a specific instance. - - - - - - - Set all data related to the instances in one go. This is especially useful when loading the data from disk or preparing the data from GDNative. - All data is packed in one large float array. An array may look like this: Transform for instance 1, color data for instance 1, custom data for instance 1, transform for instance 2, color data for instance 2, etc... - [Transform] is stored as 12 floats, [Transform2D] is stored as 8 floats, COLOR_8BIT / CUSTOM_DATA_8BIT is stored as 1 float (4 bytes as is) and COLOR_FLOAT / CUSTOM_DATA_FLOAT is stored as 4 floats. - - diff --git a/doc/classes/Mutex.xml b/doc/classes/Mutex.xml index 0134c844d74..931da8ae34b 100644 --- a/doc/classes/Mutex.xml +++ b/doc/classes/Mutex.xml @@ -20,7 +20,7 @@ - Try locking this [code]Mutex[/code], does not block. Returns [constant OK] on success, [constant ERR_BUSY] otherwise. + Try locking this [code]Mutex[/code], does not block. Returns [constant @GlobalScope.OK] on success, [constant @GlobalScope.ERR_BUSY] otherwise. diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 13e0e6fe3a2..aeaedef41bc 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -279,7 +279,7 @@ If [code]true[/code], enables warnings when using a property as if it was a function. - If [code]true[/code], enables warnings when calling a function without using its return value (by assigning it to a variable or using it as a function argument). Such return values are sometimes used to denote possible errors using the [Error] type. + If [code]true[/code], enables warnings when calling a function without using its return value (by assigning it to a variable or using it as a function argument). Such return values are sometimes used to denote possible errors using the [enum @GlobalScope.Error] enum. If [code]true[/code], enables warnings when calling an expression that has no effect on the surrounding code, such as writing [code]2 + 2[/code] as a statement. diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index c086c53dfc4..735db5f3495 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -35,7 +35,7 @@ - Parses [code]bbcode[/code] and adds tags to the tag stack as needed. Returns the result of the parsing, [constant OK] if successful. + Parses [code]bbcode[/code] and adds tags to the tag stack as needed. Returns the result of the parsing, [constant @GlobalScope.OK] if successful. @@ -93,7 +93,7 @@ - The assignment version of [method append_bbcode]. Clears the tag stack and inserts the new content. Returns [constant OK] if parses [code]bbcode[/code] successfully. + The assignment version of [method append_bbcode]. Clears the tag stack and inserts the new content. Returns [constant @GlobalScope.OK] if parses [code]bbcode[/code] successfully. diff --git a/doc/classes/Semaphore.xml b/doc/classes/Semaphore.xml index af0dd9dfd1e..d3340bd37ab 100644 --- a/doc/classes/Semaphore.xml +++ b/doc/classes/Semaphore.xml @@ -13,14 +13,14 @@ - Lowers the [code]Semaphore[/code], allowing one more thread in. Returns [constant OK] on success, [constant ERR_BUSY] otherwise. + Lowers the [code]Semaphore[/code], allowing one more thread in. Returns [constant @GlobalScope.OK] on success, [constant @GlobalScope.ERR_BUSY] otherwise. - Tries to wait for the [code]Semaphore[/code], if its value is zero, blocks until non-zero. Returns [constant OK] on success, [constant ERR_BUSY] otherwise. + Tries to wait for the [code]Semaphore[/code], if its value is zero, blocks until non-zero. Returns [constant @GlobalScope.OK] on success, [constant @GlobalScope.ERR_BUSY] otherwise. diff --git a/doc/classes/StreamPeerTCP.xml b/doc/classes/StreamPeerTCP.xml index 2d481ed85d3..5289d038f35 100644 --- a/doc/classes/StreamPeerTCP.xml +++ b/doc/classes/StreamPeerTCP.xml @@ -17,7 +17,7 @@ - Connect to the specified host:port pair. A hostname will be resolved if valid. Returns [constant OK] on success or [constant FAILED] on failure. + Connect to the specified host:port pair. A hostname will be resolved if valid. Returns [constant @GlobalScope.OK] on success or [constant @GlobalScope.FAILED] on failure. diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 79f0d7565ea..e057c8daf0a 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -104,7 +104,7 @@ Moves the cursor at the specified [code]line[/code] index. If [code]adjust_viewport[/code] is set to true, the viewport will center at the cursor position after the move occurs. Default value is [code]true[/code]. - If [code]can_be_hidden[/code] is set to true, the specified [code]line[/code] can be hidden using [member set_line_as_hidden]. Default value is [code]true[/code]. + If [code]can_be_hidden[/code] is set to true, the specified [code]line[/code] can be hidden using [method set_line_as_hidden]. Default value is [code]true[/code]. @@ -364,7 +364,7 @@ - Unhide all lines that were previously set to hidden by [member set_line_as_hidden]. + Unhide all lines that were previously set to hidden by [method set_line_as_hidden]. @@ -389,6 +389,8 @@ If [code]true[/code], a right click displays the context menu. + + If [code]true[/code], all occurrences of the selected text will be highlighted. diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index 5d24cee5b42..708c356859b 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -140,6 +140,12 @@ Returns [code]true[/code] if the size override is enabled. See [method set_size_override]. + + + + + + @@ -167,6 +173,14 @@ Sets the size override of the viewport. If the [code]enable[/code] parameter is [code]true[/code] the override is used, otherwise it uses the default size. If the size parameter is [code](-1, -1)[/code], it won't update the size. + + + + + + + + diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml index ee4bd8e4a5f..3ea124f5ef4 100644 --- a/doc/classes/VisualServer.xml +++ b/doc/classes/VisualServer.xml @@ -1932,7 +1932,7 @@ - Returns an array of object IDs intersecting with the provided 3D ray. Only visual 3D nodes are considered, such as [MeshInstance] or [DirectionalLight]. Use [method @GDscript.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World] you want to query. + Returns an array of object IDs intersecting with the provided 3D ray. Only visual 3D nodes are considered, such as [MeshInstance] or [DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World] you want to query. Warning: this function is primarily intended for editor usage. For in-game use cases, prefer physics collision. diff --git a/modules/enet/doc_classes/NetworkedMultiplayerENet.xml b/modules/enet/doc_classes/NetworkedMultiplayerENet.xml index 31db8388b5f..8b49ac38cad 100644 --- a/modules/enet/doc_classes/NetworkedMultiplayerENet.xml +++ b/modules/enet/doc_classes/NetworkedMultiplayerENet.xml @@ -34,7 +34,7 @@ - Create client that connects to a server at [code]address[/code] using specified [code]port[/code]. The given address needs to be either a fully qualified domain name (e.g. [code]www.example.com[/code]) or an IP address in IPv4 or IPv6 format (e.g. [code]192.168.1.1[/code]). The [code]port[/code] is the port the server is listening on. The [code]in_bandwidth[/code] and [code]out_bandwidth[/code] parameters can be used to limit the incoming and outgoing bandwidth to the given number of bytes per second. The default of 0 means unlimited bandwidth. Note that ENet will strategically drop packets on specific sides of a connection between peers to ensure the peer's bandwidth is not overwhelmed. The bandwidth parameters also determine the window size of a connection which limits the amount of reliable packets that may be in transit at any given time. Returns [constant OK] if a client was created, [constant ERR_ALREADY_IN_USE] if this NetworkedMultiplayerEnet instance already has an open connection (in which case you need to call [method close_connection] first) or [constant ERR_CANT_CREATE] if the client could not be created. If [code]client_port[/code] is specified, the client will also listen to the given port, this is useful in some NAT traversal technique. + Create client that connects to a server at [code]address[/code] using specified [code]port[/code]. The given address needs to be either a fully qualified domain name (e.g. [code]www.example.com[/code]) or an IP address in IPv4 or IPv6 format (e.g. [code]192.168.1.1[/code]). The [code]port[/code] is the port the server is listening on. The [code]in_bandwidth[/code] and [code]out_bandwidth[/code] parameters can be used to limit the incoming and outgoing bandwidth to the given number of bytes per second. The default of 0 means unlimited bandwidth. Note that ENet will strategically drop packets on specific sides of a connection between peers to ensure the peer's bandwidth is not overwhelmed. The bandwidth parameters also determine the window size of a connection which limits the amount of reliable packets that may be in transit at any given time. Returns [constant @GlobalScope.OK] if a client was created, [constant @GlobalScope.ERR_ALREADY_IN_USE] if this NetworkedMultiplayerEnet instance already has an open connection (in which case you need to call [method close_connection] first) or [constant @GlobalScope.ERR_CANT_CREATE] if the client could not be created. If [code]client_port[/code] is specified, the client will also listen to the given port, this is useful in some NAT traversal technique. @@ -49,7 +49,7 @@ - Create server that listens to connections via [code]port[/code]. The port needs to be an available, unused port between 0 and 65535. Note that ports below 1024 are privileged and may require elevated permissions depending on the platform. To change the interface the server listens on, use [method set_bind_ip]. The default IP is the wildcard [code]*[/code], which listens on all available interfaces. [code]max_clients[/code] is the maximum number of clients that are allowed at once, any number up to 4096 may be used, although the achievable number of simultaneous clients may be far lower and depends on the application. For additional details on the bandwidth parameters, see [method create_client]. Returns [constant OK] if a server was created, [constant ERR_ALREADY_IN_USE] if this NetworkedMultiplayerEnet instance already has an open connection (in which case you need to call [method close_connection] first) or [constant ERR_CANT_CREATE] if the server could not be created. + Create server that listens to connections via [code]port[/code]. The port needs to be an available, unused port between 0 and 65535. Note that ports below 1024 are privileged and may require elevated permissions depending on the platform. To change the interface the server listens on, use [method set_bind_ip]. The default IP is the wildcard [code]*[/code], which listens on all available interfaces. [code]max_clients[/code] is the maximum number of clients that are allowed at once, any number up to 4096 may be used, although the achievable number of simultaneous clients may be far lower and depends on the application. For additional details on the bandwidth parameters, see [method create_client]. Returns [constant @GlobalScope.OK] if a server was created, [constant @GlobalScope.ERR_ALREADY_IN_USE] if this NetworkedMultiplayerEnet instance already has an open connection (in which case you need to call [method close_connection] first) or [constant @GlobalScope.ERR_CANT_CREATE] if the server could not be created.