Пример #1
0
        public override string ToString()
        {
            string str = $"[海域{Id}:{Name}]";

            Comm_UserDatas.Instance.User_rebellion_point.TryGetValue(Id, out Mem_rebellion_point value);
            str += $" RP:{RState}({value?.Point ?? 0})";
            if (!IsOpen())
            {
                str += $" [未開放] ";
            }
            AreaTankerModel tankerCount = GetTankerCount();

            str += $" 輸送船:{tankerCount.GetCountNoMove()}/{tankerCount.GetMaxCount()}(移動中:{tankerCount.GetCountMove()},遠征中:{tankerCount.GetCountInMission()}) ";
            str += $"入渠ドック: {ToString(GetNDockStateList())} ";
            DeckModel[] decks = GetDecks();
            if (decks.Length == 0)
            {
                str += $"海域に艦隊無し";
            }
            else
            {
                foreach (DeckModel arg in decks)
                {
                    str += $"{arg}";
                }
            }
            EscortDeckModel escortDeck = GetEscortDeck();

            if (escortDeck == null)
            {
                return(str + $" 護衛艦隊無し");
            }
            return(str + $" {escortDeck}");
        }
        public override string ToString()
        {
            string text = string.Format("[海域{0}:{1}]", this.Id, this.Name);
            Mem_rebellion_point mem_rebellion_point;

            Comm_UserDatas.Instance.User_rebellion_point.TryGetValue(this.Id, ref mem_rebellion_point);
            text += string.Format(" RP:{0}({1})", this.RState, (mem_rebellion_point != null) ? mem_rebellion_point.Point : 0);
            if (!this.IsOpen())
            {
                text += string.Format(" [未開放] ", new object[0]);
            }
            AreaTankerModel tankerCount = this.GetTankerCount();

            text += string.Format(" 輸送船:{0}/{1}(移動中:{2},遠征中:{3}) ", new object[]
            {
                tankerCount.GetCountNoMove(),
                tankerCount.GetMaxCount(),
                tankerCount.GetCountMove(),
                tankerCount.GetCountInMission()
            });
            text += string.Format("入渠ドック: {0} ", this.ToString(this.GetNDockStateList()));
            DeckModel[] decks = this.GetDecks();
            if (decks.Length == 0)
            {
                text += string.Format("海域に艦隊無し", new object[0]);
            }
            else
            {
                for (int i = 0; i < decks.Length; i++)
                {
                    DeckModel deckModel = decks[i];
                    text += string.Format("{0}", deckModel);
                }
            }
            EscortDeckModel escortDeck = this.GetEscortDeck();

            if (escortDeck == null)
            {
                text += string.Format(" 護衛艦隊無し", new object[0]);
            }
            else
            {
                text += string.Format(" {0}", escortDeck);
            }
            return(text);
        }