mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* polymorph changes
Adds poly proto ids to polymorph action event and checks for proto id when performing
* nullable proto id
* Replaces instances of Polymorph prototype with a proto id and tryindex
* birdup
---------
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit 06b14f30cd)
25 lines
588 B
C#
25 lines
588 B
C#
using Content.Shared.Actions;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Polymorph;
|
|
|
|
public sealed partial class PolymorphActionEvent : InstantActionEvent
|
|
{
|
|
/// <summary>
|
|
/// The polymorph proto id, containing all the information about
|
|
/// the specific polymorph.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<PolymorphPrototype>? ProtoId;
|
|
|
|
public PolymorphActionEvent(ProtoId<PolymorphPrototype> protoId) : this()
|
|
{
|
|
ProtoId = protoId;
|
|
}
|
|
}
|
|
|
|
public sealed partial class RevertPolymorphActionEvent : InstantActionEvent
|
|
{
|
|
|
|
}
|