Moves ID field to ListingData and adds BuyBeforeCondition (#22438)
This commit is contained in:
@@ -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!;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user