-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommand.cs
27 lines (25 loc) · 870 Bytes
/
Command.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace oftc_ircd_cs
{
//public delegate void CommandHandler(Client client, Command command, object[] para);
public class Command
{
public Command(dynamic handler, string name, AccessLevel minAccess, uint minArgs, uint maxArgs, uint rateControl
/*, object data*/)
{
Handler = handler;
Name = name.ToUpper();
MinAccess = minAccess;
MinArgs = minArgs;
MaxArgs = maxArgs;
RateControl = rateControl;
//Data = data;
}
public dynamic Handler { get; set; }
public string Name { get; set; }
public AccessLevel MinAccess { get; set; }
public uint MinArgs { get; set; }
public uint MaxArgs { get; set; }
public uint RateControl { get; set; }
//object Data { get; set; }
}
}