2019-09-26 22:32:32 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Content.Shared.GameObjects.EntitySystemMessages;
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
|
|
|
using Robust.Shared.Maths;
|
|
|
|
|
|
2020-08-13 14:40:27 +02:00
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
2019-09-26 22:32:32 +02:00
|
|
|
{
|
|
|
|
|
public sealed class MeleeWeaponSystem : EntitySystem
|
|
|
|
|
{
|
2020-10-12 13:17:38 +02:00
|
|
|
public void SendAnimation(string arc, Angle angle, IEntity attacker, IEntity source, IEnumerable<IEntity> hits, bool textureEffect = false, bool arcFollowAttacker = true)
|
2019-09-26 22:32:32 +02:00
|
|
|
{
|
2020-08-31 20:54:33 +02:00
|
|
|
RaiseNetworkEvent(new MeleeWeaponSystemMessages.PlayMeleeWeaponAnimationMessage(arc, angle, attacker.Uid, source.Uid,
|
2020-10-12 13:17:38 +02:00
|
|
|
hits.Select(e => e.Uid).ToList(), textureEffect, arcFollowAttacker));
|
2019-09-26 22:32:32 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|