Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -6,7 +6,7 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Server.UserInterface
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class ActivatableUIComponent : Component,
|
||||
public sealed partial class ActivatableUIComponent : Component,
|
||||
ISerializationHooks
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.UserInterface;
|
||||
/// Specifies that the attached entity requires <see cref="PowerCellDrawComponent"/> power.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class ActivatableUIRequiresPowerCellComponent : Component
|
||||
public sealed partial class ActivatableUIRequiresPowerCellComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Server.UserInterface;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class IntrinsicUIComponent : Component, ISerializationHooks
|
||||
public sealed partial class IntrinsicUIComponent : Component, ISerializationHooks
|
||||
{
|
||||
/// <summary>
|
||||
/// List of UIs and their actions that this entity has.
|
||||
@@ -25,7 +25,7 @@ public sealed class IntrinsicUIComponent : Component, ISerializationHooks
|
||||
}
|
||||
|
||||
[DataDefinition]
|
||||
public struct IntrinsicUIEntry
|
||||
public partial struct IntrinsicUIEntry
|
||||
{
|
||||
[ViewVariables] public Enum? Key { get; private set; } = null;
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ public sealed class IntrinsicUISystem : EntitySystem
|
||||
}
|
||||
|
||||
[UsedImplicitly]
|
||||
public sealed class ToggleIntrinsicUIEvent : InstantActionEvent
|
||||
public sealed partial class ToggleIntrinsicUIEvent : InstantActionEvent
|
||||
{
|
||||
[ViewVariables]
|
||||
public Enum? Key { get; set; }
|
||||
|
||||
@@ -4,7 +4,7 @@ using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Server.UserInterface;
|
||||
|
||||
public sealed class OpenUiActionEvent : InstantActionEvent, ISerializationHooks
|
||||
public sealed partial class OpenUiActionEvent : InstantActionEvent, ISerializationHooks
|
||||
{
|
||||
[ViewVariables]
|
||||
public Enum? Key { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user