feat(Documents) Notes/Docs page improvements and warning cleanup

This commit is contained in:
2022-04-07 13:30:00 -04:00
parent b270453030
commit d82e60efdf
223 changed files with 4396 additions and 2861 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
using System.Collections.Generic;
namespace Model.Immortal.BuildOrders;
namespace Model.BuildOrders;
public class BuildComparisonModel {
public List<BuildOrderModel> Builds { get; set; } = new() {
public class BuildComparisonModel
{
public List<BuildOrderModel> Builds { get; set; } = new()
{
new BuildOrderModel(),
new BuildOrderModel(),
new BuildOrderModel()
+17 -10
View File
@@ -1,18 +1,21 @@
using System.Collections.Generic;
using System.Linq;
using Model.Immortal.Entity;
using Model.Immortal.Entity.Data;
using Model.Entity;
using Model.Entity.Data;
namespace Model.Immortal.BuildOrders;
namespace Model.BuildOrders;
public class BuildOrderModel {
public class BuildOrderModel
{
public string Name { get; set; } = "";
public string Color { get; set; } = "red";
public Dictionary<int, List<EntityModel>> Orders { get; set; } = new() {
public Dictionary<int, List<EntityModel>> Orders { get; set; } = new()
{
{
0,
new List<EntityModel> {
new List<EntityModel>
{
EntityModel.Get(DataType.STARTING_Bastion),
EntityModel.Get(DataType.STARTING_TownHall_Aru)
}
@@ -24,28 +27,32 @@ public class BuildOrderModel {
public List<string> BuildTypes { get; set; } = new();
public List<EntityModel> GetOrdersAt(int interval) {
public List<EntityModel> GetOrdersAt(int interval)
{
return (from ordersAtTime in Orders
from orders in ordersAtTime.Value
where ordersAtTime.Key == interval
select orders).ToList();
}
public List<EntityModel> GetCompletedAt(int interval) {
public List<EntityModel> GetCompletedAt(int interval)
{
return (from ordersAtTime in Orders
from orders in ordersAtTime.Value
where ordersAtTime.Key + (orders.Production() == null ? 0 : orders.Production().BuildTime) == interval
select orders).ToList();
}
public List<EntityModel> GetCompletedBefore(int interval) {
public List<EntityModel> GetCompletedBefore(int interval)
{
return (from ordersAtTime in Orders
from orders in ordersAtTime.Value
where ordersAtTime.Key + (orders.Production() == null ? 0 : orders.Production().BuildTime) <= interval
select orders).ToList();
}
public List<EntityModel> GetHarvestersCompletedBefore(int interval) {
public List<EntityModel> GetHarvestersCompletedBefore(int interval)
{
return (from ordersAtTime in Orders
from orders in ordersAtTime.Value
where ordersAtTime.Key + (orders.Production() == null ? 0 : orders.Production().BuildTime) <= interval