mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-27 10:59:25 +01:00
Make it not use clipboard because duh.
This commit is contained in:
parent
593bb47241
commit
092e0ee30e
2 changed files with 7 additions and 43 deletions
|
|
@ -49,30 +49,4 @@ public readonly struct CustomizeParameterValue
|
|||
|
||||
public override string ToString()
|
||||
=> _data.ToString();
|
||||
|
||||
public string ToJson()
|
||||
{
|
||||
try
|
||||
{
|
||||
return JsonConvert.SerializeObject(_data, Formatting.None);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool FromJson(string input, out CustomizeParameterValue value)
|
||||
{
|
||||
try
|
||||
{
|
||||
value = new CustomizeParameterValue(JsonConvert.DeserializeObject<Vector4>(input));
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
value = default;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue