Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
ReplicationMode
SceneReplicationConfig.swift:11enum ReplicationMode
Cases
case never
Do not keep the given property synchronized.
case always
Replicate the given property on process by constantly sending updates using unreliable transfer mode.
case onChange
Replicate the given property on process by sending updates using reliable transfer mode when its value changes.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (14) members.
Type members
Instance members
func addProperty(path: NodePath, index: Int32
) Adds the property identified by the given
path
to the list of the properties being synchronized, optionally passing anindex
.func getProperties(
) -> VariantCollection<NodePath> Returns a list of synchronized property
NodePath
s.func hasProperty(path: NodePath
) -> Bool Returns whether the given
path
is configured for synchronization.func propertyGetIndex(path: NodePath
) -> Int32 Finds the index of the given
path
.func propertyGetReplicationMode(path: NodePath
) -> SceneReplicationConfig.ReplicationMode Returns the replication mode for the property identified by the given
path
. SeeReplicationMode
.func propertyGetSpawn(path: NodePath
) -> Bool Returns whether the property identified by the given
path
is configured to be synchronized on spawn.func propertyGetSync(path: NodePath
) -> Bool Returns whether the property identified by the given
path
is configured to be synchronized on process.func propertyGetWatch(path: NodePath
) -> Bool Returns whether the property identified by the given
path
is configured to be reliably synchronized when changes are detected on process.func propertySetReplicationMode(path: NodePath, mode: SceneReplicationConfig.ReplicationMode
) Sets the synchronization mode for the property identified by the given
path
. SeeReplicationMode
.func propertySetSpawn(path: NodePath, enabled: Bool
) Sets whether the property identified by the given
path
is configured to be synchronized on spawn.func propertySetSync(path: NodePath, enabled: Bool
) Sets whether the property identified by the given
path
is configured to be synchronized on process.func propertySetWatch(path: NodePath, enabled: Bool
) Sets whether the property identified by the given
path
is configured to be reliably synchronized when changes are detected on process.func removeProperty(path: NodePath
) Removes the property identified by the given
path
from the configuration.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.