Ejemplo n.º 1
0
        public void Load_AsStart()
        {
            Logger.Trace("乱数のたね=[" + LarabeRandom.Seed + "]");

            //----------
            // 道187
            //----------
            Michi187Array.Load(this.EngineConf.GetResourceFullPath("Michi187"));
            File.WriteAllText(this.EngineConf.GetResourceFullPath("MichiTableHtml"), Michi187Array.LogHtml());

            //----------
            // 駒の配役181
            //----------
            Util_Haiyaku184Array.Load(this.EngineConf.GetResourceFullPath("Haiyaku185"), Encoding.UTF8);

            {
                List <List <string> > rows = ForcePromotionArray.Load(this.EngineConf.GetResourceFullPath("InputForcePromotion"), Encoding.UTF8);
                File.WriteAllText(this.EngineConf.GetResourceFullPath("OutputForcePromotion"), ForcePromotionArray.LogHtml());
            }

            {
                // 配役転換表
                List <List <string> > rows = Data_HaiyakuTransition.Load(this.EngineConf.GetResourceFullPath("InputSyuruiToHaiyaku"), Encoding.UTF8);
                File.WriteAllText(this.EngineConf.GetResourceFullPath("OutputSyuruiToHaiyaku"), Data_HaiyakuTransition.LogHtml());
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// このアプリケーションソフトの開始時の処理。
        /// </summary>
        public virtual void Load_AsStart()
        {
            // 既存のログファイルを削除したい。
            {
            }

            {
#if DEBUG
                Logger.Trace($"(^o^)乱数のたね=[{KwRandom.Seed}]");
#endif

                this.Data_Settei_Csv.Read_Add(this.EngineConf.GetResourceFullPath("DataSetteiCsv"), Encoding.UTF8);
                this.Data_Settei_Csv.DebugOut();

                //----------
                // 道187
                //----------
                string filepath_Michi = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("data_michi187"));
                if (Michi187Array.Load(filepath_Michi))
                {
                }

#if DEBUG
                {
                    string filepath_LogMichi = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("_log_道表"));
                    File.WriteAllText(filepath_LogMichi, Michi187Array.LogHtml());
                }
#endif

                //----------
                // 駒の配役181
                //----------
                string filepath_Haiyaku = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("data_haiyaku185_UTF-8"));
                Util_Array_KomahaiyakuEx184.Load(filepath_Haiyaku, Encoding.UTF8);

                {
                    string filepath_ForcePromotion = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("data_forcePromotion_UTF-8"));
                    List <List <string> > rows     = Array_ForcePromotion.Load(filepath_ForcePromotion, Encoding.UTF8);
                    File.WriteAllText(this.Data_Settei_Csv.Get("_log_強制転成表"), Array_ForcePromotion.LogHtml());
                }

                //----------
                // 配役転換表
                //----------
                {
                    string filepath_syuruiToHaiyaku = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("data_syuruiToHaiyaku"));
                    List <List <string> > rows      = Data_KomahaiyakuTransition.Load(filepath_syuruiToHaiyaku, Encoding.UTF8);

                    string filepath_LogHaiyakuTenkan = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("_log_配役転換表"));
                    File.WriteAllText(filepath_LogHaiyakuTenkan, Data_KomahaiyakuTransition.Format_LogHtml());
                }
            }


            string filepath_widgets01 = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("data_widgets_01_shogiban"));
            this.WidgetLoaders.Add(new WidgetsLoader_CsharpImpl(filepath_widgets01, this));
            string filepath_widgets02 = Path.Combine(Application.StartupPath, this.Data_Settei_Csv.Get("data_widgets_02_console"));
            this.WidgetLoaders.Add(new WidgetsLoader_CsharpImpl(filepath_widgets02, this));
        }