| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Content.Shared.DoAfter;
- using Content.Shared.Mech.Components;
- using Robust.Shared.Serialization;
- namespace Content.Shared.Mech.Equipment.Components;
- /// <summary>
- /// A piece of equipment that can be installed into <see cref="MechComponent"/>
- /// </summary>
- [RegisterComponent]
- public sealed partial class MechEquipmentComponent : Component
- {
- /// <summary>
- /// How long does it take to install this piece of equipment
- /// </summary>
- [DataField("installDuration")] public float InstallDuration = 5;
- /// <summary>
- /// The mech that the equipment is inside of.
- /// </summary>
- [ViewVariables] public EntityUid? EquipmentOwner;
- }
- /// <summary>
- /// Raised on the equipment when the installation is finished successfully
- /// </summary>
- public sealed class MechEquipmentInstallFinished : EntityEventArgs
- {
- public EntityUid Mech;
- public MechEquipmentInstallFinished(EntityUid mech)
- {
- Mech = mech;
- }
- }
- /// <summary>
- /// Raised on the equipment when the installation fails.
- /// </summary>
- public sealed class MechEquipmentInstallCancelled : EntityEventArgs
- {
- }
- [Serializable, NetSerializable]
- public sealed partial class GrabberDoAfterEvent : SimpleDoAfterEvent
- {
- }
- [Serializable, NetSerializable]
- public sealed partial class InsertEquipmentEvent : SimpleDoAfterEvent
- {
- }
|