ShiftOS_TheReturn/ShiftOS_TheReturn/IVirus.cs
2017-06-28 16:33:07 -04:00

29 lines
672 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Engine
{
public interface IVirus
{
void Infect(int threatlevel);
void Disinfect();
}
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class VirusAttribute : Attribute
{
public VirusAttribute(string id, string name, string desc)
{
Name = name;
ID = id;
Description = desc;
}
public string Name { get; set; }
public string Description { get; set; }
public string ID { get; set; }
}
}