/// <summary> /// Adds the mounts. /// </summary> /// <param name="message">The message.</param> /// <param name="mounts">The mounts.</param> private static void AddMounts(NetworkMessage message, ICollection <IMount> mounts) { message.AddByte((byte)mounts.Count); foreach (IMount mount in mounts) { message.AddMount(mount); } }