Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Content.Server.Electrocution;
|
||||
/// Updates every frame for short duration to check if electrifed entity is powered when activated, e.g to play animation
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class ActivatedElectrifiedComponent : Component
|
||||
public sealed partial class ActivatedElectrifiedComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How long electrified entity will remain active
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Electrocution;
|
||||
/// Component for things that shock users on touch.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class ElectrifiedComponent : Component
|
||||
public sealed partial class ElectrifiedComponent : Component
|
||||
{
|
||||
[DataField("enabled")]
|
||||
public bool Enabled = true;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(ElectrocutionSystem))]
|
||||
public sealed class ElectrocutionComponent : Component
|
||||
public sealed partial class ElectrocutionComponent : Component
|
||||
{
|
||||
[DataField("timeLeft")]
|
||||
public float TimeLeft;
|
||||
|
||||
Reference in New Issue
Block a user