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
{
/// <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>
public string nameOfTextureAtlas;
/// <summary>
/// The color data containing the name of the color, and red, green, and blue values for the color.
/// </summary>
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>
/// The skin definitions containing a name for the definition, and the definition itself.
/// </summary>
@ -27,7 +34,7 @@ namespace RecrownedAthenaeum.Serializable
/// <summary>
/// Color data for data transfer.
/// </summary>
public class ColorData
public struct ColorData
{
/// <summary>
/// Name of color to be referenced by.
@ -35,30 +42,15 @@ namespace RecrownedAthenaeum.Serializable
public string name;
/// <summary>
/// RGB data of this color.
/// RGBA data of this color.
/// </summary>
public int r, g, b;
}
/// <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;
public int r, g, b, a;
}
/// <summary>
/// Definition data for data transfer.
/// </summary>
public class DefinitionData
public struct DefinitionData
{
/// <summary>
/// Name of definition to be referenced by.

View File

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