aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/VirusTestCommands.cs
blob: 09f1a36b24cb25d174243835343bab061bbe5ce3 (plain) (blame)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Engine;

namespace ShiftOS.WinForms
{
#if DEBUG
    public static class VirusTestCommands
    {
        [Command("infect", description = "DEBUG: Infect the system with a virus.")]
        [RequiresArgument("id")]
        [RequiresArgument("threatlevel")]
        public static void Infect(Dictionary<string, object> args)
        {
            var id = args["id"].ToString();
            var threatlevel = Convert.ToInt32(args["threatlevel"].ToString());

            VirusManager.Infect(id, threatlevel);
        }
    }
#endif
}