using System; using System.Collections.Generic; namespace AllocsFixes.LiveData { public class Animals : EntityFilterList { public static readonly Animals Instance = new Animals (); protected override EntityAnimal predicate (Entity _e) { if (_e is EntityAnimal) { EntityAnimal ea = (EntityAnimal)_e; if (ea.IsAlive ()) { return ea; } } return null; } } }