Esempio n. 1
0
        /// <summary>
        /// Sends PetCreationOptionsRequestR to client.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="type"></param>
        /// <param name="list">No overwrite if list is null.</param>
        public static void PetCreationOptionsRequestR(LoginClient client, PetCreationOptionsListType type, List <int> list)
        {
            var packet = new Packet(Op.PetCreationOptionsRequestR, MabiId.Login);

            packet.PutByte(list != null);

            if (list != null)
            {
                packet.PutByte((byte)type);
                foreach (var race in list)
                {
                    packet.PutInt(race);
                }
                packet.PutInt(-1);                 // End of list
            }

            client.Send(packet);
        }
Esempio n. 2
0
		/// <summary>
		/// Sends PetCreationOptionsRequestR to client.
		/// </summary>
		/// <param name="client"></param>
		/// <param name="type"></param>
		/// <param name="list">No overwrite if list is null.</param>
		public static void PetCreationOptionsRequestR(LoginClient client, PetCreationOptionsListType type, List<int> list)
		{
			var packet = new Packet(Op.PetCreationOptionsRequestR, MabiId.Login);
			packet.PutByte(list != null);

			if (list != null)
			{
				packet.PutByte((byte)type);
				foreach (var race in list)
					packet.PutInt(race);
				packet.PutInt(-1); // End of list
			}

			client.Send(packet);
		}