emag refactor (#15181)
* limitedcharges stuff from emag * changes except broken * fix * the * move recharging to server, emag namespace -> charges * the * use resolve * pro webedit gaming * the * the --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
24
Content.Shared/Charges/Components/LimitedChargesComponent.cs
Normal file
24
Content.Shared/Charges/Components/LimitedChargesComponent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Shared.Charges.Systems;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Charges.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[Access(typeof(SharedChargesSystem))]
|
||||
[AutoGenerateComponentState]
|
||||
public sealed partial class LimitedChargesComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The maximum number of charges
|
||||
/// </summary>
|
||||
[DataField("maxCharges"), ViewVariables(VVAccess.ReadWrite)]
|
||||
[AutoNetworkedField]
|
||||
public int MaxCharges = 3;
|
||||
|
||||
/// <summary>
|
||||
/// The current number of charges
|
||||
/// </summary>
|
||||
[DataField("charges"), ViewVariables(VVAccess.ReadWrite)]
|
||||
[AutoNetworkedField]
|
||||
public int Charges = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user