2022-09-29 15:51:59 +10:00
|
|
|
namespace Content.Client.Weapons.Melee.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Used for melee attack animations. Typically just has a fadeout.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class WeaponArcVisualsComponent : Component
|
2022-09-29 15:51:59 +10:00
|
|
|
{
|
2024-04-30 11:56:41 +00:00
|
|
|
public EntityUid? User;
|
|
|
|
|
|
2022-11-16 20:22:11 +01:00
|
|
|
[DataField("animation")]
|
2022-09-29 15:51:59 +10:00
|
|
|
public WeaponArcAnimation Animation = WeaponArcAnimation.None;
|
2022-11-09 07:28:49 +11:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("fadeOut")]
|
|
|
|
|
public bool Fadeout = true;
|
2022-09-29 15:51:59 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum WeaponArcAnimation : byte
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
Thrust,
|
|
|
|
|
Slash,
|
2024-11-18 14:40:52 +03:00
|
|
|
//CrystallEdge Melee upgrade
|
2024-04-06 22:58:08 +03:00
|
|
|
CPSlash,
|
|
|
|
|
CPThrust
|
2022-09-29 15:51:59 +10:00
|
|
|
}
|