source: binary-improvements/7dtd-server-fixes/src/LiveData/Hostiles.cs@ 319

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

Common func: Rebased Animals and Hostiles to common base

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