Add WelderComponent back

This commit is contained in:
zumorica
2020-05-11 15:26:07 +02:00
parent 6ae5e36a18
commit b1db8d1e7a
11 changed files with 334 additions and 198 deletions

View File

@@ -25,17 +25,23 @@ namespace Content.Shared.GameObjects.Components.Interactable
[NetSerializable, Serializable]
public class ToolComponentState : ComponentState
{
public float FuelCapacity { get; }
public float Fuel { get; }
public bool Activated { get; }
public Tool Behavior { get; }
public ToolComponentState(Tool behavior) : base(ContentNetIDs.TOOL)
{
Behavior = behavior;
}
}
public ToolComponentState(float fuelCapacity, float fuel, bool activated) : base(ContentNetIDs.TOOL)
[NetSerializable, Serializable]
public class WelderComponentState : ComponentState
{
public float FuelCapacity { get; }
public float Fuel { get; }
public bool Activated { get; }
public Tool Behavior { get; }
public WelderComponentState(float fuelCapacity, float fuel, bool activated) : base(ContentNetIDs.WELDER)
{
FuelCapacity = fuelCapacity;
Fuel = fuel;

View File

@@ -37,12 +37,13 @@
public const uint HUMANOID_APPEARANCE = 1032;
public const uint INSTRUMENTS = 1033;
public const uint TOOL = 1034;
public const uint STACK = 1035;
public const uint HANDHELD_LIGHT = 1036;
public const uint PAPER = 1037;
public const uint REAGENT_INJECTOR = 1038;
public const uint GHOST = 1039;
public const uint MICROWAVE = 1040;
public const uint GRAVITY_GENERATOR = 1041;
public const uint WELDER = 1035;
public const uint STACK = 1036;
public const uint HANDHELD_LIGHT = 1037;
public const uint PAPER = 1038;
public const uint REAGENT_INJECTOR = 1039;
public const uint GHOST = 1040;
public const uint MICROWAVE = 1041;
public const uint GRAVITY_GENERATOR = 1042;
}
}