コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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)));
 }