Class RotationVisualizerSystem
Inheritance
System.Object
Robust.Shared.GameObjects.EntitySystem
Robust.Client.GameObjects.VisualizerSystem<RotationVisualsComponent>
RotationVisualizerSystem
Implements
Robust.Shared.GameObjects.IEntitySystem
Robust.Shared.GameObjects.IEntityEventSubscriber
Robust.Shared.IoC.IPostInjectInit
Namespace: Content.Client.Rotation
Assembly: Content.Client.dll
Syntax
public sealed class RotationVisualizerSystem : VisualizerSystem<RotationVisualsComponent>, IEntitySystem, IEntityEventSubscriber, IPostInjectInit
Methods
| Improve this Doc View SourceAnimateSpriteRotation(EntityUid, SpriteComponent, Angle, Single)
Rotates a sprite between two animated keyframes given a certain time.
Declaration
public void AnimateSpriteRotation(EntityUid uid, SpriteComponent spriteComp, Angle rotation, float animationTime)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityUid | uid | |
| Robust.Client.GameObjects.SpriteComponent | spriteComp | |
| Angle | rotation | |
| System.Single | animationTime |
OnAppearanceChange(EntityUid, RotationVisualsComponent, ref AppearanceChangeEvent)
Declaration
protected override void OnAppearanceChange(EntityUid uid, RotationVisualsComponent component, ref AppearanceChangeEvent args)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityUid | uid | |
| RotationVisualsComponent | component | |
| Robust.Client.GameObjects.AppearanceChangeEvent | args |
SetHorizontalAngle(EntityUid, Angle, RotationVisualsComponent)
Declaration
public void SetHorizontalAngle(EntityUid uid, Angle angle, RotationVisualsComponent component = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityUid | uid | |
| Angle | angle | |
| RotationVisualsComponent | component |
Implements
Robust.Shared.GameObjects.IEntitySystem
Robust.Shared.GameObjects.IEntityEventSubscriber
Robust.Shared.IoC.IPostInjectInit