Refactor serialization copying to use source generators (#19412)

This commit is contained in:
DrSmugleaf
2023-08-22 18:14:33 -07:00
committed by GitHub
parent 08b43990ab
commit a88e747a0b
1737 changed files with 2532 additions and 2521 deletions

View File

@@ -13,7 +13,7 @@ namespace Content.Client.IconSmoothing
/// Any objects with the same <c>key</c> will connect.
/// </remarks>
[RegisterComponent]
public sealed class IconSmoothComponent : Component
public sealed partial class IconSmoothComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("enabled")]
public bool Enabled = true;
@@ -24,13 +24,13 @@ namespace Content.Client.IconSmoothing
/// We will smooth with other objects with the same key.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("key")]
public string? SmoothKey { get; }
public string? SmoothKey { get; private set; }
/// <summary>
/// Prepended to the RSI state.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("base")]
public string StateBase { get; } = string.Empty;
public string StateBase { get; private set; } = string.Empty;
[DataField("shader", customTypeSerializer:typeof(PrototypeIdSerializer<ShaderPrototype>))]
public string? Shader;