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

Last change on this file since 425 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
RevLine 
[402]1namespace Webserver.LiveData {
[325]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) {
[402]6 if (_e is EntityAnimal ea && ea.IsAlive ()) {
[326]7 return ea;
[306]8 }
[325]9
[312]10 return null;
[306]11 }
[325]12 }
13}
Note: See TracBrowser for help on using the repository browser.