Пример #1
0
		private static void SerializeChannels(GenericWriter writer)
		{
			writer.SetVersion(0);

			writer.WriteBlockArray(_PermaChannels, (w, c) => c.Serialize(w));

			writer.WriteBlockList(
				_Channels,
				(w, c) => w.WriteType(
					c,
					t =>
					{
						if (t != null)
						{
							c.Serialize(w);
						}
					}));
		}
		private static bool SerializeProfiles(GenericWriter writer)
		{
			writer.WriteBlockArray(
				Profiles.Values.ToArray(),
				obj =>
				{
					if (obj != null)
					{
						obj.Serialize(writer);
					}
				});

			return true;
		}