Files
OldThink/Content.Shared/_White/Wizard/SpellBlade/SpellBladeComponent.cs
Aviu00 4d09ed9245 Spellblade update (#346)
* - tweak: Don't close eui too quickly.

* - add: Spellblade update.

* - fix: Cult teleport spell.
2024-06-11 23:07:47 +03:00

40 lines
1017 B
C#

using Robust.Shared.Audio;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared._White.Wizard.SpellBlade;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class SpellBladeComponent : Component
{
[ViewVariables, AutoNetworkedField]
public string ChosenAspect = string.Empty;
[DataField]
public List<EntProtoId> Aspects = new()
{
"AspectFire",
"AspectFrost",
"AspectLightning",
"AspectBluespace",
"AspectMagicMissile"
};
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier AspectChosenSound = new SoundPathSpecifier("/Audio/White/Magic/spellblade-aspect.ogg");
}
[Serializable, NetSerializable]
public sealed class SpellBladeSystemMessage(EntProtoId protoId) : BoundUserInterfaceMessage
{
public EntProtoId ProtoId = protoId;
}
[Serializable, NetSerializable]
public enum SpellBladeUiKey : byte
{
Key
}