Chronos Plugins  5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables Interface Reference

Keep track of consumables levels. More...

+ Inheritance diagram for AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables:

Public Member Functions

IManageConsumables Clone ()
 Create a copy of yourself for validation purposes. More...
 

Properties

ReadOnlyObservableCollection< IConsumablePoolPools [get]
 List of all consumable pools you manage. More...
 

Detailed Description

Keep track of consumables levels.

Implement this interface with your plugin object if you

  • keep track of some list of consumables
  • want to be notified if these consumables are used by tasks and get other useful information in this context. Those tasks have to implement IConsumer and call the respective methods of IConsumableManipulator according to what they do / intend to do.

Definition at line 17 of file IManageConsumables.cs.

Member Function Documentation

◆ Clone()

IManageConsumables AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables.Clone ( )

Create a copy of yourself for validation purposes.

Returns
For validation purposes, we need a consumable manager that starts with all the known levels, and that can be manipulated just like during a real run, to see if the consumable amounts suffice.

Implemented in MockPlugin.Consumables.CoffeeConsumableManager.

Property Documentation

◆ Pools

ReadOnlyObservableCollection<IConsumablePool> AxelSemrau.Chronos.Plugin.Consumables.IManageConsumables.Pools
get

List of all consumable pools you manage.

A consumable pool consists of one or more locations where a named consumable can be found.

Definition at line 25 of file IManageConsumables.cs.

25 { get; }

The documentation for this interface was generated from the following file: