IRotatableNode.cs 510 B

1234567891011121314
  1. namespace Content.Server.NodeContainer.Nodes
  2. {
  3. /// <summary>
  4. /// A <see cref="Node"/> that implements this will have its <see cref="RotateNode(MoveEvent)"/> called when its
  5. /// <see cref="NodeContainerComponent"/> is rotated.
  6. /// </summary>
  7. public interface IRotatableNode
  8. {
  9. /// <summary>
  10. /// Rotates this <see cref="Node"/>. Returns true if the node's connections need to be updated.
  11. /// </summary>
  12. bool RotateNode(in MoveEvent ev);
  13. }
  14. }