IW4M-Admin/SharedLibraryCore/Commands/CommandExtensions.cs

14 lines
424 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
namespace SharedLibraryCore.Commands
{
public static class CommandExtensions
{
public static bool IsTargetingSelf(this GameEvent gameEvent) => gameEvent.Origin?.Equals(gameEvent.Target) ?? false;
public static bool CanPerformActionOnTarget(this GameEvent gameEvent) => gameEvent.Origin?.Level > gameEvent.Target?.Level;
}
}