mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-11 23:58:08 -05:00
Initial .net 6 upgrades
This commit is contained in:
@ -5,60 +5,60 @@ using static SharedLibraryCore.Server;
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the basic properties of a command
|
||||
/// Defines the basic properties of a command
|
||||
/// </summary>
|
||||
public interface IManagerCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes the command
|
||||
/// </summary>
|
||||
/// <param name="gameEvent">event corresponding to the command</param>
|
||||
/// <returns></returns>
|
||||
Task ExecuteAsync(GameEvent gameEvent);
|
||||
|
||||
/// <summary>
|
||||
/// Name of the command
|
||||
/// Name of the command
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Description of the command
|
||||
/// Description of the command
|
||||
/// </summary>
|
||||
string Description { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Alternative name of the command
|
||||
/// Alternative name of the command
|
||||
/// </summary>
|
||||
string Alias { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Minimum permission required to execute the command
|
||||
/// Minimum permission required to execute the command
|
||||
/// </summary>
|
||||
Permission Permission { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Games the command is supported on
|
||||
/// Games the command is supported on
|
||||
/// </summary>
|
||||
Game[] SupportedGames { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Syntax for using the command
|
||||
/// Syntax for using the command
|
||||
/// </summary>
|
||||
string Syntax { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if target is required
|
||||
/// Indicates if target is required
|
||||
/// </summary>
|
||||
bool RequiresTarget { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the commands can be run as another client
|
||||
/// Indicates if the commands can be run as another client
|
||||
/// </summary>
|
||||
bool AllowImpersonation { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates if the command result should be broadcasted to all clients
|
||||
/// Indicates if the command result should be broadcasted to all clients
|
||||
/// </summary>
|
||||
bool IsBroadcast { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the command
|
||||
/// </summary>
|
||||
/// <param name="gameEvent">event corresponding to the command</param>
|
||||
/// <returns></returns>
|
||||
Task ExecuteAsync(GameEvent gameEvent);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user