fish-station/Content.Client/GameObjects/Components
moneyl 963bb28f0f Reagent dispensers (#360)
* Expose more private values of Solution and SolutionComponent

Expose SolutionComponent.ContainedSolution and Solution.Contents. Both needed by ReagentDispenserComponent.

* Implement IExamine for SolutionComponent

Allows players to see the contents of a solution by examining the entity which contains it.

* Implement ReagentDispenserComponent

Adds ReagentDispenserComponent. A component which can add or remove reagents from a solution container. It's written in a general way so that it can be used for things such as the Chemical dispensers in chemistry, but also the booze and soda dispensers in the bar. 

The chemicals it may dispense are defined in yaml, similar to the way that vending machines define which entities they can dispense, by defining a reagent pack.

* Add chemical dispenser and equipment

Adds the chemical dispenser, beaker, large beaker, dropper, and a few more chemicals.

* Add booze and soda dispensers.

Adds the booze and soda dispensers, and a few chemicals for them to dispense. There's no drink mixing or drunkenness yet.

* Update engine submodule.

* Remove unneeded and commented out code

Had a few WIP notes and debug code bits I forgot to remove beforehand.

* Make SolutionComponent._containedSolution and it's values private again

- Remove `SolutionComponent.ContainedSolution` property, replace with specific access functions to maintain safety.
- Make Solution.Contents return a `ReadOnlyCollection` instead of `_contents` to prevent uncontrolled access to the Solution values.
- Add `SolutionComponent.RemoveAllSolution()`

* Update Content.Shared/Chemistry/Solution.cs

Commits a suggestion from RemieRichards to match the coding style of the rest of the codebase. Using `IReadOnlyList` instead of `IReadOnlyCollection`.

Co-Authored-By: Remie Richards <remierichards@gmail.com>

* Update Content.Shared/GameObjects/Components/Chemistry/SolutionComponent.cs

Commits a suggestion from RemieRichards to match the coding style of the rest of the codebase. Using `IReadOnlyList` instead of `IReadOnlyCollection`.

Co-Authored-By: Remie Richards <remierichards@gmail.com>

* Add import for IReadOnlyList to Shared/SolutionComponent.cs

* Add documentation

* Improve localization

Improve use of ILocalizationManager.

* Resolve ReagentDispenserWindow._localizationManager before using it

Forgot to do this in the last commit, resulting in a crash. Oops.

* Add SolutionCaps.FitsInDispenser. Use in ReagentDispenserComponent.

Used to limit large containers like buckets or mop buckets from being placed in a dispenser. Both have large capacities (500) and weren't designed to hold certain chemicals like a beaker is, so for now they can be blocked from being put in a dispenser by giving them that flag.

* Add colors to new reagents

* Update engine submodule
2019-10-05 15:10:05 +02:00
..
Access Create BoundUserInterfaces with DynamicTypeFactory (content) (#332) 2019-09-08 16:05:34 +02:00
Actor Use automatic component registration. 2019-07-31 15:07:54 +02:00
Chemistry Reagent dispensers (#360) 2019-10-05 15:10:05 +02:00
Clothing Use automatic component registration. 2019-07-31 15:07:54 +02:00
Construction Updates various systems to the new InputCommandHandler delegate signature, implementing the new handled return value. 2019-09-17 16:10:59 -07:00
Doors IDs and access (#319) 2019-09-01 22:57:22 +02:00
HUD/Inventory Fix OpenStorage button in HumanInventoryWindow (#322) 2019-09-01 22:50:13 +02:00
IconSmoothing Updates the content components to be compatible with the changes in 55a50ff7ba. 2019-09-18 11:36:58 -07:00
Items Use automatic component registration. 2019-07-31 15:07:54 +02:00
MedicalScanner Added medical scanner (#338) 2019-09-18 20:24:55 +02:00
Mobs Shitty combat mode & animations. (#367) 2019-09-26 22:32:32 +02:00
Movement Add basic teleportation and portals (#269) 2019-07-19 10:09:33 +02:00
Power UI system refactor; submodule update. 2019-08-14 22:04:35 +02:00
Research Use improved ItemLists (#335) 2019-09-13 15:35:06 +02:00
Sound IoC'd random (#302) 2019-08-17 12:09:09 -07:00
Storage UI system refactor; submodule update. 2019-08-14 22:04:35 +02:00
Trigger Explosions and Grenades, Triggers, OnDestroy, OnExAct, Fueltanks and destructible tables (#247) 2019-06-07 13:15:20 +02:00
VendingMachines Vending Machines (#296) 2019-08-14 10:49:28 +02:00
Weapons Shitty combat mode & animations. (#367) 2019-09-26 22:32:32 +02:00
Wires Create BoundUserInterfaces with DynamicTypeFactory (content) (#332) 2019-09-08 16:05:34 +02:00
AnimationsTestComponent.cs Property animations test component. (#340) 2019-09-18 22:14:21 +02:00
ComputerVisualizer2D.cs Eris computer sprites, visualizer. 2019-08-12 18:43:24 +02:00
DamageableComponent.cs Use automatic component registration. 2019-07-31 15:07:54 +02:00
LowWallComponent.cs Updates the content components to be compatible with the changes in 55a50ff7ba. 2019-09-18 11:36:58 -07:00
SubFloorHideComponent.cs The SubFloorHideComponent can now be properly started/stopped. Previously this did nothing. 2019-09-19 11:43:46 -07:00
WindowComponent.cs Updates the content components to be compatible with the changes in 55a50ff7ba. 2019-09-18 11:36:58 -07:00