Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user