Roblox-File-Format/DataTypes/Content.cs
CloneTrooper1019 e14b092aa7 Added read support for Instance Attributes.
This isn't 100% finished yet. I intend to add some better API for reading specific attributes, as well as write support (of course!)
2019-10-31 21:40:31 -05:00

28 lines
639 B
C#

namespace RobloxFiles.DataTypes
{
/// <summary>
/// Content is a type used by most url-based XML properties.
/// Here, it only exists as a wrapper class for strings.
/// </summary>
public class Content
{
public readonly string Url;
public override string ToString() => Url;
public Content(string url)
{
Url = url;
}
public static implicit operator string(Content content)
{
return content.Url;
}
public static implicit operator Content(string url)
{
return new Content(url);
}
}
}