Ejemplo n.º 1
0
        public override void FillInformation(out string info, out string detailed)
        {
            info     = BaseUtils.FieldBuilder.Build("At starport:".Tx(this), ShipsHere?.Count(), "Other locations:".Tx(this), ShipsRemote?.Count());
            detailed = "";
            if (ShipsHere != null)
            {
                foreach (StoredShipInformation m in ShipsHere)
                {
                    detailed = detailed.AppendPrePad(BaseUtils.FieldBuilder.Build("", m.ShipType, "; cr;N0".Tx(this, "SSP"), m.Value, ";(Hot)".Txb(this), m.Hot), System.Environment.NewLine);
                }
            }
            if (ShipsRemote != null)
            {
                detailed = detailed.AppendPrePad("Remote:".Tx(this), System.Environment.NewLine + System.Environment.NewLine);

                foreach (StoredShipInformation m in ShipsRemote)
                {
                    if (m.InTransit)
                    {
                        detailed = detailed.AppendPrePad(BaseUtils.FieldBuilder.Build("; ", m.Name,
                                                                                      "<; in transit".Tx(this), m.ShipType,
                                                                                      "Value:; cr;N0".Txb(this), m.Value, ";(Hot)".Txb(this), m.Hot), System.Environment.NewLine);
                    }
                    else
                    {
                        detailed = detailed.AppendPrePad(BaseUtils.FieldBuilder.Build(
                                                             "; ", m.Name,
                                                             "<", m.ShipType,
                                                             "< at ".Tx(this), m.StarSystem,
                                                             "Transfer Cost:; cr;N0".Txb(this), m.TransferPrice, "Time:".Txb(this), m.TransferTimeString,
                                                             "Value:; cr;N0".Txb(this), m.Value, ";(Hot)".Txb(this), m.Hot), System.Environment.NewLine);
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public override void FillInformation(out string summary, out string info, out string detailed) //V
        {
            summary  = EventTypeStr.SplitCapsWord();
            info     = BaseUtils.FieldBuilder.Build("At starport:", ShipsHere?.Count(), "Other locations:", ShipsRemote?.Count());
            detailed = "";
            if (ShipsHere != null)
            {
                foreach (StoredShipInformation m in ShipsHere)
                {
                    detailed = detailed.AppendPrePad(BaseUtils.FieldBuilder.Build("", m.ShipType, "; cr;N0", m.Value, ";(Hot)", m.Hot), System.Environment.NewLine);
                }
            }
            if (ShipsRemote != null)
            {
                detailed = detailed.AppendPrePad("Remote:", System.Environment.NewLine + System.Environment.NewLine);

                foreach (StoredShipInformation m in ShipsRemote)
                {
                    detailed = detailed.AppendPrePad(BaseUtils.FieldBuilder.Build("", m.ShipType, "< at ", m.StarSystem, "Transfer Cost:; cr;N0", m
                                                                                  .TransferPrice, "Time:", m.TransferTimeString, "Value:; cr;N0", m.Value, ";(Hot)", m.Hot), System.Environment.NewLine);
                }
            }
        }