Refactor AME to use ItemSlot for Fuel (#25558)
* Using wrench on AME doesn't first try to put it in. * Refactor AME to use ItemSlot for fuel. * Apparently these names want to match.
This commit is contained in:
19
Content.Shared/Ame/Components/AmeFuelContainerComponent.cs
Normal file
19
Content.Shared/Ame/Components/AmeFuelContainerComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Ame.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class AmeFuelContainerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The amount of fuel in the container.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
|
||||
public int FuelAmount = 1000;
|
||||
|
||||
/// <summary>
|
||||
/// The maximum fuel capacity of the container.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
|
||||
public int FuelCapacity = 1000;
|
||||
}
|
||||
Reference in New Issue
Block a user