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