Reagent container visualizer (#3529)

* Started working on beakers

* Working sprite change

* Fixed large beaker

* Add bluepsace beaker

* Add cryostasis beaker

* Removed old rsi

* Fixed dropper

* No dropper problems

* Working on syrigine

* Better syr visualizer

* Add dropper inhand

* Syringe in-hands

* Add base empty bottle for chemistry

* Deleted old fillings

* Simplified beaker in hand

* Moved chemical bottles to seperate .yml

* Fixed chem master

* Serv3 when

* Fixed grammar

* Removed delays

Co-authored-by: Alex Evgrashin <evgrashin.adl@gmail.com>
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
Alex Evgrashin
2021-03-11 12:24:17 +03:00
committed by GitHub
parent bdb17d17e9
commit 4455bab4c5
75 changed files with 559 additions and 40 deletions

View File

@@ -290,6 +290,9 @@ namespace Content.Shared.GameObjects.Components.Chemistry
/// </summary>
public readonly byte FilledVolumeFraction;
// do we really need this just to save three bytes?
public float FilledVolumePercent => (float) FilledVolumeFraction / byte.MaxValue;
/// <param name="filledVolumeFraction">The fraction of the container's volume that is filled.</param>
public SolutionContainerVisualState(Color color, float filledVolumeFraction)
{
@@ -298,6 +301,12 @@ namespace Content.Shared.GameObjects.Components.Chemistry
}
}
public enum SolutionContainerLayers : byte
{
Fill,
Base
}
[Serializable, NetSerializable]
public class SolutionContainerComponentState : ComponentState
{