コード例 #1
0
 public virtual bool GetSupportedPlatforms(ref List <UnrealTargetPlatform> OutPlatforms)
 {
     if (Type == TargetType.Program)
     {
         OutPlatforms = new List <UnrealTargetPlatform>(Utils.GetPlatformsInClass(UnrealPlatformClass.Desktop));
         return(true);
     }
     else if (Type == TargetType.Editor)
     {
         OutPlatforms = new List <UnrealTargetPlatform>(Utils.GetPlatformsInClass(UnrealPlatformClass.Editor));
         return(true);
     }
     else
     {
         OutPlatforms = new List <UnrealTargetPlatform>(Utils.GetPlatformsInClass(UnrealPlatformClass.All));
         return(true);
     }
 }
コード例 #2
0
 /// <summary>
 /// Initialize the attribute with all the platforms in a given category
 /// </summary>
 /// <param name="Category">Category of platforms to add</param>
 public SupportedPlatformsAttribute(UnrealPlatformClass Category)
 {
     this.Platforms = Utils.GetPlatformsInClass(Category);
 }