Exemplo n.º 1
0
        private void AddShips(Entity_PresetData.Param Param)
        {
            ShipParamList.Add(presetDataManager.GetPresetShipParam("初期艦"));
            for (int i = 0; i < Param.Deck.Length; i++)
            {
                if (Param.Deck[i] != 0)
                {
                    AddDeckShips(presetDataManager.GetPresetDeck(Param.Deck[i]));
                }
            }
            List <int> list = new List <int>();

            for (int j = 0; j < ShipParamList.Count; j++)
            {
                list.Add(ShipParamList[j].MstID);
            }
            debugMod.Add_Ship(list);
        }
Exemplo n.º 2
0
        public IEnumerator Initialize()
        {
            yield return(new WaitForSeconds(0.5f));

            go = (Object.Instantiate(Resources.Load("Prefabs/Remodel/MarriageCut")) as GameObject);
            if (go == null)
            {
                Debug.Log("Failed to properly instantiate and initialize MarriageCut");
                yield break;
            }
            go.name = "MarriageCut";
            go.transform.localPosition = new Vector3(-1000f, -1000f, 0f);
            MarriageManager manager = go.GetComponent <MarriageManager>();

            if (manager == null)
            {
                manager = go.AddComponent <MarriageManager>();
            }
            if (manager == null)
            {
                Debug.Log("Failed to properly instantiate and initialize MarriageCut");
                yield break;
            }
            manager.enabled = true;
            List <int> tmpList2 = new List <int>
            {
                54
            };
            Debug_Mod debug = new Debug_Mod();

            tmpList2 = debug.Add_Ship(tmpList2);
            ShipModel ship = new ShipModel(tmpList2[0]);

            if (ship == null)
            {
                Debug.Log("Failed to properly instantiate and initialize MarriageCut");
            }
            else
            {
                manager.Initialize(ship, KeyControlManager.Instance.KeyController, DeleteGO);
            }
        }
Exemplo n.º 3
0
        private static void DebugInit()
        {
            Diagnostics.enableHUD = true;
            Debug_Mod  debug_Mod = new Debug_Mod();
            List <int> list      = new List <int>();

            Debug.Log("ADD SHIP");
            debug_Mod.Add_Ship(list);
            list.Add(330);
            list.Add(24);
            list.Add(175);
            list.Add(117);
            list.Add(75);
            list.Add(321);
            list.Add(182);
            for (int i = 100; i < 110; i++)
            {
                list.Add(i);
            }
            debug_Mod.Add_Ship(list);
            OrganizeManager organizeManager = new OrganizeManager(1);

            debug_Mod.Add_Deck(2);
            debug_Mod.Add_Deck(3);
            debug_Mod.Add_Deck(4);
            debug_Mod.Add_Deck(5);
            debug_Mod.Add_Deck(6);
            ManagerBase.initialize();
            organizeManager.ChangeOrganize(1, 2, 2);
            Dictionary <int, int> dictionary = new Dictionary <int, int>();

            for (int j = 0; j < 100; j++)
            {
                if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59))
                {
                    dictionary[j] = 1;
                }
                dictionary[54] = 0;
                dictionary[59] = 10;
            }
            debug_Mod.Add_UseItem(dictionary);
            debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000);
            debug_Mod.Add_Coin(80000);
            List <int> list2 = new List <int>();

            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            for (int k = 0; k < 30; k++)
            {
                list2.Add(14);
            }
            for (int l = 1; l < 100; l++)
            {
                list2.Add(l);
            }
            for (int m = 0; m < 30; m++)
            {
                list2.Add(25);
            }
            for (int n = 0; n < 6; n++)
            {
                list2.Add(42);
            }
            for (int num = 1; num < 100; num++)
            {
                Debug_Mod.ChangeSlotLevel(list2[num], 9);
            }
            debug_Mod.Add_SlotItem(list2);
            DebugUtils.SLog("DEBUG_MOD OK");
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            AppInitializeManager.Awake();
            App.InitSystems(); // 26 fuso

            // var bgm = Mst_DataManager.Instance.GetMstBgm();
            // var cabinet = Mst_DataManager.Instance.GetMstCabinet();
            // var payitem = Mst_DataManager.Instance.GetPayitem();
            // var furnitureText = Mst_DataManager.Instance.GetFurnitureText();


            Debug_Mod  debug_Mod = new Debug_Mod();
            List <int> list      = new List <int>();

            Debug.Log("ADD SHIP");
            debug_Mod.Add_Ship(list);
            list.Add(330); // Akizuki Kai
            list.Add(24);  // Ooi
            list.Add(175); // Z3
            list.Add(117); // Zuihou Kai
            list.Add(75);  // Hiyou
            list.Add(321); // Ooyodo Kai
            list.Add(182); // Akashi
            for (int i = 100; i < 110; i++)
            {
                // 100 Tama
                // 101 Kiso
                // 102 Chitose
                // 103 Chiyoda
                // 104 Chitose Kai
                // 105 Chiyoda Kai
                // 106 Chitose A
                // 107 Chiyoda A
                // 108 Chitose-Kou
                // 109 Chiyoda-Kou
                list.Add(i);
            }
            debug_Mod.Add_Ship(list);

            var userData = Comm_UserDatas.Instance;



            // var ui = (new LocalManager()).UserInfo;
            // LocalManager localManager = new LocalManager();

            OrganizeManager organizeManager = new OrganizeManager(1);

            debug_Mod.Add_Deck(2);
            debug_Mod.Add_Deck(3);
            debug_Mod.Add_Deck(4);
            debug_Mod.Add_Deck(5);
            debug_Mod.Add_Deck(6);


            ManagerBase.initialize();
            organizeManager.ChangeOrganize(1, 2, 2);
            organizeManager.ChangeOrganize(1, 3, 3);

            Dictionary <int, int> dictionary = new Dictionary <int, int>();

            for (int j = 0; j < 100; j++)
            {
                if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59))
                {
                    dictionary[j] = 1;
                }
                dictionary[54] = 0;
                dictionary[59] = 10;
            }
            debug_Mod.Add_UseItem(dictionary);



            debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000);
            debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000);
            debug_Mod.Add_Coin(80000);
            List <int> list2 = new List <int>();

            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            list2.Add(1);
            for (int k = 0; k < 30; k++)
            {
                list2.Add(14);
            }
            for (int l = 1; l < 100; l++)
            {
                list2.Add(l);
            }
            for (int m = 0; m < 30; m++)
            {
                list2.Add(25);
            }
            for (int n = 0; n < 6; n++)
            {
                list2.Add(42);
            }
            for (int num = 1; num < 100; num++)
            {
                Debug_Mod.ChangeSlotLevel(list2[num], 9);
            }
            debug_Mod.Add_SlotItem(list2);
            DebugUtils.SLog("DEBUG_MOD OK");


            StrategyTopTaskManager top = new StrategyTopTaskManager();
            // top.Awake2();

            StrategyMapManager strategyMapManager = new StrategyMapManager();
            SortieManager      sortieManager      = strategyMapManager.SelectArea(1);
            SortieMapManager   sortieMapManager   = sortieManager.GoSortie(1, 11);

            SortieBattleManager sortieBattleManager = sortieMapManager.BattleStart(BattleFormationKinds1.TanJuu);
            BattleResultModel   battleResultModel   = sortieBattleManager.GetBattleResult();


            //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 11);
            //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 14);
            //SortieBattleManager _clsSortieBattleManager = _clsSortieMapManager.BattleStart(BattleFormationKinds1.TanJuu);
            // var a = KCV.BattleCut.BattleCutPhase.Command;
            // CommandPhaseModel _clscommandPhaseModel = _clsSortieBattleManager.GetCommandPhaseModel();
            // var a = Server_Controllers.BattleLogic.ExecBattleKinds.DayToNight;
            // _clsSortieBattleManager.StartDayToNightBattle();
            //BattleResultModel res = _clsSortieBattleManager.GetBattleResult();

            Console.WriteLine("hajimarimasu");
        }
