|
Last change
on this file since 433 was 326, checked in by alloc, 7 years ago |
|
More cleanup, allocation improvements
|
|
File size:
347 bytes
|
| Rev | Line | |
|---|
| [325] | 1 | namespace 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.