Add FTL arrival visuals (#29402)
* Add FTL arrival visuals * weh * Update Content.Shared/Shuttles/Components/FTLComponent.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
This commit is contained in:
23
Content.Shared/Shuttles/Components/FtlVisualizerComponent.cs
Normal file
23
Content.Shared/Shuttles/Components/FtlVisualizerComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Shuttles.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class FtlVisualizerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Clientside time tracker for the animation.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Elapsed;
|
||||
|
||||
[DataField(required: true)]
|
||||
public SpriteSpecifier.Rsi Sprite;
|
||||
|
||||
/// <summary>
|
||||
/// Target grid to pull FTL visualization from.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public EntityUid Grid;
|
||||
}
|
||||
Reference in New Issue
Block a user