Exemplo n.º 1
0
 public void PersonPacksDayEvent()
 {
     for (int i = this.PersonPacks.Count - 1; i >= 0; i--)
     {
         SpyMessagePersonPack local1 = this.PersonPacks[i];
         local1.Days--;
         if (this.PersonPacks[i].Days == 0)
         {
             if ((this.PersonPacks[i].MessagePerson != null) && (this.PersonPacks[i].MessagePerson.BelongedFaction != this.MessageFaction))
             {
                 this.PersonPacks[i].MessagePerson.ShowPersonMessage(this);
             }
             this.PersonPacks.RemoveAt(i);
         }
     }
 }
Exemplo n.º 2
0
 public void AddPersonPack(Person person, int days)
 {
     SpyMessagePersonPack item = new SpyMessagePersonPack(person, days);
     this.PersonPacks.Add(item);
 }
Exemplo n.º 3
0
        public void AddPersonPack(Person person, int days)
        {
            SpyMessagePersonPack item = new SpyMessagePersonPack(person, days);

            this.PersonPacks.Add(item);
        }