Last change
on this file since 319 was 312, checked in by alloc, 7 years ago |
Common func: Rebased Animals and Hostiles to common base
|
File size:
442 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 |
|
---|
4 | namespace AllocsFixes.LiveData
|
---|
5 | {
|
---|
6 | public class Animals : EntityFilterList<EntityAnimal>
|
---|
7 | {
|
---|
8 |
|
---|
9 | public static readonly Animals Instance = new Animals ();
|
---|
10 |
|
---|
11 | protected override EntityAnimal predicate (Entity _e) {
|
---|
12 | if (_e is EntityAnimal) {
|
---|
13 | EntityAnimal ea = (EntityAnimal)_e;
|
---|
14 |
|
---|
15 | if (ea.IsAlive ()) {
|
---|
16 | return ea;
|
---|
17 | }
|
---|
18 | }
|
---|
19 | return null;
|
---|
20 | }
|
---|
21 |
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.