Cleanup code a little.
This commit is contained in:
@@ -16,19 +16,11 @@ namespace Content.Client.GameObjects.Components.Interactable
|
||||
public class ToolComponent : SharedToolComponent, IItemStatus
|
||||
{
|
||||
private Tool _behavior;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] private bool _uiUpdateNeeded;
|
||||
|
||||
private bool _statusShowBehavior;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] private bool _uiUpdateNeeded;
|
||||
[ViewVariables] public bool StatusShowBehavior => _statusShowBehavior;
|
||||
|
||||
[ViewVariables]
|
||||
public override Tool Behavior
|
||||
{
|
||||
get => _behavior;
|
||||
set {}
|
||||
}
|
||||
[ViewVariables] public override Tool Behavior => _behavior;
|
||||
|
||||
public override void ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
|
||||
@@ -25,12 +25,7 @@ namespace Content.Client.GameObjects.Components.Interactable
|
||||
[ViewVariables] public float FuelCapacity { get; private set; }
|
||||
[ViewVariables] public float Fuel { get; private set; }
|
||||
[ViewVariables] public bool Activated { get; private set; }
|
||||
[ViewVariables]
|
||||
public override Tool Behavior
|
||||
{
|
||||
get => _behavior;
|
||||
set {}
|
||||
}
|
||||
[ViewVariables] public override Tool Behavior => _behavior;
|
||||
|
||||
public override void ExposeData(ObjectSerializer serializer)
|
||||
{
|
||||
|
||||
@@ -214,13 +214,10 @@ namespace Content.Server.GameObjects.Components.Doors
|
||||
}
|
||||
|
||||
if (State == DoorState.Closed)
|
||||
{
|
||||
Open();
|
||||
}
|
||||
else if(State == DoorState.Open)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user