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

@@ -9,7 +9,7 @@ namespace Content.Server.Store.Components;
/// to increase its balance.
/// </summary>
[RegisterComponent]
public sealed class CurrencyComponent : Component
public sealed partial class CurrencyComponent : Component
{
/// <summary>
/// The value of the currency.

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Store.Components;
/// through the ui. The currency, listings, and categories are defined in yaml.
/// </summary>
[RegisterComponent]
public sealed class StoreComponent : Component
public sealed partial class StoreComponent : Component
{
/// <summary>
/// The default preset for the store. Is overriden by default values specified on the component.

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Store.Conditions;
/// Supports both blacklists and whitelists. This is copypaste because roles
/// are absolute shitcode. Refactor this later. -emo
/// </summary>
public sealed class BuyerAntagCondition : ListingCondition
public sealed partial class BuyerAntagCondition : ListingCondition
{
/// <summary>
/// A whitelist of antag roles that can purchase this listing. Only one needs to be found.

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Store.Conditions;
/// Allows a store entry to be filtered out based on the user's job.
/// Supports both blacklists and whitelists
/// </summary>
public sealed class BuyerJobCondition : ListingCondition
public sealed partial class BuyerJobCondition : ListingCondition
{
/// <summary>
/// A whitelist of jobs prototypes that can purchase this listing. Only one needs to be found.

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Store.Conditions;
/// Allows a store entry to be filtered out based on the user's species.
/// Supports both blacklists and whitelists.
/// </summary>
public sealed class BuyerSpeciesCondition : ListingCondition
public sealed partial class BuyerSpeciesCondition : ListingCondition
{
/// <summary>
/// A whitelist of species that can purchase this listing.

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Store.Conditions;
/// <summary>
/// Filters out an entry based on the components or tags on an entity.
/// </summary>
public sealed class BuyerWhitelistCondition : ListingCondition
public sealed partial class BuyerWhitelistCondition : ListingCondition
{
/// <summary>
/// A whitelist of tags or components.

View File

@@ -5,7 +5,7 @@ namespace Content.Server.Store.Conditions;
/// <summary>
/// Only allows a listing to be purchased a certain amount of times.
/// </summary>
public sealed class ListingLimitedStockCondition : ListingCondition
public sealed partial class ListingLimitedStockCondition : ListingCondition
{
/// <summary>
/// The amount of times this listing can be purchased.

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Store.Conditions;
/// <summary>
/// Filters out an entry based on the components or tags on the store itself.
/// </summary>
public sealed class StoreWhitelistCondition : ListingCondition
public sealed partial class StoreWhitelistCondition : ListingCondition
{
/// <summary>
/// A whitelist of tags or components.