source:
binary-improvements/7dtd-server-fixes/src/LiveData/Animals.cs@
320
| Last change on this file since 320 was 312, checked in by , 8 years ago | |
|---|---|
| File size: 442 bytes | |
| Rev | Line | |
|---|---|---|
| [252] | 1 | using System; |
| 2 | using System.Collections.Generic; | |
| 3 | ||
| 4 | namespace AllocsFixes.LiveData | |
| 5 | { | |
| [312] | 6 | public class Animals : EntityFilterList<EntityAnimal> |
| [252] | 7 | { |
| 8 | ||
| [312] | 9 | public static readonly Animals Instance = new Animals (); |
| [252] | 10 | |
| [312] | 11 | protected override EntityAnimal predicate (Entity _e) { |
| 12 | if (_e is EntityAnimal) { | |
| 13 | EntityAnimal ea = (EntityAnimal)_e; | |
| [252] | 14 | |
| [312] | 15 | if (ea.IsAlive ()) { |
| 16 | return ea; | |
| [306] | 17 | } |
| 18 | } | |
| [312] | 19 | return null; |
| [306] | 20 | } |
| [252] | 21 | |
| 22 | } | |
| 23 | } | |
| 24 |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)