Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Content.Shared.Item;
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
[Access(typeof(SharedItemSystem))]
|
||||
public sealed class ItemComponent : Component
|
||||
public sealed partial class ItemComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("size")]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Robust.Shared.GameStates;
|
||||
namespace Content.Server.Weapons.Melee.ItemToggle;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class ItemToggleComponent : Component
|
||||
public sealed partial class ItemToggleComponent : Component
|
||||
{
|
||||
public bool Activated = false;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Shared.Item;
|
||||
/// multiple hands to be able to be picked up
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class MultiHandedItemComponent : Component
|
||||
public sealed partial class MultiHandedItemComponent : Component
|
||||
{
|
||||
[DataField("handsNeeded"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int HandsNeeded = 2;
|
||||
|
||||
Reference in New Issue
Block a user