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

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

More cleanup, allocation improvements

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