Beispiel #1
0
 /// <summary>
 /// Less than 5.5.0 or Release
 /// </summary>
 public static bool IsReadStaticRenderers(Version version, TransferInstructionFlags flags)
 {
     if (version.IsLess(5, 5))
     {
         return(true);
     }
     else
     {
         return(flags.IsSerializeGameRelease());
     }
 }
Beispiel #2
0
 /// <summary>
 /// (3.5.0 to 5.5.0 exclusive) or (5.0.0 and greater and Release)
 /// </summary>
 public static bool IsReadPortals(Version version, TransferInstructionFlags flags)
 {
     if (version.IsGreaterEqual(3, 5, 0))
     {
         if (version.IsLess(5, 5))
         {
             return(true);
         }
         return(flags.IsSerializeGameRelease());
     }
     return(false);
 }
Beispiel #3
0
 /// <summary>
 /// Not Release
 /// </summary>
 public static bool IsReadStaticRenderers(TransferInstructionFlags flags)
 {
     return(!flags.IsSerializeGameRelease());
 }
 /// <summary>
 /// Not Release
 /// </summary>
 public static bool IsReadGeometryHash(TransferInstructionFlags flags)
 {
     return(!flags.IsSerializeGameRelease());
 }
Beispiel #5
0
 public static bool IsReadHideFlag(TransferInstructionFlags flags)
 {
     return(!flags.IsSerializeGameRelease() && !flags.IsSerializeForPrefabSystem());
 }
Beispiel #6
0
        /// <summary>
        /// Not Release
        /// </summary>
        public static bool IsReadLightingDataAsset(Version version, TransferInstructionFlags flags)
        {
#warning unknown version (random)
            return(version.IsGreaterEqual(2017) && !flags.IsSerializeGameRelease());
        }
Beispiel #7
0
 /// <summary>
 /// 3.0.0 and greater and Release
 /// </summary>
 public static bool IsReadLightmapsMode(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(3) && flags.IsSerializeGameRelease());
 }
Beispiel #8
0
 /// <summary>
 /// Release or Resource
 /// </summary>
 public static bool IsReadLightmaps(TransferInstructionFlags flags)
 {
     return(flags.IsSerializeGameRelease() || flags.IsBuiltinResourcesFile());
 }
Beispiel #9
0
 /// <summary>
 /// 3.0.0 and greater and Not Release
 /// </summary>
 public static bool IsReadOcclusionBakeSettings(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(3) && !flags.IsSerializeGameRelease());
 }
Beispiel #10
0
 /// <summary>
 /// 5.0.0 and greater and Not Release
 /// </summary>
 public static bool IsReadGIWorkflowMode(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(5) && !flags.IsSerializeGameRelease());
 }
Beispiel #11
0
 /// <summary>
 /// (5.0.0 and greater) and Release
 /// </summary>
 public static bool IsReadEnlightenSceneMapping(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(5) && flags.IsSerializeGameRelease());
 }
Beispiel #12
0
 /// <summary>
 /// 2017.1 and (Release or Resource)
 /// </summary>
 private static bool IsAlign1(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(2017) && (flags.IsSerializeGameRelease() || flags.IsBuiltinResourcesFile()));
 }
Beispiel #13
0
 /// <summary>
 /// 5.0.0 and (Release or ResourcesFile)
 /// </summary>
 public static bool IsReadGeneratedSkyboxReflection(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(5) && (flags.IsSerializeGameRelease() || flags.IsBuiltinResourcesFile()));
 }
Beispiel #14
0
 /// <summary>
 /// 5.0.0f1 to 5.3.0 exclusive and Release
 /// </summary>
 public static bool IsReadAmbientProbeInGamma(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(5, 0, 0, VersionType.Final) && version.IsLess(5, 3) && flags.IsSerializeGameRelease());
 }
Beispiel #15
0
 /// <summary>
 /// 5.0.0 and Release
 /// </summary>
 public static bool IsReadAmbientProbe(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(5) && flags.IsSerializeGameRelease());
 }
 /// <summary>
 /// Not Release
 /// </summary>
 public static bool IsReadBuildSettings(TransferInstructionFlags flags)
 {
     return(!flags.IsSerializeGameRelease());
 }
Beispiel #17
0
 /// <summary>
 /// 3.5.0 and greater and (Release or Resource)
 /// </summary>
 public static bool IsReadLightProbes(Version version, TransferInstructionFlags flags)
 {
     return(version.IsGreaterEqual(3, 5) && (flags.IsSerializeGameRelease() || flags.IsBuiltinResourcesFile()));
 }