WorldTargetActionComponent.cs 877 B

12345678910111213141516171819202122232425262728
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Actions;
  4. /// <summary>
  5. /// Used on action entities to define an action that triggers when targeting an entity coordinate.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent]
  8. public sealed partial class WorldTargetActionComponent : BaseTargetActionComponent
  9. {
  10. public override BaseActionEvent? BaseEvent => Event;
  11. /// <summary>
  12. /// The local-event to raise when this action is performed.
  13. /// </summary>
  14. [DataField("event")]
  15. [NonSerialized]
  16. public WorldTargetActionEvent? Event;
  17. }
  18. [Serializable, NetSerializable]
  19. public sealed class WorldTargetActionComponentState : BaseActionComponentState
  20. {
  21. public WorldTargetActionComponentState(WorldTargetActionComponent component, IEntityManager entManager) : base(component, entManager)
  22. {
  23. }
  24. }