mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* Decoupled from gravity, constant animation time, manual networking, cubic interpolation
* Reduced overshoot
* Implemented PointAttemptEvent, reacts with mobstate & sleeping
* Brains can no longer point, PBs must be inside a chassis
* Removed chassis check, made callback more obvious
(cherry picked from commit d01d75073c)
23 lines
543 B
C#
23 lines
543 B
C#
using Robust.Shared.GameStates;
|
|
using System.Numerics;
|
|
|
|
namespace Content.Shared.Pointing.Components;
|
|
|
|
[NetworkedComponent]
|
|
public abstract partial class SharedPointingArrowComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The position of the sender when the point began.
|
|
/// </summary>
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public Vector2 StartPosition;
|
|
|
|
/// <summary>
|
|
/// When the pointing arrow ends
|
|
/// </summary>
|
|
[DataField]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan EndTime;
|
|
}
|