Last change
on this file since 434 was 402, checked in by alloc, 22 months ago |
- Major refactoring
- Using Utf8Json for (de)serialization
- Moving APIs to REST
- Removing dependencies from WebServer and MapRenderer to ServerFixes
|
File size:
316 bytes
|
Line | |
---|
1 | namespace Webserver.LiveData {
|
---|
2 | public class Animals : EntityFilterList<EntityAnimal> {
|
---|
3 | public static readonly Animals Instance = new Animals ();
|
---|
4 |
|
---|
5 | protected override EntityAnimal predicate (Entity _e) {
|
---|
6 | if (_e is EntityAnimal ea && ea.IsAlive ()) {
|
---|
7 | return ea;
|
---|
8 | }
|
---|
9 |
|
---|
10 | return null;
|
---|
11 | }
|
---|
12 | }
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.