mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-02-02 06:17:34 +00:00
29 lines
672 B
C#
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; }
|
|
}
|
|
}
|