Fix taser visuals not updating after charging. (#6065)

This commit is contained in:
Leon Friedrich
2022-01-10 01:48:58 +13:00
committed by GitHub
parent 259914b919
commit 5a64936ade
4 changed files with 21 additions and 6 deletions

View File

@@ -64,6 +64,9 @@ public sealed class PowerCellSlotComponent : Component
public bool FitsInCharger = true;
}
/// <summary>
/// Raised directed at an entity with a power cell slot when the power cell inside has its charge updated or is ejected/inserted.
/// </summary>
public class PowerCellChangedEvent : EntityEventArgs
{
public readonly bool Ejected;