* - tweak: Don't close eui too quickly. * - add: Spellblade update. * - fix: Cult teleport spell.
38 lines
962 B
C#
38 lines
962 B
C#
using System.Numerics;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared._White.BetrayalDagger;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class BlinkComponent : Component
|
|
{
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float Distance = 5f;
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float BlinkRate = 1f;
|
|
|
|
public TimeSpan NextBlink;
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public SoundSpecifier BlinkSound = new SoundPathSpecifier("/Audio/Magic/blink.ogg")
|
|
{
|
|
Params = AudioParams.Default.WithVolume(5f)
|
|
};
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class BlinkEvent : EntityEventArgs
|
|
{
|
|
public readonly NetEntity Weapon;
|
|
public readonly Vector2 Direction;
|
|
|
|
public BlinkEvent(NetEntity weapon, Vector2 direction)
|
|
{
|
|
Weapon = weapon;
|
|
Direction = direction;
|
|
}
|
|
}
|