2019-01-15 05:38:20 +00:00
|
|
|
|
using RecrownedAthenaeum.UI.Skin.Definitions;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace RecrownedAthenaeum.UI.Skin
|
|
|
|
|
{
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Data transfer object for game skins.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public class SkinData
|
|
|
|
|
{
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of the atlas with solution of ".tatlas".
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public string nameOfTextureAtlas;
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The color data containing the name of the color, and red, green, and blue values for the color.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public ColorData[] colors;
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The font data containing the name of the font and name of the file for the font.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public FontData[] fonts;
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The skin definitions containing a name for the definition, and the definition itself.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public DefinitionData[] definitions;
|
|
|
|
|
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Color data for data transfer.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public class ColorData
|
|
|
|
|
{
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of color to be referenced by.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string name;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// RGB data of this color.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int r, g, b;
|
2019-01-15 05:38:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Font data for data transfer.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public class FontData
|
|
|
|
|
{
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <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;
|
2019-01-15 05:38:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Definition data for data transfer.
|
|
|
|
|
/// </summary>
|
2019-01-15 05:38:20 +00:00
|
|
|
|
public class DefinitionData
|
|
|
|
|
{
|
2019-01-15 23:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of definition to be referenced by.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string name;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The skin definition data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ISkinDefinitionData skin;
|
2019-01-15 05:38:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|