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

Last change on this file since 336 was 326, checked in by alloc, 6 years ago

More cleanup, allocation improvements

File size: 347 bytes
RevLine 
[325]1namespace AllocsFixes.LiveData {
2 public class Hostiles : EntityFilterList<EntityEnemy> {
[312]3 public static readonly Hostiles Instance = new Hostiles ();
4
[325]5 protected override EntityEnemy predicate (Entity _e) {
[326]6 EntityEnemy enemy = _e as EntityEnemy;
7 if (enemy != null && enemy.IsAlive ()) {
8 return enemy;
[306]9 }
[325]10
[312]11 return null;
[306]12 }
13 }
[325]14}
Note: See TracBrowser for help on using the repository browser.