diff options
Diffstat (limited to 'dsa/DSALib/Models/Network/Command.cs')
-rw-r--r-- | dsa/DSALib/Models/Network/Command.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dsa/DSALib/Models/Network/Command.cs b/dsa/DSALib/Models/Network/Command.cs new file mode 100644 index 0000000..5a97e88 --- /dev/null +++ b/dsa/DSALib/Models/Network/Command.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic; +using System.Linq; + +namespace DSALib.Models.Network +{ + 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 var mod) ? mod : 0; + public bool IsDm { get; set; } = false; + } +}
\ No newline at end of file |