Class Coffee
A wrapper for coffee cup.
[Obsolete("Never available (for now).")]
public class Coffee : IWrapper<Coffee>
- Inheritance
-
Coffee
- Implements
-
IWrapper<Coffee>
- Inherited Members
- Extension Methods
Constructors
Coffee(Coffee)
Initializes a new instance of the Coffee class.
public Coffee(Coffee coffee)
Parameters
coffeeCoffee
Properties
Base
Gets the base coffee instance.
public Coffee Base { get; }
Property Value
- Coffee
BlacklistedPlayers
Gets or sets an IEnumerable<T> of players who cannot interact with coffee cups.
public static IEnumerable<Player> BlacklistedPlayers { get; set; }
Property Value
CoffeeTranslation
Gets or sets text which will be displayed to player when he drinks coffee.
public CoffeeTranslation CoffeeTranslation { get; set; }
Property Value
- CoffeeTranslation
DrinkColor
Gets the color of a drink in a cup.
public Color DrinkColor { get; }
Property Value
- Color
IsConsumed
Gets or sets a value indicating whether or not coffee has been drunk.
public bool IsConsumed { get; set; }
Property Value
List
Gets the list with all available Coffee instanses.
[Obsolete("This list will be empty")]
public static IReadOnlyCollection<Coffee> List { get; }
Property Value
TranslationAuthor
Gets or sets the author of current CoffeeTranslation.
public string TranslationAuthor { get; set; }
Property Value
Methods
Get(Coffee)
Gets a Coffee given a Coffee instance.
public static Coffee Get(Coffee baseCoffee)
Parameters
baseCoffeeCoffeeThe Coffee instance.
Returns
Get(Func<Coffee, bool>)
Gets a IEnumerable<T> of Coffee matching the condition.
[Obsolete("The respond list will be empty")]
public static IEnumerable<Coffee> Get(Func<Coffee, bool> predicate)
Parameters
Returns
- IEnumerable<Coffee>
A IEnumerable<T> of Coffee matching the condition.
Interact(Player)
Interacts with Coffee.
public void Interact(Player player = null)