Add DamagePopup, Target Entities, And Practice Laser Gun (#12317)
This commit is contained in:
20
Content.Server/Damage/Components/DamagePopupComponent.cs
Normal file
20
Content.Server/Damage/Components/DamagePopupComponent.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Server.Damage.Systems;
|
||||
|
||||
namespace Content.Server.Damage.Components;
|
||||
|
||||
[RegisterComponent, Access(typeof(DamagePopupSystem))]
|
||||
public sealed class DamagePopupComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum that will be used to determine the type of damage popup displayed.
|
||||
/// </summary>
|
||||
[DataField("damagePopupType")] [ViewVariables(VVAccess.ReadWrite)]
|
||||
public DamagePopupType Type = DamagePopupType.Combined;
|
||||
}
|
||||
public enum DamagePopupType
|
||||
{
|
||||
Combined,
|
||||
Total,
|
||||
Delta,
|
||||
Hit,
|
||||
};
|
||||
Reference in New Issue
Block a user