adds a source uid to most damage & mobstate events (#11559)

Co-authored-by: Flipp Syder <76629141+vulppine@users.noreply.github.com>
This commit is contained in:
Paul Ritter
2022-10-08 12:15:27 +02:00
committed by GitHub
parent 548cee77e2
commit 79854e59a4
24 changed files with 50 additions and 37 deletions

View File

@@ -7,11 +7,13 @@ namespace Content.Shared.MobState
public MobStateChangedEvent(
MobStateComponent component,
DamageState? oldMobState,
DamageState currentMobState)
DamageState currentMobState,
EntityUid? origin)
{
Component = component;
OldMobState = oldMobState;
CurrentMobState = currentMobState;
Origin = origin;
}
public EntityUid Entity => Component.Owner;
@@ -21,6 +23,8 @@ namespace Content.Shared.MobState
public DamageState? OldMobState { get; }
public DamageState CurrentMobState { get; }
public EntityUid? Origin { get; }
}
public static class A