-
Notifications
You must be signed in to change notification settings - Fork 414
Expand file tree
/
Copy pathApplicationUnits.cs
More file actions
36 lines (27 loc) · 1.27 KB
/
Copy pathApplicationUnits.cs
File metadata and controls
36 lines (27 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Licensed under MIT No Attribution, see LICENSE file at the root.
using UnitsNet.Modular;
using Catalog = UnitsNet.Modular.BuiltIns;
namespace ModularPlayground;
// Change these lists and rebuild to control exactly which unit enum members are generated.
[UnitSet("Meter", "Kilometer", "Mile")]
internal interface PlaygroundLengthUnits;
[UnitSet("Second", "Minute", "Hour")]
internal interface PlaygroundDurationUnits;
[UnitSet("MeterPerSecond", "KilometerPerHour", "MilePerHour")]
internal interface PlaygroundSpeedUnits;
[UnitSet("Joule", "KilowattHour")]
internal interface PlaygroundEnergyUnits;
[UnitSet("Watt", "Kilowatt")]
internal interface PlaygroundPowerUnits;
// The semantic ID connects this authoring type to ParcelCount.unitsnet.json.
[QuantitySpec("ModularPlayground.ParcelCount")]
internal interface ParcelCountSpec;
// Add or remove selections here, then rebuild. Only these quantities are generated.
[UnitsNetModule]
internal interface PlaygroundUnits :
IInclude<Catalog.LengthSpec, PlaygroundLengthUnits>,
IInclude<Catalog.DurationSpec, PlaygroundDurationUnits>,
IInclude<Catalog.SpeedSpec, PlaygroundSpeedUnits>,
IInclude<Catalog.EnergySpec, PlaygroundEnergyUnits>,
IInclude<Catalog.PowerSpec, PlaygroundPowerUnits>,
IInclude<ParcelCountSpec>;