source: binary-improvements2/WebServer/src/LiveData/Animals.cs@ 402

Last change on this file since 402 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 
1namespace 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.