AGS.Types.BuildTargetsInfo.GetRegisteredBuildTargets C# (CSharp) Method

GetRegisteredBuildTargets() public static method

Returns a read-only list of the IBuildTargets that are currently registered, regardless of whether they are selected or available for building.
public static GetRegisteredBuildTargets ( bool onlyNormalTargets ) : IList
onlyNormalTargets bool
return IList
        public static IList<IBuildTarget> GetRegisteredBuildTargets(bool onlyNormalTargets)
        {
            if (!onlyNormalTargets)
            {
                return new ReadOnlyCollection<IBuildTarget>(_buildTargets);
            }
            IList<IBuildTarget> result = new List<IBuildTarget>(_buildTargets);
            foreach (IBuildTarget target in _buildTargets)
            {
                if (!target.IsNormalBuildTarget) result.Remove(target);
            }
            return new ReadOnlyCollection<IBuildTarget>(result);
        }

Same methods

BuildTargetsInfo::GetRegisteredBuildTargets ( ) : IList