mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Fix newtonsoft not playing well with records with strings.
This commit is contained in:
parent
af4373ce50
commit
6f760426c7
1 changed files with 17 additions and 3 deletions
|
|
@ -717,7 +717,11 @@ public partial class ModEditWindow
|
||||||
return output.Write();
|
return output.Write();
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed record DevkitShaderKeyValue(string Label = "", string Description = "");
|
private sealed class DevkitShaderKeyValue
|
||||||
|
{
|
||||||
|
public string Label = string.Empty;
|
||||||
|
public string Description = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
private sealed class DevkitShaderKey
|
private sealed class DevkitShaderKey
|
||||||
{
|
{
|
||||||
|
|
@ -726,7 +730,12 @@ public partial class ModEditWindow
|
||||||
public Dictionary<uint, DevkitShaderKeyValue> Values = new();
|
public Dictionary<uint, DevkitShaderKeyValue> Values = new();
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed record DevkitSampler(string Label = "", string Description = "", string DefaultTexture = "");
|
private sealed class DevkitSampler
|
||||||
|
{
|
||||||
|
public string Label = string.Empty;
|
||||||
|
public string Description = string.Empty;
|
||||||
|
public string DefaultTexture = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
private enum DevkitConstantType
|
private enum DevkitConstantType
|
||||||
{
|
{
|
||||||
|
|
@ -737,7 +746,12 @@ public partial class ModEditWindow
|
||||||
Enum = 3,
|
Enum = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed record DevkitConstantValue(string Label = "", string Description = "", float Value = 0);
|
private sealed class DevkitConstantValue
|
||||||
|
{
|
||||||
|
public string Label = string.Empty;
|
||||||
|
public string Description = string.Empty;
|
||||||
|
public float Value = 0;
|
||||||
|
}
|
||||||
|
|
||||||
private sealed class DevkitConstant
|
private sealed class DevkitConstant
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue