From 17630fd40f828038f3d6a9b86d44ec5cbaa52606 Mon Sep 17 00:00:00 2001 From: Hannele Ruiz Date: Thu, 24 Dec 2020 21:47:26 -0300 Subject: [PATCH] Added event for when PC is ready to work --- PlayerCompanion/Companion.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PlayerCompanion/Companion.cs b/PlayerCompanion/Companion.cs index 9762c62..07bf5b2 100644 --- a/PlayerCompanion/Companion.cs +++ b/PlayerCompanion/Companion.cs @@ -65,6 +65,15 @@ public class Companion : Script #endregion + #region Events + + /// + /// Event Triggered when PlayerCompanion is ready to work. + /// + public static event EventHandler Ready; + + #endregion + #region Constructor /// @@ -139,6 +148,7 @@ private void Companion_Tick(object sender, EventArgs e) { Inventories.PopulateItems(); IsReady = true; + Ready?.Invoke(this, EventArgs.Empty); return; }