31 lines
796 B
C#
31 lines
796 B
C#
|
using System;
|
||
|
|
||
|
namespace Utility
|
||
|
{
|
||
|
[Serializable, Flags]
|
||
|
public enum WantedConsumable
|
||
|
{
|
||
|
None,
|
||
|
Food = 0x01,
|
||
|
Drink = 0x02,
|
||
|
Coffee = Drink | 0x04,
|
||
|
Mate = Drink | 0x08,
|
||
|
Pizza = Food | 0x10
|
||
|
}
|
||
|
|
||
|
public static class WantedConsumableExtension
|
||
|
{
|
||
|
|
||
|
public static string GetAsString(this WantedConsumable wantedConsumable) =>
|
||
|
wantedConsumable switch
|
||
|
{
|
||
|
WantedConsumable.None => "None",
|
||
|
WantedConsumable.Food => "Food",
|
||
|
WantedConsumable.Drink => "Drink",
|
||
|
WantedConsumable.Coffee => "Coffee",
|
||
|
WantedConsumable.Mate => "Blub Mate",
|
||
|
WantedConsumable.Pizza => "Pizza",
|
||
|
_ => ""
|
||
|
};
|
||
|
}
|
||
|
}
|