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

@@ -9,7 +9,7 @@ namespace Content.Shared.CardboardBox.Components;
/// Used for big cardboard box entities.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class CardboardBoxComponent : Component
public sealed partial class CardboardBoxComponent : Component
{
/// <summary>
/// The person in control of this box
@@ -55,7 +55,7 @@ public sealed class CardboardBoxComponent : Component
/// Time between sound effects. Prevents effect spam
/// </summary>
[DataField("cooldownDuration")]
public readonly TimeSpan CooldownDuration = TimeSpan.FromSeconds(5f);
public TimeSpan CooldownDuration = TimeSpan.FromSeconds(5f);
}
[Serializable, NetSerializable]