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