Last change
on this file since 388 was 326, checked in by alloc, 6 years ago |
More cleanup, allocation improvements
|
File size:
347 bytes
|
Line | |
---|
1 | namespace AllocsFixes.LiveData {
|
---|
2 | public class Hostiles : EntityFilterList<EntityEnemy> {
|
---|
3 | public static readonly Hostiles Instance = new Hostiles ();
|
---|
4 |
|
---|
5 | protected override EntityEnemy predicate (Entity _e) {
|
---|
6 | EntityEnemy enemy = _e as EntityEnemy;
|
---|
7 | if (enemy != null && enemy.IsAlive ()) {
|
---|
8 | return enemy;
|
---|
9 | }
|
---|
10 |
|
---|
11 | return null;
|
---|
12 | }
|
---|
13 | }
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.