Minor fixes and tweaks.

This commit is contained in:
CloneTrooper1019
2019-07-04 18:26:53 -05:00
parent 4e1fdc0a22
commit cf4cf829d7
9 changed files with 60 additions and 34 deletions

View File

@ -6,27 +6,26 @@
/// </summary>
public class Content
{
// TODO: Maybe introduce constraints to the value?
public readonly string Data;
public readonly string Url;
public override string ToString()
{
return Data;
return Url;
}
public Content(string data)
public Content(string url)
{
Data = data;
Url = url;
}
public static implicit operator string(Content content)
{
return content.Data;
return content.Url;
}
public static implicit operator Content(string data)
public static implicit operator Content(string url)
{
return new Content(data);
return new Content(url);
}
}
}

View File

@ -6,21 +6,21 @@
/// </summary>
public class ProtectedString
{
public readonly string Value;
public readonly string ProtectedValue;
public override string ToString()
{
return Value;
return ProtectedValue;
}
public ProtectedString(string value)
{
Value = value;
ProtectedValue = value;
}
public static implicit operator string(ProtectedString protectedString)
{
return protectedString.Value;
return protectedString.ProtectedValue;
}
public static implicit operator ProtectedString(string value)

View File

@ -21,6 +21,11 @@ namespace RobloxFiles.DataTypes
}
}
public override string ToString()
{
return string.Join(", ", X, Y, Z, W);
}
public Quaternion(float x, float y, float z, float w)
{
X = x;