-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
134 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Content.Shared/Backmen/Psionics/Glimmer/GlimmerTierChangedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Robust.Shared.Serialization; | ||
|
||
namespace Content.Shared.Backmen.Psionics.Glimmer; | ||
|
||
/// <summary> | ||
/// This event is fired when the broader glimmer tier has changed, | ||
/// not on every single adjustment to the glimmer count. | ||
/// | ||
/// <see cref="GlimmerSystem.GetGlimmerTier"/> has the exact | ||
/// values corresponding to tiers. | ||
/// </summary> | ||
[Serializable, NetSerializable] | ||
public sealed class GlimmerTierChangedEvent : EntityEventArgs | ||
{ | ||
/// <summary> | ||
/// What was the last glimmer tier before this event fired? | ||
/// </summary> | ||
public readonly GlimmerTier LastTier; | ||
|
||
/// <summary> | ||
/// What is the current glimmer tier? | ||
/// </summary> | ||
public readonly GlimmerTier CurrentTier; | ||
|
||
/// <summary> | ||
/// What is the change in tiers between the last and current tier? | ||
/// </summary> | ||
public readonly int TierDelta; | ||
|
||
public GlimmerTierChangedEvent(GlimmerTier lastTier, GlimmerTier currentTier, int tierDelta) | ||
{ | ||
LastTier = lastTier; | ||
CurrentTier = currentTier; | ||
TierDelta = tierDelta; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters