1
0

InstantActionComponent.cs 723 B

12345678910111213141516171819202122232425
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Actions;
  4. [RegisterComponent, NetworkedComponent]
  5. public sealed partial class InstantActionComponent : BaseActionComponent
  6. {
  7. public override BaseActionEvent? BaseEvent => Event;
  8. /// <summary>
  9. /// The local-event to raise when this action is performed.
  10. /// </summary>
  11. [DataField("event")]
  12. [NonSerialized]
  13. public InstantActionEvent? Event;
  14. }
  15. [Serializable, NetSerializable]
  16. public sealed class InstantActionComponentState : BaseActionComponentState
  17. {
  18. public InstantActionComponentState(InstantActionComponent component, IEntityManager entManager) : base(component, entManager)
  19. {
  20. }
  21. }