Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
namespace Content.Server.Temperature.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class ContainerTemperatureDamageThresholdsComponent: Component
|
||||
public sealed partial class ContainerTemperatureDamageThresholdsComponent: Component
|
||||
{
|
||||
[DataField("heatDamageThreshold")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Inventory;
|
||||
namespace Content.Server.Temperature.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class HeatResistanceComponent : Component
|
||||
public sealed partial class HeatResistanceComponent : Component
|
||||
{
|
||||
public int GetHeatResistance()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Server.Temperature.Components
|
||||
/// and taking fire damage from high temperature.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class TemperatureComponent : Component
|
||||
public sealed partial class TemperatureComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("currentTemperature")]
|
||||
|
||||
Reference in New Issue
Block a user