2024-08-01 11:52:27 +03:00
namespace Content.Shared._CP14.MagicSpell.Components ;
2024-07-28 17:26:47 +03:00
/// <summary>
/// Requires the user to be able to speak in order to use this spell. Also forces the user to use certain phrases at the beginning and end of a spell cast
/// </summary>
[RegisterComponent, Access(typeof(CP14SharedMagicSystem))]
public sealed partial class CP14MagicEffectVerbalAspectComponent : Component
{
[DataField]
2025-02-06 12:38:20 +03:00
public string StartSpeech = string . Empty ; //Not LocId!
2024-07-28 17:26:47 +03:00
[DataField]
2025-02-06 12:38:20 +03:00
public string EndSpeech = string . Empty ; //Not LocId!
2024-07-28 17:26:47 +03:00
}
/// <summary>
/// patch to send an event to the server for saying a phrase out loud
/// </summary>
[ByRefEvent]
2025-04-12 17:32:53 +03:00
public sealed class CP14SpellSpeechEvent : EntityEventArgs
2024-07-28 17:26:47 +03:00
{
public EntityUid ? Performer { get ; init ; }
public string? Speech { get ; init ; }
2025-02-06 12:38:20 +03:00
public bool Emote { get ; init ; }
2024-07-28 17:26:47 +03:00
}