BeardedManStudios.Network.NetworkedMonoBehavior.SerializeManualProperties C# (CSharp) Метод

SerializeManualProperties() публичный Метод

Used to serialize manual properties across the network for this object
public SerializeManualProperties ( bool reliable = false, NetworkReceivers receivers = NetworkReceivers.All ) : void
reliable bool Determines if these properties should be reliably sent
receivers NetworkReceivers The receivers for this data
Результат void
		public void SerializeManualProperties(bool reliable = false, NetworkReceivers receivers = NetworkReceivers.All)
		{
			if (ManualProperties == null || ManualProperties.Count == 0 || !IsSetup)
				return;

			manualPropertyBytes.Clear();
			ObjectMapper.MapBytes(manualPropertyBytes, NetworkedId);

			foreach (NetRef<object> obj in ManualProperties)
			{
				ObjectMapper.MapBytes(manualPropertyBytes, obj.Value);
				obj.Callback(this);
			}

			Networking.WriteCustom(WriteCustomMapping.NETWORKED_MONO_BEHAVIOR_MANUAL_PROPERTIES, OwningNetWorker, manualPropertyBytes, reliable, receivers);
		}