Changeset 402 for binary-improvements2/WebServer/src/LiveData/Animals.cs
- Timestamp:
- Jan 27, 2023, 7:28:00 PM (3 years ago)
- Location:
- binary-improvements2/WebServer/src/LiveData
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from binary-improvements2/7dtd-server-fixes/src/LiveData )
-
Animals.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/LiveData/Animals.cs
r326 r402 1 namespace AllocsFixes.LiveData {1 namespace Webserver.LiveData { 2 2 public class Animals : EntityFilterList<EntityAnimal> { 3 3 public static readonly Animals Instance = new Animals (); 4 4 5 5 protected override EntityAnimal predicate (Entity _e) { 6 EntityAnimal ea = _e as EntityAnimal; 7 if (ea != null && ea.IsAlive ()) { 6 if (_e is EntityAnimal ea && ea.IsAlive ()) { 8 7 return ea; 9 8 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)