﻿using UnityEngine.Networking;

namespace Assets.BAndCCore.CustomTypes
{
	/// <summary>
	/// Class holding the Custom enum with the various net actions possible.
	/// </summary>
	public class CustomMsgType : MsgType
	{
		public enum Custom : short
		{
			None = (short)(Highest + 1),
			Authenticate,
			Register
		}
	}

	/// <summary>
	/// A net message holding a boolean value
	/// </summary>
	public class BooleanMessage : MessageBase
	{
		public bool Boolean = false;
	}

	public class UserDataMessage : MessageBase
	{
		public string Login;
		public string Password;
		public string EmailAddress;
	}

	/// <summary>
	/// A net message holding the login and password of the client
	/// </summary>
	public class AccountDataMessage : MessageBase
	{
		public string Login;
		public string Password;
	}
}