Beispiel #1
0
 private void LoadPresetData(int PresetNo)
 {
     Entity_PresetData.Param presetData = presetDataManager.GetPresetData(PresetNo);
     Debug_Mod.SetFleetLevel(presetData.TeitokuLV);
     AddMaterialAndItems(presetData);
     Debug_Mod.Add_Tunker(presetData.Tanker);
     DeployTanker();
     AreaOpen(presetData);
     AddDeck(presetData);
     Debug_Mod.SetRebellionPhase(presetData.RebellionPhase);
     AddShips(presetData);
     SetDeck(presetData);
     SetAllShipsLevel(presetData.AllShipLevel);
     if (presetData.AddAllShip)
     {
         Debug_Mod.Add_ShipAll();
     }
 }
 private void MaterialMode()
 {
     if (materialPhase == 0)
     {
         keyController.SilentChangeIndex(SeachActiveIndex(keyController.Index, materialsLabel, keyController.prevIndexChangeValue == 1));
         cursol.transform.position       = materialsLabel[keyController.Index].transform.position;
         cursol.transform.localPosition += cursolOffset;
     }
     else
     {
         cursol.transform.position       = materialsNum[nowMaterial].transform.position;
         cursol.transform.localPosition += new Vector3(-150f, -20f, 0f);
         if (nowMaterial != 8)
         {
             if (keyController.keyState[8].down)
             {
                 materialsNum[nowMaterial].text = (Convert.ToInt32(materialsNum[nowMaterial].text) + mag).ToString();
             }
             if (keyController.keyState[12].down)
             {
                 materialsNum[nowMaterial].text = (Convert.ToInt32(materialsNum[nowMaterial].text) - mag).ToString();
             }
         }
         else if (keyController.keyState[1].down)
         {
             if (mag > 10)
             {
                 mag = 10;
             }
             Debug_Mod.Add_Tunker(1 * mag);
             StrategyTopTaskManager.CreateLogicManager();
             materialsNum[8].text = StrategyTopTaskManager.GetLogicManager().GetNonDeploymentTankerCount().GetCountNoMove()
                                    .ToString();
         }
     }
     if (keyController.keyState[1].down && materialPhase == 0)
     {
         materialPhase = 1;
         nowMaterial   = keyController.Index;
     }
     if (!keyController.keyState[0].down)
     {
         return;
     }
     if (materialPhase == 0)
     {
         ChangeMode(0);
         StrategyMapManager logicManager = StrategyTopTaskManager.GetLogicManager();
         debugMod.Add_Materials(enumMaterialCategory.Fuel, Convert.ToInt32(materialsNum[0].text) - logicManager.Material.Fuel);
         debugMod.Add_Materials(enumMaterialCategory.Bull, Convert.ToInt32(materialsNum[1].text) - logicManager.Material.Ammo);
         debugMod.Add_Materials(enumMaterialCategory.Steel, Convert.ToInt32(materialsNum[2].text) - logicManager.Material.Steel);
         debugMod.Add_Materials(enumMaterialCategory.Bauxite, Convert.ToInt32(materialsNum[3].text) - logicManager.Material.Baux);
         debugMod.Add_Materials(enumMaterialCategory.Dev_Kit, Convert.ToInt32(materialsNum[4].text) - logicManager.Material.Devkit);
         debugMod.Add_Materials(enumMaterialCategory.Repair_Kit, Convert.ToInt32(materialsNum[5].text) - logicManager.Material.RepairKit);
         debugMod.Add_Materials(enumMaterialCategory.Build_Kit, Convert.ToInt32(materialsNum[6].text) - logicManager.Material.BuildKit);
         debugMod.Add_Materials(enumMaterialCategory.Revamp_Kit, Convert.ToInt32(materialsNum[7].text) - logicManager.Material.Revkit);
         debugMod.Add_Coin(Convert.ToInt32(materialsNum[9].text) - logicManager.UserInfo.FCoin);
         debugMod.Add_Spoint(Convert.ToInt32(materialsNum[10].text) - logicManager.UserInfo.SPoint);
         Dictionary <int, int> dictionary = new Dictionary <int, int>();
         for (int i = 0; i < 100; i++)
         {
             if ((1 <= i && i <= 3) || (10 <= i && i <= 12) || (49 <= i && i <= 59))
             {
                 dictionary[i] = Convert.ToInt32(materialsNum[11].text);
             }
         }
         debugMod.Add_UseItem(dictionary);
     }
     else
     {
         materialPhase       = 0;
         keyController.Index = nowMaterial;
     }
 }