Moves ID field to ListingData and adds BuyBeforeCondition (#22438)

This commit is contained in:
keronshb
2023-12-13 16:57:38 -05:00
committed by GitHub
parent 7a45f09c88
commit 9864cb0232
2 changed files with 62 additions and 3 deletions

View File

@@ -18,6 +18,10 @@ namespace Content.Shared.Store;
[Virtual, DataDefinition]
public partial class ListingData : IEquatable<ListingData>, ICloneable
{
[ViewVariables]
[IdDataField]
public string ID { get; private set; } = default!;
/// <summary>
/// The name of the listing. If empty, uses the entity's name (if present)
/// </summary>
@@ -131,6 +135,7 @@ public partial class ListingData : IEquatable<ListingData>, ICloneable
{
return new ListingData
{
ID = ID,
Name = Name,
Description = Description,
Categories = Categories,
@@ -156,7 +161,5 @@ public partial class ListingData : IEquatable<ListingData>, ICloneable
[DataDefinition]
public sealed partial class ListingPrototype : ListingData, IPrototype
{
[ViewVariables]
[IdDataField]
public string ID { get; private set; } = default!;
}