public override string ToString()
        {
            string text = string.Format("ID:{0} 状態:{1} ", this.Id, this.State);

            if (this.State == KdockStates.CREATE || this.State == KdockStates.COMPLETE)
            {
                if (this.IsTunker())
                {
                    text += string.Format("建造数:{0} 開始:{1} 終了:{2} [輸送船建造]", this.TankerCount, this.StartTurn, this.CompleteTurn);
                }
                else
                {
                    text += string.Format("艦:{0} 開始:{1} 終了:{2}{3}", new object[]
                    {
                        this.ShipMstId,
                        this.StartTurn,
                        this.CompleteTurn,
                        (!this.IsLarge()) ? string.Empty : " [大型艦建造]"
                    });
                    if (this.ShipMstId != 0)
                    {
                        ShipModelMst shipModelMst = new ShipModelMst(this.ShipMstId);
                        text += string.Format("(建造艦:{0})", shipModelMst.Name);
                    }
                }
            }
            return(text);
        }
예제 #2
0
        public override string ToString()
        {
            string text = $"ID:{Id} 状態:{State} ";

            if (State == KdockStates.CREATE || State == KdockStates.COMPLETE)
            {
                if (IsTunker())
                {
                    text += $"建造数:{TankerCount} 開始:{StartTurn} 終了:{CompleteTurn} [輸送船建造]";
                }
                else
                {
                    text += string.Format("艦:{0} 開始:{1} 終了:{2}{3}", ShipMstId, StartTurn, CompleteTurn, (!IsLarge()) ? string.Empty : " [大型艦建造]");
                    if (ShipMstId != 0)
                    {
                        ShipModelMst shipModelMst = new ShipModelMst(ShipMstId);
                        text += $"(建造艦:{shipModelMst.Name})";
                    }
                }
            }
            return(text);
        }
 public HistoryModel_AreaClear(User_HistoryFmt fmt) : base(fmt)
 {
     this._mst_ship = new ShipModelMst(fmt.FlagShip);
 }
예제 #4
0
 public Reward_Ship(int mst_id)
 {
     _ship = new ShipModelMst(mst_id);
 }
예제 #5
0
 public Reward_Ship(Mst_ship mst)
 {
     _ship = new ShipModelMst(mst);
 }