recrownedathenaeum/RecrownedAthenaeum/Serializable/SkinData.cs

66 lines
1.7 KiB
C#
Raw Normal View History

using RecrownedAthenaeum.UI.Skin.Definitions;
2019-01-15 23:44:15 +00:00
namespace RecrownedAthenaeum.Serializable
{
2019-01-15 23:03:17 +00:00
/// <summary>
/// Data transfer object for game skins.
/// </summary>
public class SkinData
{
2019-01-15 23:03:17 +00:00
/// <summary>
2019-01-16 01:34:02 +00:00
/// Author name.
/// </summary>
public string author;
/// <summary>
/// Description of skin.
/// </summary>
public string description;
/// <summary>
/// The name of the atlas with extension.
2019-01-15 23:03:17 +00:00
/// </summary>
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>
public ColorData[] colors;
2019-01-16 01:34:02 +00:00
2019-01-15 23:03:17 +00:00
/// <summary>
/// The skin definitions containing a name for the definition, and the definition itself.
/// </summary>
public DefinitionData[] definitions;
2019-01-15 23:03:17 +00:00
/// <summary>
/// Color data for data transfer.
/// </summary>
2019-01-16 01:34:02 +00:00
public struct ColorData
{
2019-01-15 23:03:17 +00:00
/// <summary>
/// Name of color to be referenced by.
/// </summary>
public string name;
/// <summary>
2019-01-16 01:34:02 +00:00
/// RGBA data of this color.
2019-01-15 23:03:17 +00:00
/// </summary>
2019-01-16 01:34:02 +00:00
public int r, g, b, a;
}
2019-01-15 23:03:17 +00:00
/// <summary>
/// Definition data for data transfer.
/// </summary>
2019-01-16 01:34:02 +00:00
public struct 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;
}
}
}