Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
/// containing goods for fulfilling bounties.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class CargoBountyLabelComponent : Component
|
||||
public sealed partial class CargoBountyLabelComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The ID for the bounty this label corresponds to.
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components
|
||||
/// Handles sending order requests to cargo. Doesn't handle orders themselves via shuttle or telepads.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class CargoOrderConsoleComponent : Component
|
||||
public sealed partial class CargoOrderConsoleComponent : Component
|
||||
{
|
||||
[DataField("soundError")] public SoundSpecifier ErrorSound =
|
||||
new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_sigh.ogg");
|
||||
|
||||
@@ -4,4 +4,4 @@ namespace Content.Server.Cargo.Components;
|
||||
/// Any entities intersecting when a shuttle is recalled will be sold.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class CargoPalletComponent : Component {}
|
||||
public sealed partial class CargoPalletComponent : Component {}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Access(typeof(CargoSystem))]
|
||||
public sealed class CargoPalletConsoleComponent : Component
|
||||
public sealed partial class CargoPalletConsoleComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("cashType", customTypeSerializer:typeof(PrototypeIdSerializer<StackPrototype>))]
|
||||
public string CashType = "Credit";
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
/// Marks an entity as unable to be sold through the cargo shuttle.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class CargoSellBlacklistComponent : Component
|
||||
public sealed partial class CargoSellBlacklistComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Shared.Audio;
|
||||
namespace Content.Server.Cargo.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class CargoShuttleConsoleComponent : Component
|
||||
public sealed partial class CargoShuttleConsoleComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("soundDeny")]
|
||||
public SoundSpecifier DenySound = new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_two.ogg");
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// This is used for calculating the price of mobs.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class MobPriceComponent : Component
|
||||
public sealed partial class MobPriceComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How much of a penalty per part there should be. This is a multiplier for a multiplier, the penalty for each body part is calculated from the total number of slots, and then multiplied by this.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// This is used for the price gun, which calculates the price of any object it appraises.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class PriceGunComponent : Component
|
||||
public sealed partial class PriceGunComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// This is used for pricing stacks of items.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class StackPriceComponent : Component
|
||||
public sealed partial class StackPriceComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The price of the object this component is on, per unit.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// This is used for setting a static, unchanging price for an object.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class StaticPriceComponent : Component
|
||||
public sealed partial class StaticPriceComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The price of the object this component is on.
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components;
|
||||
/// Added to the abstract representation of a station to track its money.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SharedCargoSystem))]
|
||||
public sealed class StationBankAccountComponent : Component
|
||||
public sealed partial class StationBankAccountComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("balance")]
|
||||
public int Balance = 2000;
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components;
|
||||
/// Stores all active cargo bounties for a particular station.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class StationCargoBountyDatabaseComponent : Component
|
||||
public sealed partial class StationCargoBountyDatabaseComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Maximum amount of bounties a station can have.
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Cargo.Components;
|
||||
/// Stores all of cargo orders for a particular station.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class StationCargoOrderDatabaseComponent : Component
|
||||
public sealed partial class StationCargoOrderDatabaseComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Maximum amount of orders a station is allowed, approved or not.
|
||||
|
||||
Reference in New Issue
Block a user