コード例 #1
0
        /// <summary>
        /// Gets all codes.
        /// </summary>
        public static string GetAllCodes()
        {
            StringBuilder sb = new StringBuilder();

            Context context = FFTPatch.Context;

            IGenerateCodes[] generators = new IGenerateCodes[] {
                FFTPatch.Abilities,
                FFTPatch.Jobs,
                FFTPatch.SkillSets,
                FFTPatch.MonsterSkills,
                FFTPatch.ActionMenus,
                FFTPatch.StatusAttributes,
                FFTPatch.PoachProbabilities,
                FFTPatch.JobLevels,
                FFTPatch.Items,
                FFTPatch.ItemAttributes,
                FFTPatch.InflictStatuses,
                FFTPatch.MoveFind,
                FFTPatch.AbilityAnimations,
                FFTPatch.StoreInventories,
                FFTPatch.Propositions
            };
            foreach (var gen in generators)
            {
                if (gen != null)
                {
                    AddGroups(sb, 24, gen.GetCodeHeader(context), gen.GenerateCodes(context));
                }
            }
            return(sb.ToString());
        }
コード例 #2
0
ファイル: Codes.cs プロジェクト: Glain/FFTPatcher
        /// <summary>
        /// Gets all codes.
        /// </summary>
        public static string GetAllCodes()
        {
            StringBuilder sb = new StringBuilder();

            Context context = FFTPatch.Context;

            IGenerateCodes[] generators = new IGenerateCodes[] {
                FFTPatch.Abilities,
                FFTPatch.Jobs,
                FFTPatch.SkillSets,
                FFTPatch.MonsterSkills,
                FFTPatch.ActionMenus,
                FFTPatch.StatusAttributes,
                FFTPatch.PoachProbabilities,
                FFTPatch.JobLevels,
                FFTPatch.Items,
                FFTPatch.ItemAttributes,
                FFTPatch.InflictStatuses,
                FFTPatch.MoveFind,
                FFTPatch.AbilityAnimations,
                FFTPatch.StoreInventories,
                FFTPatch.Propositions
            };
            foreach ( var gen in generators )
            {
                if ( gen != null )
                {
                    AddGroups( sb, 24, gen.GetCodeHeader( context ), gen.GenerateCodes( context ) );
                }
            }
            return sb.ToString();
        }