diff options
Diffstat (limited to 'source/WindowsFormsApplication1/Controls/Computer.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Controls/Computer.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/WindowsFormsApplication1/Controls/Computer.cs b/source/WindowsFormsApplication1/Controls/Computer.cs index 1d287f8..ad33a58 100644 --- a/source/WindowsFormsApplication1/Controls/Computer.cs +++ b/source/WindowsFormsApplication1/Controls/Computer.cs @@ -168,6 +168,16 @@ namespace ShiftOS public string Hostname { get; set; } + internal void throw_repaired() + { + OnRepair?.Invoke(this, new EventArgs()); + } + + internal void throw_damaged() + { + HP_Decreased?.Invoke(this, new EventArgs()); + } + public event EventHandler HP_Decreased; public void Deteriorate(int amount) |
