コード例 #1
0
        /// <summary>
        /// VersionConfigにセットされたバージョンとイベントコマンドの内容を確認し、
        /// イベントコマンドの内容が設定バージョンに対応していないものであれば警告ログを出力する。
        /// </summary>
        public void OutputVersionWarningLogIfNeed()
        {
            if (SupportVersion is null)
            {
                return;
            }

            if (VersionConfig.IsUnderVersion(SupportVersion))
            {
                Logger.Warning(VersionWarningMessage.NotUnderInSetting(
                                   $"{nameof(TilePathPermission)}.{nameof(Dependent)}",
                                   VersionConfig.GetConfigWoditorVersion(),
                                   SupportVersion));
            }
        }
コード例 #2
0
        // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
        //     Private Static Method
        // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

        /// <summary>
        /// バージョンによる定義チェックを行い、警告メッセージを出力する
        /// </summary>
        /// <param name="value">変数アドレス値</param>
        private static void VersionCheck(int value)
        {
            var infoCode = value % 10;

            if (VersionConfig.IsUnderVersion(WoditorVersion.Ver2_01))
            {
                // 「イベントの座標」のうち、10の位が5または6のアドレスは
                // ウディタVer2.01未満では非対応
                if (infoCode == 5 || infoCode == 6)
                {
                    WodiLibLogger.GetInstance().Warning(VersionWarningMessage.NotUnderInVariableAddress(
                                                            value,
                                                            VersionConfig.GetConfigWoditorVersion(),
                                                            WoditorVersion.Ver2_01));
                }
            }

            if (infoCode == 7 || infoCode == 8)
            {
                WodiLibLogger.GetInstance().Warning(VersionWarningMessage.NotUsingVariableAddress(value));
            }
        }
コード例 #3
0
 /// <summary>
 /// 設定バージョン = 2.20以上 の場合の警告
 /// </summary>
 private void OutputVersionWarningLogIfNeed_GreaterVer2_20()
 {
     Logger.Warning(VersionWarningMessage.NotGreaterInCommand($"{nameof(SoundReleaseAll)}",
                                                              VersionConfig.GetConfigWoditorVersion(),
                                                              WoditorVersion.Ver2_20));
 }
コード例 #4
0
ファイル: ClearDebugText.cs プロジェクト: sono8stream/UniWolf
 /// <summary>
 /// 設定バージョン = 2.00未満 の場合の警告
 /// </summary>
 private void OutputVersionWarningLogIfNeed_UnderVer2_00()
 {
     Logger.Warning(VersionWarningMessage.NotUnderInCommand($"{nameof(ClearDebugText)}",
                                                            VersionConfig.GetConfigWoditorVersion(),
                                                            WoditorVersion.Ver2_00));
 }
コード例 #5
0
 /// <summary>
 /// 設定バージョン = 2.10未満 の場合の警告
 /// </summary>
 private void OutputVersionWarningLogIfNeed_UnderVer2_10()
 {
     Logger.Warning(VersionWarningMessage.NotUnderInCharaMoveCommand($"{nameof(ChangePatternFifth)}",
                                                                     VersionConfig.GetConfigWoditorVersion(),
                                                                     WoditorVersion.Ver2_10));
 }