Refactor serialization copying to use source generators (#19412)

This commit is contained in:
DrSmugleaf
2023-08-22 18:14:33 -07:00
committed by GitHub
parent 08b43990ab
commit a88e747a0b
1737 changed files with 2532 additions and 2521 deletions

View File

@@ -7,7 +7,7 @@
/// Not every trigger can be a winner
/// </remarks>
[RegisterComponent]
public sealed class ArtifactAnchorTriggerComponent : Component
public sealed partial class ArtifactAnchorTriggerComponent : Component
{
}

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
/// Triggers when a certain threshold of damage of certain types is reached
/// </summary>
[RegisterComponent]
public sealed class ArtifactDamageTriggerComponent : Component
public sealed partial class ArtifactDamageTriggerComponent : Component
{
/// <summary>
/// What damage types are accumulated for the trigger?

View File

@@ -4,7 +4,7 @@
/// Triggers when a nearby entity dies
/// </summary>
[RegisterComponent]
public sealed class ArtifactDeathTriggerComponent : Component
public sealed partial class ArtifactDeathTriggerComponent : Component
{
/// <summary>
/// How close to the death the artifact has to be for it to trigger.

View File

@@ -5,7 +5,7 @@
/// It could be connected MV cables, stun baton or multi tool.
/// </summary>
[RegisterComponent]
public sealed class ArtifactElectricityTriggerComponent : Component
public sealed partial class ArtifactElectricityTriggerComponent : Component
{
/// <summary>
/// How much power should artifact receive to operate.

View File

@@ -4,7 +4,7 @@
/// Triggers when the artifact is examined.
/// </summary>
[RegisterComponent]
public sealed class ArtifactExamineTriggerComponent : Component
public sealed partial class ArtifactExamineTriggerComponent : Component
{
}

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
/// Activates artifact when it surrounded by certain gas.
/// </summary>
[RegisterComponent]
public sealed class ArtifactGasTriggerComponent : Component
public sealed partial class ArtifactGasTriggerComponent : Component
{
/// <summary>
/// List of possible activation gases to pick on startup.

View File

@@ -8,7 +8,7 @@
/// has contacted with a hot object (lit welder, lighter, etc).
/// </summary>
[RegisterComponent]
public sealed class ArtifactHeatTriggerComponent : Component
public sealed partial class ArtifactHeatTriggerComponent : Component
{
/// <summary>
/// Minimal surrounding gas temperature to trigger artifact.

View File

@@ -4,7 +4,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
/// Activate artifact by touching, attacking or pulling it.
/// </summary>
[RegisterComponent]
public sealed class ArtifactInteractionTriggerComponent : Component
public sealed partial class ArtifactInteractionTriggerComponent : Component
{
/// <summary>
/// Should artifact be activated just by touching with empty hand?

View File

@@ -4,6 +4,6 @@
/// Triggers when the artifact lands after being thrown.
/// </summary>
[RegisterComponent]
public sealed class ArtifactLandTriggerComponent : Component
public sealed partial class ArtifactLandTriggerComponent : Component
{
}

View File

@@ -4,7 +4,7 @@
/// Triggers when the salvage magnet is activated
/// </summary>
[RegisterComponent]
public sealed class ArtifactMagnetTriggerComponent : Component
public sealed partial class ArtifactMagnetTriggerComponent : Component
{
/// <summary>
/// how close to the magnet do you have to be?

View File

@@ -4,6 +4,6 @@
/// Triggers when an item artifact is microwaved.
/// </summary>
[RegisterComponent]
public sealed class ArtifactMicrowaveTriggerComponent : Component
public sealed partial class ArtifactMicrowaveTriggerComponent : Component
{
}

View File

@@ -4,7 +4,7 @@
/// Triggers when an instrument is played nearby
/// </summary>
[RegisterComponent]
public sealed class ArtifactMusicTriggerComponent : Component
public sealed partial class ArtifactMusicTriggerComponent : Component
{
/// <summary>
/// how close does the artifact have to be to the instrument to activate

View File

@@ -4,7 +4,7 @@
/// Triggers when a certain pressure threshold is hit
/// </summary>
[RegisterComponent]
public sealed class ArtifactPressureTriggerComponent : Component
public sealed partial class ArtifactPressureTriggerComponent : Component
{
/// <summary>
/// The lower-end pressure threshold

View File

@@ -5,7 +5,7 @@
/// Doesn't used for random artifacts, can be spawned by admins.
/// </summary>
[RegisterComponent]
public sealed class ArtifactTimerTriggerComponent : Component
public sealed partial class ArtifactTimerTriggerComponent : Component
{
/// <summary>
/// Time between artifact activation attempts.