Beispiel #1
0
 public MissionResultInfo(IDictionary<string, string> row)
 {
     Date = DateTime.Parse(row["date"]);
     AreaName = row["area"];
     QuestName = row["mission"];
     Material = new Material(row["fuel"], row["ammo"], row["steel"], row["bauxite"]);
     Succeeded = int.Parse(row["result"]);
     var m = row["member"].Split(',');
     Member.AddRange(m);
     Item.AddRange(row["reward"].Split(','));
 }
Beispiel #2
0
 public MissionResultInfo(string[] row)
 {
     Number = 0;
     Date = DateTime.Parse(row[0]);
     AreaName = row[1];
     QuestName = row[2];
     Material = new Material(row[3], row[4], row[5], row[6]);
     Succeeded = int.Parse(row[7]);
     var m = row[8].Split(',');
     Member.AddRange(m);
     Item.AddRange(row[9].Split(','));
 }
Beispiel #3
0
 public CreateItemInfo(IDictionary<string, string> row)
 {
     Date = DateTime.Parse(row["date"]);
     ItemName = row["name"];
     ItemType = row["type"];
     Resource = new LogData.Material(row["fuel"], row["ammo"], row["steel"],
         row["bauxite"]);
     OfficeLv = int.Parse(row["level"]);
     SecretaryShip = row["secretary"];
 }
Beispiel #4
0
 public CreateItemInfo(string[] row)
 {
     Date = DateTime.Parse(row[0]);
     ItemName = row[1];
     ItemType = row[2];
     Resource = new Material(row[3], row[4], row[5], row[6]);
     SecretaryShip = row[7];
     OfficeLv = int.Parse(row[8]);
     Succeess = IsSuceeded(ItemName);
 }
Beispiel #5
0
        /// <summary>
        /// レスポンスから
        /// </summary>
        /// <param name="req">リクエストパラメタ</param>
        /// <param name="json">レスポンス情報</param>
        public CreateItemInfo(IDictionary<string, string> req, KCB.api_req_kousyou.CreateItem.ApiData json)
//        public CreateItemInfo(IDictionary<string, string> req, dynamic json)
        {
            Succeess = false;
            Number = 0;
            ItemNameID = 0;
            ItemType = "";
            ItemName = "(失敗)";
            Date = DateTime.Now;
            Resource = new Material(req);
            if ((int)json.api_create_flag == 0)
                return;

            Succeess = true;
            ItemNameID = (int)json.api_slot_item.api_slotitem_id;
        }
Beispiel #6
0
 public CreateShipInfo(string[] row)
 {
     Date = DateTime.Parse(row[0]);
     ShipName = row[1];
     ShipType = row[2];
     Resource = new Material(row[3], row[4], row[5], row[6] , row[7]);
     SecretaryShip = row[8];
     OfficeLv = int.Parse(row[9]);
 }