revenant cleanup (#10662)
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
using Content.Shared.Actions.ActionTypes;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Revenant;
|
||||
|
||||
[Serializable]
|
||||
[Prototype("revenantListing")]
|
||||
public sealed class RevenantStoreListingPrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField("actionId", customTypeSerializer:typeof(PrototypeIdSerializer<InstantActionPrototype>))]
|
||||
public string ActionId { get; } = string.Empty;
|
||||
|
||||
[DataField("price")]
|
||||
public int Price { get; } = 5;
|
||||
|
||||
[DataField("description")]
|
||||
public string Description { get; } = string.Empty;
|
||||
|
||||
[DataField("listingName")]
|
||||
public string ListingName { get; } = string.Empty;
|
||||
|
||||
[DataField("icon")]
|
||||
public SpriteSpecifier? Icon { get; } = null;
|
||||
}
|
||||
@@ -16,34 +16,3 @@ public enum RevenantVisuals : byte
|
||||
Stunned,
|
||||
Harvesting,
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public enum RevenantUiKey : byte
|
||||
{
|
||||
Key
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class RevenantUpdateState : BoundUserInterfaceState
|
||||
{
|
||||
public float Essence;
|
||||
|
||||
public readonly List<RevenantStoreListingPrototype> Listings;
|
||||
|
||||
public RevenantUpdateState(float essence, List<RevenantStoreListingPrototype> listings)
|
||||
{
|
||||
Essence = essence;
|
||||
Listings = listings;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class RevenantBuyListingMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public RevenantStoreListingPrototype Listing;
|
||||
|
||||
public RevenantBuyListingMessage (RevenantStoreListingPrototype listing)
|
||||
{
|
||||
Listing = listing;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user