Stop network serializing prototypes (#38602)

* Stop network serializing prototypes

Send the damn proto ID instead.

* Fix sandbox violation
This commit is contained in:
Pieter-Jan Briers
2025-06-27 01:27:23 +02:00
committed by GitHub
parent bb7e7c3e5f
commit 73df3b1593
28 changed files with 120 additions and 59 deletions

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Store;
/// This is separate to the cargo ordering system.
/// </summary>
[Prototype]
[DataDefinition, Serializable, NetSerializable]
[DataDefinition]
public sealed partial class CurrencyPrototype : IPrototype
{
[ViewVariables]

View File

@@ -242,7 +242,6 @@ public partial class ListingData : IEquatable<ListingData>
/// Defines a set item listing that is available in a store
/// </summary>
[Prototype]
[Serializable, NetSerializable]
[DataDefinition]
public sealed partial class ListingPrototype : ListingData, IPrototype
{
@@ -423,7 +422,7 @@ public sealed partial class ListingDataWithCostModifiers : ListingData
/// how <see cref="StoreDiscountComponent"/> will be filled by respective system.
/// </summary>
[Prototype]
[DataDefinition, Serializable, NetSerializable]
[DataDefinition]
public sealed partial class DiscountCategoryPrototype : IPrototype
{
[ViewVariables]

View File

@@ -7,7 +7,6 @@ namespace Content.Shared.Store;
/// Used to define different categories for a store.
/// </summary>
[Prototype]
[Serializable, NetSerializable, DataDefinition]
public sealed partial class StoreCategoryPrototype : IPrototype
{
private string _name = string.Empty;