pda improvements (#1072)
Co-authored-by: FL-OZ <anotherscuffed@gmail.com>
This commit is contained in:
@@ -80,6 +80,16 @@ namespace Content.Shared.GameObjects.Components.PDA
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PDAUplinkBuySuccessMessage : ComponentMessage
|
||||
{
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PDAUplinkInsufficientFundsMessage : ComponentMessage
|
||||
{
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PDARequestUpdateInterfaceMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
@@ -156,18 +166,16 @@ namespace Content.Shared.GameObjects.Components.PDA
|
||||
public UplinkCategory Category;
|
||||
public string Description;
|
||||
public string ListingName;
|
||||
public Color DisplayColor;
|
||||
|
||||
public UplinkListingData(string listingName,string itemId,
|
||||
int price, UplinkCategory category,
|
||||
string description, Color displayColor) : base(ContentNetIDs.PDA)
|
||||
string description) : base(ContentNetIDs.PDA)
|
||||
{
|
||||
ListingName = listingName;
|
||||
Price = price;
|
||||
Category = category;
|
||||
Description = description;
|
||||
ItemId = itemId;
|
||||
DisplayColor = displayColor;
|
||||
}
|
||||
|
||||
public bool Equals(UplinkListingData other)
|
||||
|
||||
@@ -2,7 +2,8 @@ namespace Content.Shared.GameObjects.Components.PDA
|
||||
{
|
||||
public enum UplinkCategory
|
||||
{
|
||||
Weapon,
|
||||
Weapons,
|
||||
Ammo,
|
||||
Utility,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace Content.Shared.Prototypes.PDA
|
||||
private UplinkCategory _category;
|
||||
private string _desc;
|
||||
private string _name;
|
||||
private Color _displayColor;
|
||||
|
||||
public string ID => _id;
|
||||
|
||||
@@ -25,7 +24,6 @@ namespace Content.Shared.Prototypes.PDA
|
||||
public UplinkCategory Category => _category;
|
||||
public string Description => _desc;
|
||||
public string ListingName => _name;
|
||||
public Color DisplayColor => _displayColor;
|
||||
public void LoadFrom(YamlMappingNode mapping)
|
||||
{
|
||||
var serializer = YamlObjectSerializer.NewReader(mapping);
|
||||
@@ -35,7 +33,6 @@ namespace Content.Shared.Prototypes.PDA
|
||||
serializer.DataField(ref _category, "category", UplinkCategory.Utility);
|
||||
serializer.DataField(ref _desc, "description", string.Empty);
|
||||
serializer.DataField(ref _name, "listingName", string.Empty);
|
||||
serializer.DataField(ref _displayColor, "displayColor", Color.White);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user