Last change
on this file since 318 was 312, checked in by alloc, 7 years ago |
Common func: Rebased Animals and Hostiles to common base
|
File size:
386 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 |
|
---|
4 | namespace AllocsFixes.LiveData
|
---|
5 | {
|
---|
6 | public class Hostiles : EntityFilterList<EntityEnemy>
|
---|
7 | {
|
---|
8 |
|
---|
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;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | return null;
|
---|
18 | }
|
---|
19 |
|
---|
20 | }
|
---|
21 | }
|
---|
22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.