Exemplo n.º 5
0
        private void ShipMode()
        {
            int num = Convert.ToInt32(MstID.text);

            if (keyController.keyState[0].down)
            {
                ChangeMode(0);
                debugMod.Add_Ship(AddMstIDs);
                AddMstIDs.Clear();
            }
            if (keyController.Index == 0)
            {
                cursol.transform.position       = MstID.transform.position;
                cursol.transform.localPosition += cursolOffset;
                if (keyController.keyState[1].down && ShipName[0].text != string.Empty && ShipName[0].text != "なし")
                {
                    AddMstIDs.Add(num);
                    logicMng = new StrategyMapManager();
                }
                if (keyController.keyState[10].down || keyController.keyState[14].down)
                {
                    int num2 = mag;
                    if (keyController.keyState[14].down)
                    {
                        num2 = -mag;
                    }
                    num       += num2;
                    MstID.text = num.ToString();
                    if (Mst_DataManager.Instance.Mst_ship.ContainsKey(num))
                    {
                        ShipModelMst shipModelMst = new ShipModelMst(Convert.ToInt32(MstID.text));
                        ShipName[0].text = shipModelMst.Name;
                    }
                    else
                    {
                        ShipName[0].text = string.Empty;
                    }
                }
            }
            else
            {
                if (keyController.Index != 1)
                {
                    return;
                }
                cursol.transform.position       = MemID.transform.position;
                cursol.transform.localPosition += cursolOffset;
                if (keyController.keyState[1].down)
                {
                    ShipLevelUp(1);
                }
                else if (keyController.keyState[2].down)
                {
                    ShipLevelUp(10);
                }
                else if (keyController.keyState[3].down)
                {
                    ShipLevelUp(100);
                }
                else if (keyController.keyState[5].down)
                {
                    ShipLevelUp(100);
                    int                   ship_mem_id = Convert.ToInt32(MemID.text);
                    ShipModel             ship        = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(ship_mem_id);
                    PortManager           portManager = new PortManager(1);
                    Dictionary <int, int> dictionary  = new Dictionary <int, int>();
                    dictionary[55] = 1;
                    debugMod.Add_UseItem(dictionary);
                    portManager.Marriage(ship.MemId);
                    ShipLevel.text = ship.Level.ToString();
                }
                else if (keyController.keyState[10].down || keyController.keyState[14].down)
                {
                    int num3 = mag;
                    if (keyController.keyState[14].down)
                    {
                        num3 = -mag;
                    }
                    int ship_mem_id2 = Convert.ToInt32(MemID.text) + num3;
                    MemID.text = ship_mem_id2.ToString();
                    if (StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(ship_mem_id2) != null)
                    {
                        ShipModel ship2 = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(ship_mem_id2);
                        ShipName[1].text = ship2.Name;
                        ShipLevel.text   = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(ship_mem_id2).Level.ToString();
                    }
                    else
                    {
                        ShipName[1].text = "NONE";
                    }
                }
            }
        }