mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
25 lines
No EOL
663 B
C#
25 lines
No EOL
663 B
C#
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
|
|
} |