blob: 72c2a4c9fa54b7d7a3b3a1b5331c9ed77e785ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DSACore.Models
{
public class Command
{
public ulong GroupId { get; set; } = 0;
public ulong CharId { get; set; }
public string Name { get; set; }
public string CmdIdentifier { get; set; }
public List<string> CmdTexts { get; set; }
public string CmdText => CmdTexts.Count != 0 ? CmdTexts.First() : "";
public int Cmdmodifier => CmdTexts.Count!=0&&int.TryParse(CmdTexts.Last(),out int mod)?mod:0;
public bool IsDm { get; set; } = false;
}
}
|