Path: blob/master/modules/multiplayer/doc_classes/SceneReplicationConfig.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="SceneReplicationConfig" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Configuration for properties to synchronize with a [MultiplayerSynchronizer].4</brief_description>5<description>6</description>7<tutorials>8</tutorials>9<methods>10<method name="add_property">11<return type="void" />12<param index="0" name="path" type="NodePath" />13<param index="1" name="index" type="int" default="-1" />14<description>15Adds the property identified by the given [param path] to the list of the properties being synchronized, optionally passing an [param index].16[b]Note:[/b] For details on restrictions and limitations on property synchronization, see [MultiplayerSynchronizer].17</description>18</method>19<method name="get_properties" qualifiers="const">20<return type="NodePath[]" />21<description>22Returns a list of synchronized property [NodePath]s.23</description>24</method>25<method name="has_property" qualifiers="const">26<return type="bool" />27<param index="0" name="path" type="NodePath" />28<description>29Returns [code]true[/code] if the given [param path] is configured for synchronization.30</description>31</method>32<method name="property_get_index" qualifiers="const">33<return type="int" />34<param index="0" name="path" type="NodePath" />35<description>36Finds the index of the given [param path].37</description>38</method>39<method name="property_get_replication_mode">40<return type="int" enum="SceneReplicationConfig.ReplicationMode" />41<param index="0" name="path" type="NodePath" />42<description>43Returns the replication mode for the property identified by the given [param path].44</description>45</method>46<method name="property_get_spawn">47<return type="bool" />48<param index="0" name="path" type="NodePath" />49<description>50Returns [code]true[/code] if the property identified by the given [param path] is configured to be synchronized on spawn.51</description>52</method>53<method name="property_get_sync" deprecated="Use [method property_get_replication_mode] instead.">54<return type="bool" />55<param index="0" name="path" type="NodePath" />56<description>57Returns [code]true[/code] if the property identified by the given [param path] is configured to be synchronized on process.58</description>59</method>60<method name="property_get_watch" deprecated="Use [method property_get_replication_mode] instead.">61<return type="bool" />62<param index="0" name="path" type="NodePath" />63<description>64Returns [code]true[/code] if the property identified by the given [param path] is configured to be reliably synchronized when changes are detected on process.65</description>66</method>67<method name="property_set_replication_mode">68<return type="void" />69<param index="0" name="path" type="NodePath" />70<param index="1" name="mode" type="int" enum="SceneReplicationConfig.ReplicationMode" />71<description>72Sets the synchronization mode for the property identified by the given [param path].73</description>74</method>75<method name="property_set_spawn">76<return type="void" />77<param index="0" name="path" type="NodePath" />78<param index="1" name="enabled" type="bool" />79<description>80Sets whether the property identified by the given [param path] is configured to be synchronized on spawn.81</description>82</method>83<method name="property_set_sync" deprecated="Use [method property_set_replication_mode] with [constant REPLICATION_MODE_ALWAYS] instead.">84<return type="void" />85<param index="0" name="path" type="NodePath" />86<param index="1" name="enabled" type="bool" />87<description>88Sets whether the property identified by the given [param path] is configured to be synchronized on process.89</description>90</method>91<method name="property_set_watch" deprecated="Use [method property_set_replication_mode] with [constant REPLICATION_MODE_ON_CHANGE] instead.">92<return type="void" />93<param index="0" name="path" type="NodePath" />94<param index="1" name="enabled" type="bool" />95<description>96Sets whether the property identified by the given [param path] is configured to be reliably synchronized when changes are detected on process.97</description>98</method>99<method name="remove_property">100<return type="void" />101<param index="0" name="path" type="NodePath" />102<description>103Removes the property identified by the given [param path] from the configuration.104</description>105</method>106</methods>107<constants>108<constant name="REPLICATION_MODE_NEVER" value="0" enum="ReplicationMode">109Do not keep the given property synchronized.110</constant>111<constant name="REPLICATION_MODE_ALWAYS" value="1" enum="ReplicationMode">112Replicate the given property on process by constantly sending updates using unreliable transfer mode.113</constant>114<constant name="REPLICATION_MODE_ON_CHANGE" value="2" enum="ReplicationMode">115Replicate the given property on process by sending updates using reliable transfer mode when its value changes.116</constant>117</constants>118</class>119120121