SlidingComponent.cs 746 B

12345678910111213141516171819202122
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Slippery;
  3. /// <summary>
  4. /// Applies continuous movement to the attached entity when colliding with super slipper entities.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  7. public sealed partial class SlidingComponent : Component
  8. {
  9. /// <summary>
  10. /// A list of SuperSlippery entities the entity with this component is colliding with.
  11. /// </summary>
  12. [DataField, AutoNetworkedField]
  13. public HashSet<EntityUid> CollidingEntities = new ();
  14. /// <summary>
  15. /// The friction modifier that will be applied to any friction calculations.
  16. /// </summary>
  17. [DataField, AutoNetworkedField]
  18. public float FrictionModifier;
  19. }