VersionInfo.cs 691 B

123456789101112131415161718192021222324
  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 = 9;
  11. public const byte Release = 8;
  12. public static byte Revision = 1;
  13. public static string StaticToString()
  14. {
  15. return string.Format( "{0}.{1}.{2}", Major, Minor, Release ) + ( Revision > 0 ? "." + Revision.ToString() : "" );
  16. }
  17. public static int FullNumber { get { return Major * 10000 + Minor * 1000 + Release * 100 + Revision; } }
  18. public static string FullLabel { get { return "Version=" + FullNumber; } }
  19. }
  20. }