diff options
| author | Michael <[email protected]> | 2017-06-28 16:33:07 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-28 16:33:07 -0400 |
| commit | 27264a559d7fd40a0c2bc393a5e150c17da1539d (patch) | |
| tree | ed02811fbd109b1637cd9b6a818af3eb4ce46e59 /ShiftOS_TheReturn/IVirus.cs | |
| parent | 6cdb8cb0253230f6f845afb549517c5c3f12d2d1 (diff) | |
| download | shiftos_thereturn-27264a559d7fd40a0c2bc393a5e150c17da1539d.tar.gz shiftos_thereturn-27264a559d7fd40a0c2bc393a5e150c17da1539d.tar.bz2 shiftos_thereturn-27264a559d7fd40a0c2bc393a5e150c17da1539d.zip | |
Basics of the virus system
Diffstat (limited to 'ShiftOS_TheReturn/IVirus.cs')
| -rw-r--r-- | ShiftOS_TheReturn/IVirus.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/IVirus.cs b/ShiftOS_TheReturn/IVirus.cs new file mode 100644 index 0000000..0c06aea --- /dev/null +++ b/ShiftOS_TheReturn/IVirus.cs @@ -0,0 +1,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; } + } +} |
