Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Content.Shared.Silicons.Laws.Components;
|
||||
/// This is used for an entity that grants a special "obey" law when emagge.d
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedSiliconLawSystem))]
|
||||
public sealed class EmagSiliconLawComponent : Component
|
||||
public sealed partial class EmagSiliconLawComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the person who emagged this law provider.
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Shared.Silicons.Laws.Components;
|
||||
/// This is used for entities which are bound to silicon laws and can view them.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SharedSiliconLawSystem))]
|
||||
public sealed class SiliconLawBoundComponent : Component
|
||||
public sealed partial class SiliconLawBoundComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The sidebar action that toggles the laws screen.
|
||||
@@ -48,7 +48,7 @@ public record struct GetSiliconLawsEvent(EntityUid Entity)
|
||||
public bool Handled = false;
|
||||
}
|
||||
|
||||
public sealed class ToggleLawsScreenEvent : InstantActionEvent
|
||||
public sealed partial class ToggleLawsScreenEvent : InstantActionEvent
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Silicons.Laws.Components;
|
||||
/// This is used for an entity which grants laws to a <see cref="SiliconLawBoundComponent"/>
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SharedSiliconLawSystem))]
|
||||
public sealed class SiliconLawProviderComponent : Component
|
||||
public sealed partial class SiliconLawProviderComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The laws that are provided.
|
||||
|
||||
Reference in New Issue
Block a user