2022-12-20 04:05:02 +00:00
|
|
|
using Content.Shared.Chemistry.Components;
|
2023-12-15 04:52:46 -05:00
|
|
|
using Robust.Shared.Prototypes;
|
2022-12-20 04:05:02 +00:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Chemistry.Reaction;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ReactionMixerComponent : Component
|
2022-12-20 04:05:02 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A list of IDs for categories of reactions that can be mixed (i.e. HOLY for a bible, DRINK for a spoon)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
2023-10-10 20:06:24 -07:00
|
|
|
[DataField]
|
2023-12-15 04:52:46 -05:00
|
|
|
public List<ProtoId<MixingCategoryPrototype>> ReactionTypes = default!;
|
2022-12-20 04:05:02 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A string which identifies the string to be sent when successfully mixing a solution
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
2023-10-10 20:06:24 -07:00
|
|
|
[DataField]
|
|
|
|
|
public LocId MixMessage = "default-mixing-success";
|
2022-12-20 04:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public record struct MixingAttemptEvent(EntityUid Mixed, bool Cancelled = false);
|
|
|
|
|
|
|
|
|
|
public readonly record struct AfterMixingEvent(EntityUid Mixed, EntityUid Mixer);
|