Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
IConsumablePuddle.cs
Go to the documentation of this file.
1using System.ComponentModel;
2using System.Runtime.InteropServices;
3using Ctc.Palplus.Integration.Driver.Entities;
4
6{
10 [Guid("49C7CABC-8C72-4F2F-8BA1-2ED858B1A852")]
11 public interface IConsumablePuddle : INotifyPropertyChanged
12 {
20 string Location { get; }
24 Quantity MaxLevel { get; }
28 Quantity CurrentLevel { get; }
34 void ModifyBy(Quantity relativeAmount);
39 void SetTo(Quantity absoluteAmount);
40 }
41}
Information about the available consumables with a common name (like "Water" or "Liners")
Implement this on the representation of a single source for some consumable.
Quantity MaxLevel
How many units of this consumable are at best available here?
void SetTo(Quantity absoluteAmount)
Set the currently available amount.
string Location
Location information for this consumable that is meaningful to a task that consumes something - like ...
void ModifyBy(Quantity relativeAmount)
Change the currently active amount available in this puddle.
IConsumablePool ParentPool
Cross-link back to the pool to which this puddle belongs.
Quantity CurrentLevel
How many units of this consumable are currently available here?