Beispiel #1
0
    public string GetCurrentBuildRequirements()
    {
        ProjectPorcupine.OrderActions.Build buildOrder = PrototypeManager.Furniture.Get(bmc.BuildModeType).GetOrderAction <ProjectPorcupine.OrderActions.Build>();
        if (buildOrder != null)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var item in buildOrder.Inventory)
            {
                string requiredMaterialCount = (item.Value * validPostionCount).ToString();
                sb.Append(string.Format("{0}x {1}", requiredMaterialCount, item.Key)); // TODO: LocalizationTable.GetLocalization(item.Type))
                if (buildOrder.Inventory.Count > 1)
                {
                    sb.AppendLine();
                }
            }

            return(sb.ToString());
        }

        return("furnitureJobPrototypes is null");
    }
Beispiel #2
0
 private Build(Build other) : base(other)
 {
 }
Beispiel #3
0
 private Build(Build other) : base(other)
 {
     JobInfo   = other.JobInfo;
     Inventory = other.Inventory;
 }