Ejemplo n.º 1
0
 public void SetupData(ItemGenerate <BagItme> function)
 {
     for (int i = 0; i < TotalItmes.Count; i++)
     {
         function(TotalItmes[i]);
     }
 }
Ejemplo n.º 2
0
 public void SetupData(List <BagItme> newBagItmeList, ItemGenerate <BagItme> function)
 {
     for (int i = 0; i < TotalItmes.Count; i++)
     {
         function(newBagItmeList[i]);
     }
 }
    private void SendItemsToPlayers()
    {
        this.timeDead = DateTime.Now;

        foreach (KeyValuePair <int, DateTime> item in this.acumPlayerDamage)
        {
            if ((this.timeDead - item.Value).TotalSeconds <= 10f)
            {
                Item itemDrop = ItemGenerate.Generate();
                ServerSend.EnemyDropItem(item.Key, itemDrop, this);
            }
        }
    }