using RecrownedAthenaeum.UI.Skin.Definitions;
namespace RecrownedAthenaeum.Serializable
{
///
/// Data transfer object for game skins.
///
public class SkinData
{
///
/// Author name.
///
public string author;
///
/// Description of skin.
///
public string description;
///
/// The name of the atlas with extension.
///
public string nameOfTextureAtlas;
///
/// The color data containing the name of the color, and red, green, and blue values for the color.
///
public ColorData[] colors;
///
/// The skin definitions containing a name for the definition, and the definition itself.
///
public DefinitionData[] definitions;
///
/// Color data for data transfer.
///
public struct ColorData
{
///
/// Name of color to be referenced by.
///
public string name;
///
/// RGBA data of this color.
///
public int r, g, b, a;
}
///
/// Definition data for data transfer.
///
public struct DefinitionData
{
///
/// Name of definition to be referenced by.
///
public string name;
///
/// The skin definition data.
///
public ISkinDefinitionData skin;
}
}
}