Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Content.Server.Gatherable.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Access(typeof(GatherableSystem))]
|
||||
public sealed class GatherableComponent : Component
|
||||
public sealed partial class GatherableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whitelist for specifying the kind of tools can be used on a resource
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Content.Server.Gatherable.Components;
|
||||
/// Destroys a gatherable entity when colliding with it.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class GatheringProjectileComponent : Component
|
||||
public sealed partial class GatheringProjectileComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How many more times we can gather.
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Gatherable.Components;
|
||||
/// Plays the specified sound when this entity is gathered.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(GatherableSystem))]
|
||||
public sealed class SoundOnGatherComponent : Component
|
||||
public sealed partial class SoundOnGatherComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("sound")]
|
||||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Effects/break_stone.ogg")
|
||||
|
||||
Reference in New Issue
Block a user