using System; using System.Collections.Generic; namespace AllocsFixes.LiveData { public class Hostiles { public static List List { get { List lst = new List (); try { foreach (int ent_id in GameManager.Instance.World.Entities.dict.Keys) { try { Entity entity = GameManager.Instance.World.Entities.dict [ent_id]; if (entity.entityType == EntityType.Zombie) { EntityEnemy ee = (EntityEnemy)entity; if (ee.IsAlive ()) lst.Add (ee); } } catch { } } } catch { } return lst; } } public static int Count { get { return List.Count; } } } }