Skip to content

Commit

Permalink
Added event for when PC is ready to work
Browse files Browse the repository at this point in the history
  • Loading branch information
justalemon committed Dec 25, 2020
1 parent 92b5a31 commit 17630fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PlayerCompanion/Companion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ public class Companion : Script

#endregion

#region Events

/// <summary>
/// Event Triggered when PlayerCompanion is ready to work.
/// </summary>
public static event EventHandler Ready;

#endregion

#region Constructor

/// <summary>
Expand Down Expand Up @@ -139,6 +148,7 @@ private void Companion_Tick(object sender, EventArgs e)
{
Inventories.PopulateItems();
IsReady = true;
Ready?.Invoke(this, EventArgs.Empty);
return;
}

Expand Down

0 comments on commit 17630fd

Please sign in to comment.