﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;

namespace Booma.Proxy
{
	/// <summary>
	/// Payload sent when a client is begining a warp to a new area.
	/// Contains client ID information and information about the warp itself.
	/// </summary>
	[WireDataContract]
	[SubCommand60(SubCommand60OperationCode.GameStartWarpToArea)]
	public sealed class Sub60StartNewWarpCommand : BaseSubCommand60, IMessageContextIdentifiable
	{
		//TODO: Is this client id?
		[WireMember(1)]
		public byte Identifier { get; }

		[WireMember(2)]
		public byte Unused1 { get; }

		/// <summary>
		/// The zone ID that the user is teleporting to.
		/// </summary>
		[WireMember(3)]
		public short ZoneId { get; }
		
		//Unused2 was padding, not sent in the payload.

		public Sub60StartNewWarpCommand()
		{
			//Calc static 32bit size
			CommandSize = 8 / 4;
		}
	}
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;

namespace Booma.Proxy
{
	/// <summary>
	/// Payload sent when a client is begining a warp to a new area.
	/// Contains client ID information and information about the warp itself.
	/// </summary>
	[WireDataContract]
	[SubCommand60(SubCommand60OperationCode.GameStartWarpToArea)]
	public sealed class Sub60StartNewWarpCommand : BaseSubCommand60, IMessageContextIdentifiable
	{
		//TODO: Is this client id?
		[WireMember(1)]
		public byte Identifier { get; }

		[WireMember(2)]
		public byte Unused1 { get; }

		/// <summary>
		/// The zone ID that the user is teleporting to.
		/// </summary>
		[WireMember(3)]
		public short ZoneId { get; }
		
		//TODO: What is this?
		[WireMember(4)]
		public short Unused2 { get; }

		public Sub60StartNewWarpCommand()
		{
			//Calc static 32bit size
			CommandSize = 8 / 4;
		}
	}
}

Revert "Cleaned up 0x60 0x21 warp packet model"
Revert "Cleaned up 0x60 0x21 warp packet model"

This reverts commit d10e1a0bc424923674067ae9080e6954c1de9403.
