From 134f90349cc930ac4df206ce89279ceffacfc134 Mon Sep 17 00:00:00 2001 From: Karl Essinger Date: Wed, 13 Apr 2022 00:22:32 +0200 Subject: [PATCH] Added player to OnGeneratorFinish event --- Smod2/EventSystem/Events/EnvironmentEvents.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Smod2/EventSystem/Events/EnvironmentEvents.cs b/Smod2/EventSystem/Events/EnvironmentEvents.cs index b21ec1a..24e0919 100644 --- a/Smod2/EventSystem/Events/EnvironmentEvents.cs +++ b/Smod2/EventSystem/Events/EnvironmentEvents.cs @@ -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)