Last change
on this file since 316 was 312, checked in by alloc, 7 years ago |
Common func: Rebased Animals and Hostiles to common base
|
File size:
386 bytes
|
Rev | Line | |
---|
[306] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 |
|
---|
| 4 | namespace 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.