mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
* staff of animation fixes and system * requested changes * size back to normal * Update AnimateSpellSystem.cs --------- Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> (cherry picked from commit cec05d697e696141660560864acd8e45d65ff445)
31 lines
928 B
C#
31 lines
928 B
C#
using Content.Shared.Actions;
|
|
using Content.Shared.Chat;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Magic.Events;
|
|
|
|
/// <summary>
|
|
/// Spell that uses the magic of ECS to add & remove components. Components are first removed, then added.
|
|
/// </summary>
|
|
public sealed partial class ChangeComponentsSpellEvent : EntityTargetActionEvent, ISpeakSpell
|
|
{
|
|
// TODO allow it to set component data-fields?
|
|
// for now a Hackish way to do that is to remove & add, but that doesn't allow you to selectively set specific data fields.
|
|
|
|
[DataField]
|
|
[AlwaysPushInheritance]
|
|
public ComponentRegistry ToAdd = new();
|
|
|
|
[DataField]
|
|
[AlwaysPushInheritance]
|
|
public HashSet<string> ToRemove = new();
|
|
|
|
[DataField]
|
|
public string? Speech { get; private set; }
|
|
|
|
[DataField]
|
|
public bool DoSpeech { get; private set; }
|
|
|
|
public InGameICChatType ChatType { get; } = InGameICChatType.Speak;
|
|
}
|