Minor fixes and tweaks.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user