Example #1
0
 protected override void OnTick()
 {
     if (Deadline < DateTime.UtcNow)
     {
         if (!TryUnload())
         {
             Container.Delete();
         }
     }
     else if (TryUnload())
     {
         Container.StopTimer();
         Winner.SendMessage("Comlete");
     }
     else
     {
         Winner.SendMessage("Remaining items: {0} / {1} Stones", Container.Items.Count, Container.TotalWeight);
     }
 }