source:
binary-improvements2/WebServer/src/LiveData/Animals.cs@
402
Last change on this file since 402 was 402, checked in by , 22 months ago | |
---|---|
File size: 316 bytes |
Rev | Line | |
---|---|---|
[402] | 1 | namespace 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.