Mehr reden
This commit is contained in:
31
3d Prototyp/Assets/Scripts/Utility/WantedConsumable.cs
Normal file
31
3d Prototyp/Assets/Scripts/Utility/WantedConsumable.cs
Normal file
@ -0,0 +1,31 @@
|
||||
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",
|
||||
_ => ""
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user