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