Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
MockPlugin.Tasks.BrewFrappuccino.CompositionData Class Reference

Let's pretend the composition is really complex and better done with a custom editor. More...

Public Member Functions

 CompositionData ()
 Default composition.
override string ToString ()
 This value will be shown (read only) in the property field, with a button next to it that invokes our editor.

Properties

MockDevice DevInEditor [get, set]
CreamType Cream [get, set]
bool MuchIce [get, set]
bool DeCaffeinated [get, set]
uint Volume [get, set]

Detailed Description

Let's pretend the composition is really complex and better done with a custom editor.

Definition at line 157 of file MockUseDeviceTasks.cs.

Constructor & Destructor Documentation

◆ CompositionData()

MockPlugin.Tasks.BrewFrappuccino.CompositionData.CompositionData ( )

Default composition.

Definition at line 177 of file MockUseDeviceTasks.cs.

178 {
179 Cream = CreamType.LowFat;
180 MuchIce = false;
181 DeCaffeinated = false;
182 Volume = 250;
183 }

References Cream, DeCaffeinated, MuchIce, and Volume.

Member Function Documentation

◆ ToString()

override string MockPlugin.Tasks.BrewFrappuccino.CompositionData.ToString ( )

This value will be shown (read only) in the property field, with a button next to it that invokes our editor.

Returns

Definition at line 189 of file MockUseDeviceTasks.cs.

190 {
191 return String.Format(LocalizeMockPlugin.CompositionData_ToString_Cream___0___MuchIce___1___Decaffeinated___2___Size___3__mL,
192 Cream, MuchIce, DeCaffeinated, Volume);
193 }

References Cream, DeCaffeinated, MuchIce, and Volume.

Property Documentation

◆ Cream

CreamType MockPlugin.Tasks.BrewFrappuccino.CompositionData.Cream
getset

Definition at line 162 of file MockUseDeviceTasks.cs.

163 {
164 get;
165 set;
166 }

Referenced by CompositionData(), MockPlugin.Tasks.BrewFrappuccino.RegisterConsumption(), and ToString().

◆ DeCaffeinated

bool MockPlugin.Tasks.BrewFrappuccino.CompositionData.DeCaffeinated
getset

Definition at line 170 of file MockUseDeviceTasks.cs.

170{ get; set; }

Referenced by CompositionData(), and ToString().

◆ DevInEditor

MockDevice MockPlugin.Tasks.BrewFrappuccino.CompositionData.DevInEditor
getset

Definition at line 160 of file MockUseDeviceTasks.cs.

160{ get; set; }

◆ MuchIce

bool MockPlugin.Tasks.BrewFrappuccino.CompositionData.MuchIce
getset

Definition at line 168 of file MockUseDeviceTasks.cs.

168{ get; set; }

Referenced by CompositionData(), and ToString().

◆ Volume

uint MockPlugin.Tasks.BrewFrappuccino.CompositionData.Volume
getset

Definition at line 172 of file MockUseDeviceTasks.cs.

172{ get; set; }

Referenced by CompositionData(), and ToString().


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