Removed font section.

This commit is contained in:
Harrison Deng 2019-01-15 19:34:02 -06:00
parent cc0203f111
commit 203f251df6
2 changed files with 17 additions and 29 deletions

View File

@ -8,17 +8,24 @@ namespace RecrownedAthenaeum.Serializable
public class SkinData public class SkinData
{ {
/// <summary> /// <summary>
/// The name of the atlas with solution of ".tatlas". /// Author name.
/// </summary>
public string author;
/// <summary>
/// Description of skin.
/// </summary>
public string description;
/// <summary>
/// The name of the atlas with extension.
/// </summary> /// </summary>
public string nameOfTextureAtlas; public string nameOfTextureAtlas;
/// <summary> /// <summary>
/// The color data containing the name of the color, and red, green, and blue values for the color. /// The color data containing the name of the color, and red, green, and blue values for the color.
/// </summary> /// </summary>
public ColorData[] colors; public ColorData[] colors;
/// <summary>
/// The font data containing the name of the font and name of the file for the font.
/// </summary>
public FontData[] fonts;
/// <summary> /// <summary>
/// The skin definitions containing a name for the definition, and the definition itself. /// The skin definitions containing a name for the definition, and the definition itself.
/// </summary> /// </summary>
@ -27,7 +34,7 @@ namespace RecrownedAthenaeum.Serializable
/// <summary> /// <summary>
/// Color data for data transfer. /// Color data for data transfer.
/// </summary> /// </summary>
public class ColorData public struct ColorData
{ {
/// <summary> /// <summary>
/// Name of color to be referenced by. /// Name of color to be referenced by.
@ -35,30 +42,15 @@ namespace RecrownedAthenaeum.Serializable
public string name; public string name;
/// <summary> /// <summary>
/// RGB data of this color. /// RGBA data of this color.
/// </summary> /// </summary>
public int r, g, b; public int r, g, b, a;
}
/// <summary>
/// Font data for data transfer.
/// </summary>
public class FontData
{
/// <summary>
/// Name of font to be referenced by.
/// </summary>
public string name;
/// <summary>
/// Name of the file that contains the font. Shouldn't have extension.
/// </summary>
public string font;
} }
/// <summary> /// <summary>
/// Definition data for data transfer. /// Definition data for data transfer.
/// </summary> /// </summary>
public class DefinitionData public struct DefinitionData
{ {
/// <summary> /// <summary>
/// Name of definition to be referenced by. /// Name of definition to be referenced by.

View File

@ -20,10 +20,7 @@ namespace RecrownedAthenaeum.UI.Skin
/// Colors stored in this skin. /// Colors stored in this skin.
/// </summary> /// </summary>
public readonly Dictionary<string, Color> colors; public readonly Dictionary<string, Color> colors;
/// <summary>
/// Fonts stored in this skin.
/// </summary>
public readonly Dictionary<string, SpriteFont> fonts;
Dictionary<Type, Dictionary<string, ISkinDefinitionData>> definitions; Dictionary<Type, Dictionary<string, ISkinDefinitionData>> definitions;
/// <summary> /// <summary>
@ -34,7 +31,6 @@ namespace RecrownedAthenaeum.UI.Skin
{ {
this.textureAtlas = textureAtlas; this.textureAtlas = textureAtlas;
colors = new Dictionary<string, Color>(); colors = new Dictionary<string, Color>();
fonts = new Dictionary<string, SpriteFont>();
definitions = new Dictionary<Type, Dictionary<string, ISkinDefinitionData>>(); definitions = new Dictionary<Type, Dictionary<string, ISkinDefinitionData>>();
} }