|
Last change
on this file since 430 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
|
| Rev | Line | |
|---|
| [402] | 1 | namespace Webserver.LiveData {
|
|---|
| [325] | 2 | public class Hostiles : EntityFilterList<EntityEnemy> {
|
|---|
| [312] | 3 | public static readonly Hostiles Instance = new Hostiles ();
|
|---|
| 4 |
|
|---|
| [325] | 5 | protected override EntityEnemy predicate (Entity _e) {
|
|---|
| [402] | 6 | if (_e is EntityEnemy enemy && enemy.IsAlive ()) {
|
|---|
| [326] | 7 | return enemy;
|
|---|
| [306] | 8 | }
|
|---|
| [325] | 9 |
|
|---|
| [312] | 10 | return null;
|
|---|
| [306] | 11 | }
|
|---|
| 12 | }
|
|---|
| [325] | 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.