stich fleet loading together

This commit is contained in:
2024-10-02 20:18:00 +02:00
parent e6c2f969b4
commit b1fb26db5a
6 changed files with 128 additions and 12 deletions

View File

@ -212,6 +212,19 @@ public partial class PlayerPlanetViewModel : ViewModelBase
// TODO: Take shipping into account.
}
/*
private int ComputePopulationEnRoute()
{
using var db = Locator.Current.GetService<Model.StarsDatabase>()!;
var enRoute = from flt in db.Fleet
where flt.OwnerFileId == Game.Player.PlayerFileId && flt.TrueDestination == Planet.Name
select new { Colonists = flt.Sum(f => f.Colonists) };
return enRoute.Colonists ?? 0;
}
*/
#endregion
}