Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Added player to OnGeneratorFinish event
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Apr 12, 2022
1 parent 72b8cc4 commit 134f903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Smod2/EventSystem/Events/EnvironmentEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,12 @@ public override void ExecuteHandler(IEventHandler handler)
public class GeneratorFinishEvent : Event
{
public Generator Generator { get; }
public Player ActivatingPlayer { get; }

public GeneratorFinishEvent(Generator generator)
public GeneratorFinishEvent(Generator generator, Player activatingPlayer)
{
Generator = generator;
ActivatingPlayer = activatingPlayer;
}

public override void ExecuteHandler(IEventHandler handler)
Expand Down

0 comments on commit 134f903

Please sign in to comment.