Show / Hide Table of Contents

Class SharedFloatingVisualizerSystem

Handles offsetting a sprite when there is no gravity

Inheritance
System.Object
SharedFloatingVisualizerSystem
FloatingVisualizerSystem
FloatingVisualizerSystem
Namespace: Content.Shared.Gravity
Assembly: Content.Shared.dll
Syntax
public abstract class SharedFloatingVisualizerSystem : EntitySystem

Methods

| Improve this Doc View Source

CanFloat(EntityUid, FloatingVisualsComponent, Nullable<TransformComponent>)

Declaration
protected bool CanFloat(EntityUid uid, FloatingVisualsComponent component, TransformComponent? transform = null)
Parameters
Type Name Description
EntityUid uid
FloatingVisualsComponent component
System.Nullable<TransformComponent> transform
Returns
Type Description
System.Boolean
| Improve this Doc View Source

FloatAnimation(EntityUid, Vector2, String, Single, Boolean)

Offsets a sprite with a linear interpolation animation

Declaration
public virtual void FloatAnimation(EntityUid uid, Vector2 offset, string animationKey, float animationTime, bool stop = false)
Parameters
Type Name Description
EntityUid uid
Vector2 offset
System.String animationKey
System.Single animationTime
System.Boolean stop
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