////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//	danmaq Nineball-Library SAMPLE PROGRAM
//	僒儞僾儖僎乕儉梡 僐儞僥儞僣 僾儘僙僢僒
//		Copyright (c) 2010 danmaq all rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

using System;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;

namespace danmaq.common_cpe.ball
{

	//* 劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒 *
	/// <summary>
	/// This class will be instantiated by the XNA Framework Content Pipeline
	/// to apply custom processing to content data, converting an object of
	/// type TInput to TOutput. The input and output types may be the same if
	/// the processor wishes to alter data without changing its type.
	///
	/// This should be part of a Content Pipeline Extension Library project.
	///
	/// TODO: change the ContentProcessor attribute to specify the correct
	/// display name for this processor.
	/// </summary>
	[ContentProcessor(DisplayName = "愒偄嬍 惵偄嬍 嫞憱僎乕儉 僗僾儔僀僩 僼僅儞僩 僾儘僙僢僒")]
	public sealed class CCPEBallFont : FontTextureProcessor
	{

		//* 劅劅劅劅劅丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵_*
		//* constants 劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅-*

		/// <summary>暥帤堦棗丅</summary>
		private const string charList =
			" ()-/.0123456789:ACEFHIMOPRS" +
			"acdeghilmnqrstv侽侾俀俁係俆俇" +
			"俈俉俋丅両乕偄偔偗偝偟偩偪偰傪" +
			"僂僉僎僗儅儉堈嫞嬍彑惵愒嵍慖憱" +
			"懪戰搙擄晧楢";

		//* 劅劅劅劅丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵丵_*
		//* methods 劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅-*

		//* -----------------------------------------------------------------------*
		/// <summary>僌儕僼 僀儞僨僢僋僗傪暥帤偵儅僢僾偟傑偡丅</summary>
		/// 
		/// <param name="index">僌儕僼 僀儞僨僢僋僗丅</param>
		/// <returns>巜掕偝傟偨僌儕僼 僀儞僨僢僋僗偱昞偝傟偨暥帤丅</returns>
		/// <exception cref="System.ArgumentOutOfRangeException">
		/// <paramref name="index"/>偑丄巊梡壜擻側暥帤偺斖埻奜偱偡丅
		/// </exception>
		protected override char GetCharacterForIndex(int index)
		{
			if(index >= charList.Length)
			{
				throw new ArgumentOutOfRangeException("index");
			}
			return charList[index];
		}
	}
}
