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; }