/// <summary> /// Make a new notification /// </summary> /// <param name="message"></param> /// <param name="icon"></param> public Notification(string message, ItemIconController icon) { this.message = message; itemIcon = icon; displayTime = DefaultDisplayTime; }
/// <summary> /// Make a notification for when a player picks up an item /// </summary> /// <param name="item"></param> /// <param name="player"></param> /// <returns></returns> Notification getPlayerPickupItemNotification(Item item, Player player) { return(new Notification(TimesSymbol + " " + item.quantity.ToString() + " " + item.type.Name, ItemIconController.Make(item))); }