Files
MonoGame.Extended/source/MonoGame.Extended.Content.Pipeline/BitmapFonts/BitmapFontFile.cs
T
2024-05-18 19:59:41 -04:00

31 lines
984 B
C#

using System.Collections.Generic;
using System.Xml.Serialization;
namespace MonoGame.Extended.Content.Pipeline.BitmapFonts
{
// ---- AngelCode BmFont XML serializer ----------------------
// ---- By DeadlyDan @ deadlydan@gmail.com -------------------
// ---- There's no license restrictions, use as you will. ----
// ---- Credits to http://www.angelcode.com/ -----------------
[XmlRoot("font")]
public class BitmapFontFile
{
[XmlElement("info")]
public BitmapFontInfo Info { get; set; }
[XmlElement("common")]
public BitmapFontCommon Common { get; set; }
[XmlArray("pages")]
[XmlArrayItem("page")]
public List<BitmapFontPage> Pages { get; set; }
[XmlArray("chars")]
[XmlArrayItem("char")]
public List<BitmapFontChar> Chars { get; set; }
[XmlArray("kernings")]
[XmlArrayItem("kerning")]
public List<BitmapFontKerning> Kernings { get; set; }
}
}