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

10 lines
No EOL
363 B
C#

namespace WingsEmu.Game.Networking.Broadcasting;
public class ExceptSessionBroadcast : IBroadcastRule
{
private readonly long _sessionCharacterId;
public ExceptSessionBroadcast(IClientSession session) => _sessionCharacterId = session.PlayerEntity.Id;
public bool Match(IClientSession session) => session.PlayerEntity.Id != _sessionCharacterId;
}