aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/IVirus.cs
blob: 0c06aea7ba171449ed07422eae70b31803f6d37c (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
26
27
28
29
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; }
    }
}