You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
893 B

  1. // Amplify Shader Editor - Visual Shader Editing Tool
  2. // Copyright (c) Amplify Creations, Lda <info@amplify.pt>
  3. using System;
  4. namespace AmplifyShaderEditor
  5. {
  6. [Serializable]
  7. public class VersionInfo
  8. {
  9. public const byte Major = 1;
  10. public const byte Minor = 6;
  11. public const byte Release = 2;
  12. public static byte Revision = 00;
  13. //private static string StageSuffix = "_dev0"+Revision;
  14. //public static string StaticToString()
  15. //{
  16. // return string.Format( "{0}.{1}.{2}", Major, Minor, Release ) + StageSuffix;
  17. //}
  18. public static string StaticToString()
  19. {
  20. return string.Format( "{0}.{1}.{2}", Major, Minor, Release ) + ( Revision > 0 ? "r" + Revision.ToString() : "" );
  21. }
  22. public static int FullNumber { get { return Major * 10000 + Minor * 1000 + Release * 100 + Revision; } }
  23. public static string FullLabel { get { return "Version=" + FullNumber; } }
  24. }
  25. }