Revs (the spooky ones) (#9842)
This commit is contained in:
30
Content.Shared/Revenant/RevenantStoreListingPrototype.cs
Normal file
30
Content.Shared/Revenant/RevenantStoreListingPrototype.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
49
Content.Shared/Revenant/SharedRevenant.cs
Normal file
49
Content.Shared/Revenant/SharedRevenant.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using Content.Shared.Actions;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Revenant;
|
||||
|
||||
public sealed class RevenantShopActionEvent : InstantActionEvent { }
|
||||
public sealed class RevenantDefileActionEvent : InstantActionEvent { }
|
||||
public sealed class RevenantOverloadLightsActionEvent : InstantActionEvent { }
|
||||
public sealed class RevenantBlightActionEvent : InstantActionEvent { }
|
||||
public sealed class RevenantMalfunctionActionEvent : InstantActionEvent { }
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public enum RevenantVisuals : byte
|
||||
{
|
||||
Corporeal,
|
||||
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;
|
||||
}
|
||||
}
|
||||
9
Content.Shared/Revenant/SharedRevenantComponent.cs
Normal file
9
Content.Shared/Revenant/SharedRevenantComponent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Revenant;
|
||||
|
||||
[NetworkedComponent]
|
||||
public abstract class SharedRevenantComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user