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

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

Common func: Rebased Animals and Hostiles to common base

File size: 442 bytes
Line 
1using System;
2using System.Collections.Generic;
3
4namespace AllocsFixes.LiveData
5{
6 public class Animals : EntityFilterList<EntityAnimal>
7 {
8
9 public static readonly Animals Instance = new Animals ();
10
11 protected override EntityAnimal predicate (Entity _e) {
12 if (_e is EntityAnimal) {
13 EntityAnimal ea = (EntityAnimal)_e;
14
15 if (ea.IsAlive ()) {
16 return ea;
17 }
18 }
19 return null;
20 }
21
22 }
23}
24
Note: See TracBrowser for help on using the repository browser.