source: binary-improvements/7dtd-server-fixes/src/LiveData/Animals.cs@ 343

Last change on this file since 343 was 326, checked in by alloc, 6 years ago

More cleanup, allocation improvements

File size: 349 bytes
Line 
1namespace AllocsFixes.LiveData {
2 public class Animals : EntityFilterList<EntityAnimal> {
3 public static readonly Animals Instance = new Animals ();
4
5 protected override EntityAnimal predicate (Entity _e) {
6 EntityAnimal ea = _e as EntityAnimal;
7 if (ea != null && ea.IsAlive ()) {
8 return ea;
9 }
10
11 return null;
12 }
13 }
14}
Note: See TracBrowser for help on using the repository browser.