Add Modular grenades (chemnades). (#7138)

This commit is contained in:
Leon Friedrich
2022-03-25 17:17:29 +13:00
committed by GitHub
parent 414c03978d
commit 1b0e7ae0f5
51 changed files with 994 additions and 96 deletions

View File

@@ -0,0 +1,33 @@
using Content.Shared.Containers.ItemSlots;
using Robust.Shared.Serialization;
namespace Content.Shared.Payload.Components;
/// <summary>
/// Chemical payload that mixes the solutions of two drain-able solution containers when triggered.
/// </summary>
[RegisterComponent]
public sealed class ChemicalPayloadComponent : Component
{
[DataField("beakerSlotA", required: true)]
public ItemSlot BeakerSlotA = new();
[DataField("beakerSlotB", required: true)]
public ItemSlot BeakerSlotB = new();
}
[Serializable, NetSerializable]
public enum ChemicalPayloadVisuals : byte
{
Slots
}
[Flags]
[Serializable, NetSerializable]
public enum ChemicalPayloadFilledSlots : byte
{
None = 0,
Left = 1 << 0,
Right = 1 << 1,
Both = Left | Right,
}