示例#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();
        }