コード例 #1
0
        public string GetPlatformPath(UnrealTargetRole Type, UnrealTargetPlatform Platform)
        {
            if (Type.UsesEditor())
            {
                return(UnrealPath.FullName);
            }

            string BuildPath = BuildPaths.ElementAt(0);

            if (string.IsNullOrEmpty(BuildPath))
            {
                return(null);
            }

            string PlatformPath = Path.Combine(BuildPath, UnrealHelpers.GetPlatformName(Platform, Type, UsesSharedBuildType));

            // On some builds we stage the actual loose files into a "Staged" folder
            if (Directory.Exists(PlatformPath) && Directory.Exists(Path.Combine(PlatformPath, "staged")))
            {
                PlatformPath = Path.Combine(PlatformPath, "Staged");
            }

            // Urgh - build share uses a different style...
            if (Platform == UnrealTargetPlatform.Android && BuildName.Equals("Local", StringComparison.OrdinalIgnoreCase) == false)
            {
                PlatformPath = PlatformPath.Replace("Android_ETC2Client", "Android\\FullPackages");
            }

            return(PlatformPath);
        }
コード例 #2
0
        public bool Equals(DestinyItemTalentGridBlockDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     TalentGridHash == input.TalentGridHash ||
                     (TalentGridHash.Equals(input.TalentGridHash))
                     ) &&
                 (
                     ItemDetailString == input.ItemDetailString ||
                     (ItemDetailString != null && ItemDetailString.Equals(input.ItemDetailString))
                 ) &&
                 (
                     BuildName == input.BuildName ||
                     (BuildName != null && BuildName.Equals(input.BuildName))
                 ) &&
                 (
                     HudDamageType == input.HudDamageType ||
                     (HudDamageType != null && HudDamageType.Equals(input.HudDamageType))
                 ) &&
                 (
                     HudIcon == input.HudIcon ||
                     (HudIcon != null && HudIcon.Equals(input.HudIcon))
                 ));
        }