stich fleet loading together
This commit is contained in:
@ -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
|
||||
|
||||
}
|
Reference in New Issue
Block a user