server-master/srcs/WingsAPI.Game/Networking/Broadcasting/InRaidBroadcast.cs
2026-02-10 18:21:30 +01:00

13 lines
No EOL
358 B
C#

using System;
using WingsEmu.Game.Raids;
namespace WingsEmu.Game.Networking.Broadcasting;
public class InRaidBroadcast : IBroadcastRule
{
private readonly Guid _id;
public InRaidBroadcast(RaidParty raid) => _id = raid.Id;
public bool Match(IClientSession session) => session.PlayerEntity.Raid != null && session.PlayerEntity.Raid.Id == _id;
}