Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Access(typeof(GhostRoleSystem))]
|
||||
public sealed class GhostRoleComponent : Component
|
||||
public sealed partial class GhostRoleComponent : Component
|
||||
{
|
||||
[DataField("name")] private string _roleName = "Unknown";
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(GhostRoleSystem))]
|
||||
public sealed class GhostRoleMobSpawnerComponent : Component
|
||||
public sealed partial class GhostRoleMobSpawnerComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("deleteOnSpawn")]
|
||||
public bool DeleteOnSpawn = true;
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(GhostRoleSystem))]
|
||||
public sealed class GhostTakeoverAvailableComponent : Component
|
||||
public sealed partial class GhostTakeoverAvailableComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// This is used for a ghost role which can be toggled on and off at will, like a PAI.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(ToggleableGhostRoleSystem))]
|
||||
public sealed class ToggleableGhostRoleComponent : Component
|
||||
public sealed partial class ToggleableGhostRoleComponent : Component
|
||||
{
|
||||
[DataField("examineTextMindPresent")]
|
||||
public string ExamineTextMindPresent = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user