2021-10-08 14:13:06 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-07-06 10:08:05 +02:00
|
|
|
<class name="SceneReplicationConfig" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
2021-10-08 14:13:06 +02:00
|
|
|
<brief_description>
|
2022-07-29 01:30:30 +02:00
|
|
|
Configuration for properties to synchronize with a [MultiplayerSynchronizer].
|
2021-10-08 14:13:06 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_property">
|
|
|
|
<return type="void" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<param index="1" name="index" type="int" default="-1" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Adds the property identified by the given [param path] to the list of the properties being synchronized, optionally passing an [param index].
|
2023-03-04 11:37:02 +01:00
|
|
|
[b]Note:[/b] For details on restrictions and limitations on property synchronization, see [MultiplayerSynchronizer].
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_properties" qualifiers="const">
|
|
|
|
<return type="NodePath[]" />
|
|
|
|
<description>
|
2022-07-29 01:30:30 +02:00
|
|
|
Returns a list of synchronized property [NodePath]s.
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2022-05-23 02:24:14 +02:00
|
|
|
<method name="has_property" qualifiers="const">
|
|
|
|
<return type="bool" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
2022-05-23 02:24:14 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Returns whether the given [param path] is configured for synchronization.
|
2022-05-23 02:24:14 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2021-10-08 14:13:06 +02:00
|
|
|
<method name="property_get_index" qualifiers="const">
|
|
|
|
<return type="int" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Finds the index of the given [param path].
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2023-08-27 11:35:56 +02:00
|
|
|
<method name="property_get_replication_mode">
|
|
|
|
<return type="int" enum="SceneReplicationConfig.ReplicationMode" />
|
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<description>
|
|
|
|
Returns the replication mode for the property identified by the given [param path]. See [enum ReplicationMode].
|
|
|
|
</description>
|
|
|
|
</method>
|
2021-10-08 14:13:06 +02:00
|
|
|
<method name="property_get_spawn">
|
|
|
|
<return type="bool" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Returns whether the property identified by the given [param path] is configured to be synchronized on spawn.
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2024-02-12 14:55:02 +01:00
|
|
|
<method name="property_get_sync" deprecated="Use [method property_get_replication_mode] instead.">
|
2021-10-08 14:13:06 +02:00
|
|
|
<return type="bool" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Returns whether the property identified by the given [param path] is configured to be synchronized on process.
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2024-02-12 14:55:02 +01:00
|
|
|
<method name="property_get_watch" deprecated="Use [method property_get_replication_mode] instead.">
|
2023-03-28 09:30:58 +02:00
|
|
|
<return type="bool" />
|
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<description>
|
2023-05-29 15:36:42 +02:00
|
|
|
Returns whether the property identified by the given [param path] is configured to be reliably synchronized when changes are detected on process.
|
2023-08-27 11:35:56 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="property_set_replication_mode">
|
|
|
|
<return type="void" />
|
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<param index="1" name="mode" type="int" enum="SceneReplicationConfig.ReplicationMode" />
|
|
|
|
<description>
|
|
|
|
Sets the synchronization mode for the property identified by the given [param path]. See [enum ReplicationMode].
|
2023-03-28 09:30:58 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2021-10-08 14:13:06 +02:00
|
|
|
<method name="property_set_spawn">
|
|
|
|
<return type="void" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<param index="1" name="enabled" type="bool" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Sets whether the property identified by the given [param path] is configured to be synchronized on spawn.
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2024-02-12 14:55:02 +01:00
|
|
|
<method name="property_set_sync" deprecated="Use [method property_set_replication_mode] with [constant REPLICATION_MODE_ALWAYS] instead.">
|
2021-10-08 14:13:06 +02:00
|
|
|
<return type="void" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<param index="1" name="enabled" type="bool" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Sets whether the property identified by the given [param path] is configured to be synchronized on process.
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2024-02-12 14:55:02 +01:00
|
|
|
<method name="property_set_watch" deprecated="Use [method property_set_replication_mode] with [constant REPLICATION_MODE_ON_CHANGE] instead.">
|
2023-03-28 09:30:58 +02:00
|
|
|
<return type="void" />
|
|
|
|
<param index="0" name="path" type="NodePath" />
|
|
|
|
<param index="1" name="enabled" type="bool" />
|
|
|
|
<description>
|
2023-05-29 15:36:42 +02:00
|
|
|
Sets whether the property identified by the given [param path] is configured to be reliably synchronized when changes are detected on process.
|
2023-03-28 09:30:58 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
2021-10-08 14:13:06 +02:00
|
|
|
<method name="remove_property">
|
|
|
|
<return type="void" />
|
2022-08-06 20:11:48 +02:00
|
|
|
<param index="0" name="path" type="NodePath" />
|
2021-10-08 14:13:06 +02:00
|
|
|
<description>
|
2023-04-26 21:36:04 +02:00
|
|
|
Removes the property identified by the given [param path] from the configuration.
|
2021-10-08 14:13:06 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
2023-08-27 11:35:56 +02:00
|
|
|
<constants>
|
|
|
|
<constant name="REPLICATION_MODE_NEVER" value="0" enum="ReplicationMode">
|
|
|
|
Do not keep the given property synchronized.
|
|
|
|
</constant>
|
|
|
|
<constant name="REPLICATION_MODE_ALWAYS" value="1" enum="ReplicationMode">
|
|
|
|
Replicate the given property on process by constantly sending updates using unreliable transfer mode.
|
|
|
|
</constant>
|
|
|
|
<constant name="REPLICATION_MODE_ON_CHANGE" value="2" enum="ReplicationMode">
|
|
|
|
Replicate the given property on process by sending updates using reliable transfer mode when its value changes.
|
|
|
|
</constant>
|
|
|
|
</constants>
|
2021-10-08 14:13:06 +02:00
|
|
|
</class>
|