fixes
This commit is contained in:
@@ -42,15 +42,15 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
|
|
||||||
private SpriteComponent _spriteComponent;
|
private SpriteComponent _spriteComponent;
|
||||||
|
|
||||||
[ViewVariables]
|
private Solution _containedSolution = new Solution();
|
||||||
protected Solution _containedSolution = new Solution();
|
private int _maxVolume;
|
||||||
protected int _maxVolume;
|
|
||||||
private SolutionCaps _capabilities;
|
private SolutionCaps _capabilities;
|
||||||
private string _fillInitState;
|
private string _fillInitState;
|
||||||
private int _fillInitSteps;
|
private int _fillInitSteps;
|
||||||
private string _fillPathString = "Objects/Chemistry/fillings.rsi";
|
private string _fillPathString = "Objects/Chemistry/fillings.rsi";
|
||||||
private ResourcePath _fillPath;
|
private ResourcePath _fillPath;
|
||||||
private SpriteSpecifier _fillSprite;
|
private SpriteSpecifier _fillSprite;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum volume of the container.
|
/// The maximum volume of the container.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -89,6 +89,13 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
set => _capabilities = value;
|
set => _capabilities = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ViewVariables]
|
||||||
|
public Solution Solution
|
||||||
|
{
|
||||||
|
get => _containedSolution;
|
||||||
|
set => _containedSolution = value;
|
||||||
|
}
|
||||||
|
|
||||||
public IReadOnlyList<Solution.ReagentQuantity> ReagentList => _containedSolution.Contents;
|
public IReadOnlyList<Solution.ReagentQuantity> ReagentList => _containedSolution.Contents;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -142,15 +149,6 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Shutdown()
|
|
||||||
{
|
|
||||||
base.Shutdown();
|
|
||||||
|
|
||||||
_containedSolution.RemoveAllSolution();
|
|
||||||
_containedSolution = new Solution();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAllSolution()
|
public void RemoveAllSolution()
|
||||||
{
|
{
|
||||||
_containedSolution.RemoveAllSolution();
|
_containedSolution.RemoveAllSolution();
|
||||||
|
|||||||
Reference in New Issue
Block a user