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); } } }
public void AddPersonPack(Person person, int days) { SpyMessagePersonPack item = new SpyMessagePersonPack(person, days); this.PersonPacks.Add(item); }