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

Last change on this file since 325 was 325, checked in by alloc, 7 years ago

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File size: 376 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 if (_e is EntityAnimal) {
7 EntityAnimal ea = (EntityAnimal) _e;
8
9 if (ea.IsAlive ()) {
10 return ea;
11 }
12 }
13
14 return null;
15 }
16 }
17}
Note: See TracBrowser for help on using the repository browser.