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