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
RevLine 
[306]1using System;
2using System.Collections.Generic;
3
4namespace AllocsFixes.LiveData
5{
[312]6 public class Hostiles : EntityFilterList<EntityEnemy>
[306]7 {
8
[312]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;
[306]15 }
16 }
[312]17 return null;
[306]18 }
19
20 }
21}
22
Note: See TracBrowser for help on using the repository browser.